diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xia-inhibitor.h	Sat Apr 27 00:33:11 2013 +0200
@@ -0,0 +1,65 @@
+/*
+ * 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 */