[libdmapsharing] Add dmap_container_db_add() Signed-off-by: W. Michael Petullo <mike flyn org>
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Add dmap_container_db_add() Signed-off-by: W. Michael Petullo <mike flyn org>
- Date: Fri, 1 Apr 2011 02:26:58 +0000 (UTC)
commit 0b47df5bf00af1956ff70aaad26e7293ee011ac1
Author: W. Michael Petullo <mike flyn org>
Date: Thu Mar 31 21:09:27 2011 -0500
Add dmap_container_db_add()
Signed-off-by: W. Michael Petullo <mike flyn org>
libdmapsharing/dmap-container-db.c | 6 ++++++
libdmapsharing/dmap-container-db.h | 12 ++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/libdmapsharing/dmap-container-db.c b/libdmapsharing/dmap-container-db.c
index fdce883..899827e 100644
--- a/libdmapsharing/dmap-container-db.c
+++ b/libdmapsharing/dmap-container-db.c
@@ -56,6 +56,12 @@ dmap_container_db_get_type (void)
return object_type;
}
+void
+dmap_container_db_add (DMAPContainerDb * db, DMAPContainerRecord *record)
+{
+ return DMAP_CONTAINER_DB_GET_INTERFACE (db)->add (db, record);
+}
+
DMAPContainerRecord *
dmap_container_db_lookup_by_id (DMAPContainerDb * db, guint id)
{
diff --git a/libdmapsharing/dmap-container-db.h b/libdmapsharing/dmap-container-db.h
index e19d23f..cdca0e1 100644
--- a/libdmapsharing/dmap-container-db.h
+++ b/libdmapsharing/dmap-container-db.h
@@ -68,6 +68,8 @@ struct _DMAPContainerDbIface
{
GTypeInterface parent;
+ void *(*add) (DMAPContainerDb * db, DMAPContainerRecord * record);
+
DMAPContainerRecord *(*lookup_by_id) (DMAPContainerDb * db, guint id);
void (*foreach) (DMAPContainerDb * db, GHFunc func, gpointer data);
@@ -78,6 +80,16 @@ struct _DMAPContainerDbIface
GType dmap_container_db_get_type (void);
/**
+ * dmap_container_db_add:
+ * @db: A container database.
+ * @record: A record.
+ *
+ * Add a record to the database.
+ */
+void dmap_container_db_add (DMAPContainerDb * db,
+ DMAPContainerRecord * record);
+
+/**
* dmap_container_db_lookup_by_id:
* @db: A container database.
* @id: A record ID.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]