Mercurial > projects > xinhibit-applet
view xia-inhibitor.h @ 19:1421ea50aa5c default tip
Improve build system
Do not clobber CPPFLAGS, use XCPPFLAGS instead.
Request POSIX:2004 headers and libraries.
Specify shared libraries in the correct order.
author | Guido Berhoerster <guido+xinhibit-applet@berhoerster.name> |
---|---|
date | Tue, 13 Sep 2016 20:57:12 +0200 |
parents | dd1e5ae679f6 |
children |
line wrap: on
line source
/* * Copyright (C) 2013 Guido Berhoerster <guido+xinhibit-applet@berhoerster.name> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef __XIA_INHIBITOR_H #define __XIA_INHIBITOR_H #include <glib.h> #include <glib-object.h> G_BEGIN_DECLS #define XIA_TYPE_INHIBITOR (xia_inhibitor_get_type()) #define XIA_INHIBITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ XIA_TYPE_INHIBITOR, XiaInhibitor)) #define XIA_IS_INHIBITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\ XIA_TYPE_INHIBITOR)) #define XIA_INHIBITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\ XIA_TYPE_INHIBITOR, XiaInhibitorClass)) #define XIA_IS_INHIBITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\ XIA_TYPE_INHIBITOR)) #define XIA_INHIBITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),\ XIA_TYPE_INHIBITOR, XiaInhibitorClass)) typedef struct _XiaInhibitor XiaInhibitor; typedef struct _XiaInhibitorClass XiaInhibitorClass; typedef struct _XiaInhibitorPrivate XiaInhibitorPrivate; struct _XiaInhibitor { GObject parent_instance; XiaInhibitorPrivate *priv; }; struct _XiaInhibitorClass { GObjectClass parent_class; }; GType xia_inhibitor_get_type(void) G_GNUC_CONST; XiaInhibitor * xia_inhibitor_new(void); void xia_inhibitor_set_inhibited(XiaInhibitor *, gboolean); gboolean xia_inhibitor_get_inhibited(XiaInhibitor *); G_END_DECLS #endif /* __XIA_INHIBITOR_H */