[gupnp-av] Add private getter of GUPnPXMLDoc from object.
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-av] Add private getter of GUPnPXMLDoc from object.
- Date: Fri, 21 Sep 2012 10:50:15 +0000 (UTC)
commit ade20e788a431ffc20d855d297050f45437246e4
Author: Krzesimir Nowak <krnowak openismus com>
Date: Fri Sep 7 14:23:21 2012 +0200
Add private getter of GUPnPXMLDoc from object.
Will be needed by container for setting child elements.
libgupnp-av/gupnp-didl-lite-object-private.h | 6 ++++++
libgupnp-av/gupnp-didl-lite-object.c | 17 +++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/libgupnp-av/gupnp-didl-lite-object-private.h b/libgupnp-av/gupnp-didl-lite-object-private.h
index 780e495..5a01b20 100644
--- a/libgupnp-av/gupnp-didl-lite-object-private.h
+++ b/libgupnp-av/gupnp-didl-lite-object-private.h
@@ -1,8 +1,10 @@
/*
* Copyright (C) 2009 Nokia Corporation.
+ * Copyright (C) 2012 Intel Corporation
*
* Authors: Zeeshan Ali (Khattak) <zeeshan ali nokia com>
* <zeeshanak gnome org>
+ * Krzesimir Nowak <krnowak openismus com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -35,6 +37,10 @@ gupnp_didl_lite_object_new_from_xml (xmlNode *xml_node,
xmlNs *dc_ns,
xmlNs *dlna_ns);
+G_GNUC_INTERNAL GUPnPXMLDoc *
+gupnp_didl_lite_object_get_gupnp_xml_doc
+ (GUPnPDIDLLiteObject *object);
+
G_END_DECLS
#endif /* __GUPNP_DIDL_LITE_OBJECT_PRIVATE_H__ */
diff --git a/libgupnp-av/gupnp-didl-lite-object.c b/libgupnp-av/gupnp-didl-lite-object.c
index 316b754..aa6b150 100644
--- a/libgupnp-av/gupnp-didl-lite-object.c
+++ b/libgupnp-av/gupnp-didl-lite-object.c
@@ -890,6 +890,23 @@ gupnp_didl_lite_object_new_from_xml (xmlNode *xml_node,
}
/**
+ * gupnp_didl_lite_object_get_gupnp_xml_doc:
+ * @object: The #GUPnPDIDLLiteObject
+ *
+ * Get the pointer to the XML document containing this object.
+ *
+ * Returns: (transfer none): The pointer to the XML document containing this
+ * object.
+ **/
+GUPnPXMLDoc *
+gupnp_didl_lite_object_get_gupnp_xml_doc (GUPnPDIDLLiteObject *object)
+{
+ g_return_val_if_fail (GUPNP_IS_DIDL_LITE_OBJECT (object), NULL);
+
+ return object->priv->xml_doc;
+}
+
+/**
* gupnp_didl_lite_object_get_xml_node:
* @object: The #GUPnPDIDLLiteObject
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]