X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fui_notify.h;h=51dc3d152633fb9cf7115e3a5d9601a88ea2e205;hp=f68fac8aa5943490c5460d0b3d3abf213ed6ecc3;hb=bd7036af56a4b61b2b473dccbeac5e26f78b57da;hpb=dcd813f21c83592155f712ff1acf450b483d8072 diff --git a/src/ui_notify.h b/src/ui_notify.h index f68fac8..51dc3d1 100644 --- a/src/ui_notify.h +++ b/src/ui_notify.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 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 @@ -19,9 +19,16 @@ #ifndef _PSENSOR_UI_NOTIFY_H_ #define _PSENSOR_UI_NOTIFY_H_ -#include "psensor.h" -#include "ui.h" +#include -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