X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_unity.h;h=641c7eabb9ac4e0b69312743e43088323eefc1f1;hb=30280f0093e8aea4bc8af8a46c2e529e8ec61ac9;hp=5a0a6ec701e1299b434600132ccf9cc297c11469;hpb=4c940e2108b050369a6ca0c51f639c2e42e0ca5f;p=psensor.git diff --git a/src/ui_unity.h b/src/ui_unity.h index 5a0a6ec..641c7ea 100644 --- a/src/ui_unity.h +++ b/src/ui_unity.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2011 jeanfi@gmail.com + * Copyright (C) 2010-2014 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,9 +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); +#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