X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fui_unity.h;h=52e51d986877ffcf1f9a665374044d2c180cc4ab;hp=15045e840ca26b05ad0f3e64ca909c20e6ecf5be;hb=3361fda8735c65887a859c9faf287cb105ae6bc8;hpb=1b39809fbf70fd176646aa2343774bdf04951ee9 diff --git a/src/ui_unity.h b/src/ui_unity.h index 15045e8..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 "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