Imported Upstream version 1.2.0
[psensor-pkg-debian.git] / src / ui_notify.h
index 82b66a1..51dc3d1 100644 (file)
@@ -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
 #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