X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fui_unity.h;h=641c7eabb9ac4e0b69312743e43088323eefc1f1;hp=d4c79a54238025da457848345688981c158fade9;hb=30280f0093e8aea4bc8af8a46c2e529e8ec61ac9;hpb=0e52be5c9e4d3bfe732f90abe7ca3cbfa32ad59c diff --git a/src/ui_unity.h b/src/ui_unity.h index d4c79a5..641c7ea 100644 --- a/src/ui_unity.h +++ b/src/ui_unity.h @@ -19,10 +19,26 @@ #ifndef _PSENSOR_UI_UNITY_H_ #define _PSENSOR_UI_UNITY_H_ +#include #include -void ui_unity_launcher_entry_update(struct psensor **sensors, - unsigned int show, - int use_celsius); +#if defined(HAVE_UNITY) && HAVE_UNITY + +static inline bool ui_unity_is_supported(void) { return true; } + +void ui_unity_launcher_entry_update(struct psensor **); + +void ui_unity_init(void); + +#else + +static inline bool ui_unity_is_supported(void) { return false; } + +static inline void +ui_unity_launcher_entry_update(struct psensor **s) {} + +static inline void ui_unity_init(void) {} + +#endif #endif