From 8b67c98426e987010fdc0884cee39b53e3afe4af Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Mon, 9 Jan 2017 15:43:22 +0200 Subject: [PATCH] added stub implementation, added return status to winapi init function --- tray.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tray.h b/tray.h index 8d4b164..e430bc7 100644 --- a/tray.h +++ b/tray.h @@ -230,6 +230,7 @@ static int tray_init(struct tray *tray) { Shell_NotifyIcon(NIM_ADD, &nid); tray_update(tray); + return 0; } static int tray_loop(int blocking) { @@ -296,6 +297,10 @@ static void tray_exit() { UnregisterClass(WC_TRAY_CLASS_NAME, GetModuleHandle(NULL)); } #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 /* TRAY_H */