X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_notify.h;h=5b30afe784191f03d1f42b0ed81ea1c1d765aa2d;hb=7235ccd223c57e24cd965a65b9c4ca41132c943b;hp=94b37db9241402382712b6d9cee01559d676b930;hpb=609664bb77874990e10f8073e54bb7f1645c8d72;p=psensor.git diff --git a/src/ui_notify.h b/src/ui_notify.h index 94b37db..5b30afe 100644 --- a/src/ui_notify.h +++ b/src/ui_notify.h @@ -1,28 +1,34 @@ /* - Copyright (C) 2010-2011 wpitchoune@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 + * 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 - 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