avoid to use cpp in code
[psensor.git] / src / ui_notify.h
index 82b66a1..5b30afe 100644 (file)
 #ifndef _PSENSOR_UI_NOTIFY_H_
 #define _PSENSOR_UI_NOTIFY_H_
 
-#include "psensor.h"
-#include "ui.h"
+#include <ui.h>
 
-void ui_notify(struct psensor *sensor, struct ui_psensor *ui);
+#if defined(HAVE_LIBNOTIFY) && HAVE_LIBNOTIFY
+
+void ui_notify(struct psensor *, struct ui_psensor *);
+
+#else
+
+static inline void ui_notify(struct psensor *s, struct ui_psensor *u) {}
+
+#endif
 
 #endif