aboutsummaryrefslogtreecommitdiff
path: root/libtopmenu-client/topmenu-monitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtopmenu-client/topmenu-monitor.h')
-rw-r--r--libtopmenu-client/topmenu-monitor.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/libtopmenu-client/topmenu-monitor.h b/libtopmenu-client/topmenu-monitor.h
new file mode 100644
index 0000000..afd066c
--- /dev/null
+++ b/libtopmenu-client/topmenu-monitor.h
@@ -0,0 +1,39 @@
+#ifndef _TOPMENU_MONITOR_H_
+#define _TOPMENU_MONITOR_H_
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define TOPMENU_TYPE_MONITOR topmenu_monitor_get_type()
+#define TOPMENU_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), TOPMENU_TYPE_MONITOR, TopMenuMonitor))
+#define TOPMENU_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), TOPMENU_TYPE_MONITOR))
+#define TOPMENU_MONITOR_CLASS(c) (G_TYPE_CHECK_CLASS_CAST((c), TOPMENU_TYPE_MONITOR, TopMenuMonitorClass))
+#define TOPMENU_IS_MONITOR_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE((c), TOPMENU_TYPE_MONITOR))
+#define TOPMENU_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TOPMENU_TYPE_MONITOR, TopMenuMonitorClass))
+
+typedef struct _TopMenuMonitor TopMenuMonitor;
+typedef struct _TopMenuMonitorClass TopMenuMonitorClass;
+typedef struct _TopMenuMonitorPrivate TopMenuMonitorPrivate;
+
+struct _TopMenuMonitor
+{
+ GObject parent_instance;
+ TopMenuMonitorPrivate *priv;
+ gboolean available;
+};
+
+struct _TopMenuMonitorClass
+{
+ GObjectClass parent_class;
+};
+
+GType topmenu_monitor_get_type(void);
+
+TopMenuMonitor * topmenu_monitor_get_instance(void);
+
+gboolean topmenu_monitor_is_topmenu_available(TopMenuMonitor * self);
+
+G_END_DECLS
+
+#endif /* _TOPMENU_MONITOR_H_ */