1
0
forked from Yadciel/c_tray

Correcting warnings in the public API, correcting errors on Windows

This commit is contained in:
Dmitry Mikushin
2022-02-19 17:53:45 +01:00
parent 7aaa634c93
commit 801d928305
4 changed files with 20 additions and 5 deletions

15
tray.h
View File

@@ -1,6 +1,11 @@
#ifndef TRAY_H
#define TRAY_H
#ifdef __cplusplus
extern "C"
{
#endif
struct tray_menu;
struct tray {
@@ -21,6 +26,16 @@ struct tray_menu {
struct tray_menu *submenu;
};
int tray_init(struct tray *tray);
int tray_loop(int blocking);
void tray_update(struct tray *tray);
void tray_exit(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* TRAY_H */