Mercurial > projects > xinhibit-applet
view xia-inhibitor.h @ 9:d83540fd999c version-2
Release version 2
author | Guido Berhoerster <guido+xinhibit-applet@berhoerster.name> |
---|---|
date | Thu, 08 Aug 2013 16:24:35 +0200 |
parents | 9a16bf50daba |
children | a59a7fd5be70 |
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-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; }; XiaInhibitor *xia_inhibitor_new(void); void xia_inhibitor_set_inhibited(XiaInhibitor *self, gboolean inhibited); gboolean xia_inhibitor_get_inhibited(XiaInhibitor *self); G_END_DECLS #endif /* __XIA_INHIBITOR_H */