[gupnp] Expose GSSDPResourceGroup of root device.
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] Expose GSSDPResourceGroup of root device.
- Date: Fri, 30 Nov 2012 14:42:57 +0000 (UTC)
commit 31d610e84205cd3e81c7ee99174ececa021b4e7f
Author: Jens Georg <mail jensge org>
Date: Fri Nov 30 15:03:53 2012 +0100
Expose GSSDPResourceGroup of root device.
Based on patch by Branislav Katreniak
Fixes:
https://bugzilla.gnome.org/show_bug.cgi?id=672830
doc/gupnp-sections.txt | 1 +
libgupnp/gupnp-root-device.c | 16 ++++++++++++++++
libgupnp/gupnp-root-device.h | 6 ++++++
3 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/doc/gupnp-sections.txt b/doc/gupnp-sections.txt
index cf02610..f2d2995 100644
--- a/doc/gupnp-sections.txt
+++ b/doc/gupnp-sections.txt
@@ -152,6 +152,7 @@ gupnp_root_device_get_available
gupnp_root_device_get_relative_location
gupnp_root_device_get_description_dir
gupnp_root_device_get_description_path
+gupnp_root_device_get_ssdp_resource_group
<SUBSECTION Standard>
GUPnPRootDeviceClass
GUPNP_ROOT_DEVICE
diff --git a/libgupnp/gupnp-root-device.c b/libgupnp/gupnp-root-device.c
index d6aca04..1e46798 100644
--- a/libgupnp/gupnp-root-device.c
+++ b/libgupnp/gupnp-root-device.c
@@ -698,3 +698,19 @@ gupnp_root_device_get_description_dir (GUPnPRootDevice *root_device)
return root_device->priv->description_dir;
}
+
+/**
+ * gupnp_root_device_get_ssdp_resource_group:
+ * @root_device: A #GUPnPRootDevice
+ *
+ * Get the #GSSDPResourceGroup used by @root_device.
+ *
+ * Returns: (transfer none): The #GSSDPResourceGroup of @root_device.
+ **/
+GSSDPResourceGroup *
+gupnp_root_device_get_ssdp_resource_group (GUPnPRootDevice *root_device)
+{
+ g_return_val_if_fail (GUPNP_IS_ROOT_DEVICE (root_device), NULL);
+
+ return root_device->priv->group;
+}
diff --git a/libgupnp/gupnp-root-device.h b/libgupnp/gupnp-root-device.h
index afaaa32..0c08791 100644
--- a/libgupnp/gupnp-root-device.h
+++ b/libgupnp/gupnp-root-device.h
@@ -24,6 +24,8 @@
#include <libxml/tree.h>
+#include <libgssdp/gssdp-resource-group.h>
+
#include "gupnp-context.h"
#include "gupnp-device.h"
#include "gupnp-resource-factory.h"
@@ -112,6 +114,10 @@ const char *
gupnp_root_device_get_description_dir
(GUPnPRootDevice *root_device);
+GSSDPResourceGroup *
+gupnp_root_device_get_ssdp_resource_group
+ (GUPnPRootDevice *root_device);
+
G_END_DECLS
#endif /* __GUPNP_ROOT_DEVICE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]