summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>2009-07-21 18:14:35 +0300
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2009-07-21 18:14:35 +0300
commit6a6e74acc287b799425009a13a8619270a93b6b3 (patch)
treefc279073f0dd7128f52dd863a86d26e397805eb5 /examples
parentd74b2c8c4d97cf24b5090472440a68f91e903dec (diff)
downloadgupnp-6a6e74acc287b799425009a13a8619270a93b6b3.tar.gz
Free app developer from hosting of desc docs
Now the application developer just gives us the path of the directory where description documents are hosted and a path to the root device description (which could either be absolute or relative to description document directory.
Diffstat (limited to 'examples')
-rw-r--r--examples/light-server.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/light-server.c b/examples/light-server.c
index d3da602..5efab20 100644
--- a/examples/light-server.c
+++ b/examples/light-server.c
@@ -110,15 +110,11 @@ main (int argc, char **argv)
return EXIT_FAILURE;
}
-
- /* Host the device and service description files */
- gupnp_context_host_path (context, "BinaryLight1.xml", "/BinaryLight1.xml");
- gupnp_context_host_path (context, "SwitchPower1.xml", "/SwitchPower1.xml");
-
+
/* Create root device */
- dev = gupnp_root_device_new (context, "/BinaryLight1.xml");
+ dev = gupnp_root_device_new (context, "BinaryLight1.xml", ".");
gupnp_root_device_set_available (dev, TRUE);
-
+
/* Get the switch service from the root device */
service = gupnp_device_info_get_service
(GUPNP_DEVICE_INFO (dev), "urn:schemas-upnp-org:service:SwitchPower:1");