[rhythmbox] introspect RhythmDBQueryResultList
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] introspect RhythmDBQueryResultList
- Date: Thu, 29 Mar 2012 22:51:33 +0000 (UTC)
commit 3e27b08d73472450421b638ec7cb5e5c054b03cb
Author: Jonathan Matthew <jonathan d14n org>
Date: Fri Mar 30 08:50:46 2012 +1000
introspect RhythmDBQueryResultList
bindings/gi/Makefile.am | 2 ++
rhythmdb/rhythmdb-query-result-list.c | 15 +++++++++++++++
rhythmdb/rhythmdb-query-result-list.h | 3 ---
3 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/bindings/gi/Makefile.am b/bindings/gi/Makefile.am
index 32d2f21..78b5d35 100644
--- a/bindings/gi/Makefile.am
+++ b/bindings/gi/Makefile.am
@@ -53,6 +53,8 @@ rb_introspection_sources = \
rhythmdb/rhythmdb-query.c \
rhythmdb/rhythmdb-query-model.h \
rhythmdb/rhythmdb-query-model.c \
+ rhythmdb/rhythmdb-query-result-list.h \
+ rhythmdb/rhythmdb-query-result-list.c \
rhythmdb/rhythmdb-query-results.h \
rhythmdb/rhythmdb-query-results.c \
rhythmdb/rhythmdb-import-job.h \
diff --git a/rhythmdb/rhythmdb-query-result-list.c b/rhythmdb/rhythmdb-query-result-list.c
index d0fd4cb..7107349 100644
--- a/rhythmdb/rhythmdb-query-result-list.c
+++ b/rhythmdb/rhythmdb-query-result-list.c
@@ -136,6 +136,13 @@ rhythmdb_query_result_list_class_init (RhythmDBQueryResultListClass *klass)
}
+/**
+ * rhythmdb_query_result_list_new:
+ *
+ * Creates a new empty query result list.
+ *
+ * Return value: (transfer full): query result list
+ */
RhythmDBQueryResultList *
rhythmdb_query_result_list_new (void)
{
@@ -144,6 +151,14 @@ rhythmdb_query_result_list_new (void)
return RHYTHMDB_QUERY_RESULT_LIST (obj);
}
+/**
+ * rhythmdb_query_result_list_get_results:
+ * @list: a #RhythmDBQueryResultList
+ *
+ * Returns the results from the query.
+ *
+ * Return value: (transfer none) (element-type RhythmDBEntry): list of results
+ */
GList *
rhythmdb_query_result_list_get_results (RhythmDBQueryResultList *list)
{
diff --git a/rhythmdb/rhythmdb-query-result-list.h b/rhythmdb/rhythmdb-query-result-list.h
index d454cef..a95efb3 100644
--- a/rhythmdb/rhythmdb-query-result-list.h
+++ b/rhythmdb/rhythmdb-query-result-list.h
@@ -40,9 +40,6 @@ G_BEGIN_DECLS
#define RHYTHMDB_IS_QUERY_RESULT_LIST_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RHYTHMDB_TYPE_QUERY_RESULT_LIST))
#define RHYTHMDB_QUERY_RESULT_LIST_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RHYTHMDB_TYPE_QUERY_RESULT_LIST, RhythmDBQueryResultListClass))
-GType rhythmdb_query_result_list_limit_type_get_type (void);
-#define RHYTHMDB_TYPE_QUERY_RESULT_LIST_LIMIT_TYPE (rhythmdb_query_result_list_limit_type_get_type ())
-
typedef struct _RhythmDBQueryResultList RhythmDBQueryResultList;
typedef struct _RhythmDBQueryResultListClass RhythmDBQueryResultListClass;
typedef struct _RhythmDBQueryResultListPrivate RhythmDBQueryResultListPrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]