comparison xia-inhibitor.h @ 0:9a16bf50daba

Initial revision
author Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
date Sat, 27 Apr 2013 00:33:11 +0200
parents
children a59a7fd5be70
comparison
equal deleted inserted replaced
-1:000000000000 0:9a16bf50daba
1 /*
2 * Copyright (C) 2013 Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sublicense, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24 #ifndef __XIA_INHIBITOR_H
25 #define __XIA_INHIBITOR_H
26
27 #include <glib-object.h>
28
29 G_BEGIN_DECLS
30
31 #define XIA_TYPE_INHIBITOR (xia_inhibitor_get_type())
32 #define XIA_INHIBITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
33 XIA_TYPE_INHIBITOR, XiaInhibitor))
34 #define XIA_IS_INHIBITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
35 XIA_TYPE_INHIBITOR))
36 #define XIA_INHIBITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
37 XIA_TYPE_INHIBITOR, XiaInhibitorClass))
38 #define XIA_IS_INHIBITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \
39 XIA_TYPE_INHIBITOR))
40 #define XIA_INHIBITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \
41 XIA_TYPE_INHIBITOR, XiaInhibitorClass))
42
43 typedef struct _XiaInhibitor XiaInhibitor;
44 typedef struct _XiaInhibitorClass XiaInhibitorClass;
45 typedef struct _XiaInhibitorPrivate XiaInhibitorPrivate;
46
47 struct _XiaInhibitor
48 {
49 GObject parent_instance;
50
51 XiaInhibitorPrivate *priv;
52 };
53
54 struct _XiaInhibitorClass
55 {
56 GObjectClass parent_class;
57 };
58
59 XiaInhibitor *xia_inhibitor_new(void);
60 void xia_inhibitor_set_inhibited(XiaInhibitor *self, gboolean inhibited);
61 gboolean xia_inhibitor_get_inhibited(XiaInhibitor *self);
62
63 G_END_DECLS
64
65 #endif /* __XIA_INHIBITOR_H */