2008-07-04 Zeeshan Ali Khattak <zeenix@gmail.com>
+ * data/xml/Makefile.am:
+ * data/xml/description.xml:
+ * src/gupnp-media-server.vala:
+
+ Enable the ConnectionManager service.
+
+2008-07-04 Zeeshan Ali Khattak <zeenix@gmail.com>
+
* src/Makefile.am:
* src/gupnp-connection-manager.vala:
<eventSubURL>/ContentDirectory/Event</eventSubURL>
<controlURL>/ContentDirectory/Control</controlURL>
</service>
-<!-- FIXME: Implement the service, uncomment these lines and enable the
- distribution of the SCPD in the build.
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:2</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<eventSubURL>/ConnectionManager/Event</eventSubURL>
<controlURL>/ConnectionManager/Control</controlURL>
</service>
--->
<service>
<serviceType>urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1</serviceType>
<serviceId>urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar</serviceId>
public class GUPnP.MediaServer: RootDevice {
public static const string CONTENT_DIR =
"urn:schemas-upnp-org:service:ContentDirectory";
+ public static const string CONNECTION_MANAGER =
+ "urn:schemas-upnp-org:service:ConnectionManager";
public static const string MEDIA_RECEIVER_REGISTRAR =
"urn:microsoft.com:service:X_MS_MediaReceiverRegistrar";
public static const string GCONF_PATH = "/apps/gupnp-media-server/";
private ContentDirectory content_dir; /* ContentDirectory */
- private MediaReceiverRegistrar msr; /* MS MediaReceiverRegistrar */
+ private ConnectionManager cm; /* ConnectionManager */
+ private MediaReceiverRegistrar msr; /* MS MediaReceiverRegistrar */
construct {
ResourceFactory factory = this.resource_factory;
factory.register_resource_type (CONTENT_DIR + ":2",
typeof (ContentDirectory));
+ /* Register GUPnP.ConnectionManager */
+ factory.register_resource_type (CONNECTION_MANAGER + ":1",
+ typeof (ConnectionManager));
+ factory.register_resource_type (CONNECTION_MANAGER + ":2",
+ typeof (ConnectionManager));
+
/* Register GUPnP.MediaReceiverRegistrar */
factory.register_resource_type (MEDIA_RECEIVER_REGISTRAR + ":1",
typeof (MediaReceiverRegistrar));
/* Now create the sevice objects */
this.content_dir = (ContentDirectory) this.get_service (CONTENT_DIR);
+ this.cm = (ConnectionManager) this.get_service (CONNECTION_MANAGER);
this.msr = (MediaReceiverRegistrar) this.get_service
(MEDIA_RECEIVER_REGISTRAR);
}