diff --git a/tray_windows.c b/tray_windows.c index febf17f..b28424a 100644 --- a/tray_windows.c +++ b/tray_windows.c @@ -1,5 +1,6 @@ #include #include +#include "tray.h" #define WM_TRAY_CALLBACK_MESSAGE (WM_USER + 1) #define WC_TRAY_CLASS_NAME "TRAY" @@ -81,7 +82,7 @@ static HMENU _tray_menu(struct tray_menu *m, UINT *id) { return hmenu; } -static int tray_init(struct tray *tray) { +int tray_init(struct tray *tray) { memset(&wc, 0, sizeof(wc)); wc.cbSize = sizeof(WNDCLASSEX); wc.lpfnWndProc = _tray_wnd_proc;