summaryrefslogtreecommitdiff
path: root/osinfo/osinfo_list.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-08-12 16:32:24 -0400
committerDaniel P. Berrange <berrange@redhat.com>2010-08-25 13:38:11 +0100
commitd4ef7c49f11576c40debdb7a50ac0d10d96c3286 (patch)
treeafef1cd143f56f5cc0dc85cc35b54efefef4f262 /osinfo/osinfo_list.h
parentcc731ae23bd0039e22ead619eebbed1ccd76dd9e (diff)
downloadlibosinfo-d4ef7c49f11576c40debdb7a50ac0d10d96c3286.tar.gz
Move all source & headers into osinfo/ directory
The GLib/GObject standard practice is to have all source and header files in the same directory, named after the library prefix. Move all headers from api/ and inc/ into src/, then rename src/ to osinfo/ * src/*, api/*, inc/*: Move to osinfo/ * Makefile.am: Update build rules for changed locations * configure.ac: change AC_CONFIG_SRCDIR
Diffstat (limited to 'osinfo/osinfo_list.h')
-rw-r--r--osinfo/osinfo_list.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/osinfo/osinfo_list.h b/osinfo/osinfo_list.h
new file mode 100644
index 0000000..81a2bc7
--- /dev/null
+++ b/osinfo/osinfo_list.h
@@ -0,0 +1,51 @@
+/*
+ * libosinfo
+ *
+ * osinfo_list.h
+ */
+
+#ifndef __OSINFO_LIST_H__
+#define __OSINFO_LIST_H__
+
+/*
+ * Type macros.
+ */
+#define OSINFO_TYPE_LIST (osinfo_list_get_type ())
+#define OSINFO_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), OSINFO_TYPE_LIST, OsinfoList))
+#define OSINFO_IS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OSINFO_TYPE_LIST))
+#define OSINFO_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), OSINFO_TYPE_LIST, OsinfoListClass))
+#define OSINFO_IS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), OSINFO_TYPE_LIST))
+#define OSINFO_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), OSINFO_TYPE_LIST, OsinfoListClass))
+
+typedef struct _OsinfoListClass OsinfoListClass;
+
+typedef struct _OsinfoListPrivate OsinfoListPrivate;
+
+/* object */
+struct _OsinfoList
+{
+ GObject parent_instance;
+
+ /* public */
+
+ /* private */
+ OsinfoListPrivate *priv;
+};
+
+/* class */
+struct _OsinfoListClass
+{
+ GObjectClass parent_class;
+
+ /* class members */
+};
+
+void osinfoFreeList(OsinfoList *self);
+gint osinfoListLength(OsinfoList *self);
+
+OsinfoList *osinfoListFilter(OsinfoList *self, OsinfoFilter *filter, GError **err);
+OsinfoEntity *osinfoGetEntityAtIndex(OsinfoList *self, gint idx);
+OsinfoList *osinfoListIntersect(OsinfoList *self, OsinfoList *otherList, GError **err);
+OsinfoList *osinfoListUnion(OsinfoList *self, OsinfoList *otherList, GError **err);
+
+#endif /* __OSINFO_LIST_H__ */