projects
/
psensor-pkg-debian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'upstream/1.2.0'
[psensor-pkg-debian.git]
/
src
/
ui_notify.h
diff --git
a/src/ui_notify.h
b/src/ui_notify.h
index
f68fac8
..
51dc3d1
100644
(file)
--- a/
src/ui_notify.h
+++ b/
src/ui_notify.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2010-201
3
jeanfi@gmail.com
+ * Copyright (C) 2010-201
6
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
*
* 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,16
@@
#ifndef _PSENSOR_UI_NOTIFY_H_
#define _PSENSOR_UI_NOTIFY_H_
#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
#endif