X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_notify.h;h=5b30afe784191f03d1f42b0ed81ea1c1d765aa2d;hb=b2706f38717e778f37beac8d7063d7e48d2a8f33;hp=7e0e4e604c1730e4a56d9af22514eb2e4b35875e;hpb=45c8086f97097df36ba8cd0552f152be80f79b12;p=psensor.git diff --git a/src/ui_notify.h b/src/ui_notify.h index 7e0e4e6..5b30afe 100644 --- a/src/ui_notify.h +++ b/src/ui_notify.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2011 jeanfi@gmail.com + * Copyright (C) 2010-2014 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