added stub implementation, added return status to winapi init function
This commit is contained in:
5
tray.h
5
tray.h
@@ -230,6 +230,7 @@ static int tray_init(struct tray *tray) {
|
|||||||
Shell_NotifyIcon(NIM_ADD, &nid);
|
Shell_NotifyIcon(NIM_ADD, &nid);
|
||||||
|
|
||||||
tray_update(tray);
|
tray_update(tray);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tray_loop(int blocking) {
|
static int tray_loop(int blocking) {
|
||||||
@@ -296,6 +297,10 @@ static void tray_exit() {
|
|||||||
UnregisterClass(WC_TRAY_CLASS_NAME, GetModuleHandle(NULL));
|
UnregisterClass(WC_TRAY_CLASS_NAME, GetModuleHandle(NULL));
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
static int tray_init(struct tray *tray) { return -1; }
|
||||||
|
static int tray_loop(int blocking) { return -1; }
|
||||||
|
static void tray_update(struct tray *tray) {}
|
||||||
|
static void tray_exit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* TRAY_H */
|
#endif /* TRAY_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user