summaryrefslogtreecommitdiff
path: root/vendor/github.com/getlantern/systray/systray/systray/systray.h
blob: 738be99ae98083fcf4be4feb3bdf22c08334c8fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

extern "C" {
	__declspec(dllexport) int __cdecl nativeLoop(void (*systray_ready)(int ignored),
		void (*_systray_on_exit)(int ignored),
		void (*_systray_menu_item_selected)(int menu_id));

	__declspec(dllexport) void __cdecl setIcon(const wchar_t* iconFile);
	__declspec(dllexport) void __cdecl setTooltip(const wchar_t* tooltip);
	__declspec(dllexport) void __cdecl add_or_update_menu_item(int menuId, wchar_t* title, wchar_t* tooltip, short disabled, short checked);
	__declspec(dllexport) void __cdecl add_separator(int menuId);
	__declspec(dllexport) void __cdecl hide_menu_item(int menuId);
	__declspec(dllexport) void __cdecl quit();
}