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