aboutsummaryrefslogtreecommitdiffstats
path: root/xd_store.h
diff options
context:
space:
mode:
authorkraxel <kraxel>2005-12-08 11:17:50 +0000
committerkraxel <kraxel>2005-12-08 11:17:50 +0000
commite22cc1e84130dfe1086088c0452efc6596e5b855 (patch)
tree95045ace03f576aa357b079a780853f66044c0ad /xd_store.h
downloadxenwatch-e22cc1e84130dfe1086088c0452efc6596e5b855.tar.gz
Initial revision
Diffstat (limited to 'xd_store.h')
-rw-r--r--xd_store.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/xd_store.h b/xd_store.h
new file mode 100644
index 0000000..d2dcea2
--- /dev/null
+++ b/xd_store.h
@@ -0,0 +1,44 @@
+#ifndef _xen_doms_h_included_
+#define _xen_doms_h_included_
+
+#include <gtk/gtk.h>
+
+/* Some boilerplate GObject defines */
+
+#define XEN_DOMS_TYPE (xen_doms_get_type ())
+#define XEN_DOMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XEN_DOMS_TYPE, XenDoms))
+#define XEN_DOMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XEN_DOMS_TYPE, XenDomsClass))
+#define IS_XEN_DOMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XEN_DOMS_TYPE))
+#define IS_XEN_DOMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XEN_DOMS_TYPE))
+#define XEN_DOMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XEN_DOMS_TYPE, XenDomsClass))
+
+typedef struct _XenDoms XenDoms;
+typedef struct _XenDomsClass XenDomsClass;
+
+struct _XenDomsClass {
+ GObjectClass parent_class;
+};
+GType xen_doms_get_type (void);
+
+/* here is our stuff ... */
+
+enum xen_doms_cols {
+ /* strings */
+ XEN_DOMS_COL_S_NAME,
+ XEN_DOMS_COL_S_UUID,
+ XEN_DOMS_COL_S_OSTYPE,
+
+ /* integers */
+ XEN_DOMS_COL_I_ID,
+ XEN_DOMS_COL_I_MEM,
+ XEN_DOMS_COL_I_MAXMEM,
+ XEN_DOMS_COL_I_CPUS,
+ XEN_DOMS_COL_I_MAXCPUS,
+
+ /* that's it */
+ XEN_DOMS_N_COLUMNS,
+};
+
+XenDoms *xen_doms_new(void);
+
+#endif /* _xen_doms_h_included_ */