X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fui_unity.h;h=52e51d986877ffcf1f9a665374044d2c180cc4ab;hp=4a40b1b169590b8729df94036a9bcbffbd4ad2d3;hb=3361fda8735c65887a859c9faf287cb105ae6bc8;hpb=dcd813f21c83592155f712ff1acf450b483d8072 diff --git a/src/ui_unity.h b/src/ui_unity.h index 4a40b1b..52e51d9 100644 --- a/src/ui_unity.h +++ b/src/ui_unity.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 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 "psensor.h" +#include +#include -void ui_unity_launcher_entry_update(struct psensor **sensors, - unsigned int show, - int use_celcius); +#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