X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fui_unity.h;h=52e51d986877ffcf1f9a665374044d2c180cc4ab;hp=d4c79a54238025da457848345688981c158fade9;hb=bd7036af56a4b61b2b473dccbeac5e26f78b57da;hpb=48da1ac5531838d157762882ee455cec4da05728 diff --git a/src/ui_unity.h b/src/ui_unity.h index d4c79a5..52e51d9 100644 --- a/src/ui_unity.h +++ b/src/ui_unity.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2014 jeanfi@gmail.com + * Copyright (C) 2010-2016 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -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