updated copyright end date to 2016
[psensor.git] / src / ui_notify.h
index 94b37db..51dc3d1 100644 (file)
@@ -1,28 +1,34 @@
 /*
-    Copyright (C) 2010-2011 wpitchoune@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
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+#ifndef _PSENSOR_UI_NOTIFY_H_
+#define _PSENSOR_UI_NOTIFY_H_
 
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
+#include <ui.h>
 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
+#if defined(HAVE_LIBNOTIFY) && HAVE_LIBNOTIFY
 
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-    02110-1301 USA
-*/
+void ui_notify(struct psensor *, struct ui_psensor *);
 
-#ifndef _PSENSOR_UI_NOTIFY_H_
-#define _PSENSOR_UI_NOTIFY_H_
+#else
 
-#include "psensor.h"
-#include "ui.h"
+static inline void ui_notify(struct psensor *s, struct ui_psensor *u) {}
 
-void ui_notify(struct psensor *sensor, struct ui_psensor *ui);
+#endif
 
 #endif