X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_notify.h;h=51dc3d152633fb9cf7115e3a5d9601a88ea2e205;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hp=cca6bed08a2670e1fc9b5374b180f3eea5b80a5f;hpb=cde76fd1723bbdad164adac96d105111b831bf50;p=psensor.git diff --git a/src/ui_notify.h b/src/ui_notify.h index cca6bed..51dc3d1 100644 --- a/src/ui_notify.h +++ b/src/ui_notify.h @@ -1,28 +1,34 @@ /* - Copyright (C) 2010-2011 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 + * 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