rygel r530 - trunk/src/rygel



Author: zeeshanak
Date: Fri Jan 30 10:09:12 2009
New Revision: 530
URL: http://svn.gnome.org/viewvc/rygel?rev=530&view=rev

Log:
GUPnPService::action_invoked.action is now owned by the handler.

Modified:
   trunk/src/rygel/rygel-connection-manager.vala
   trunk/src/rygel/rygel-content-directory.vala
   trunk/src/rygel/rygel-media-receiver-registrar.vala

Modified: trunk/src/rygel/rygel-connection-manager.vala
==============================================================================
--- trunk/src/rygel/rygel-connection-manager.vala	(original)
+++ trunk/src/rygel/rygel-connection-manager.vala	Fri Jan 30 10:09:12 2009
@@ -78,23 +78,23 @@
         val.set_string (connection_ids);
     }
 
-    private void get_protocol_info_cb (ConnectionManager cm,
-                                       ServiceAction     action) {
+    private void get_protocol_info_cb (ConnectionManager   cm,
+                                       owned ServiceAction action) {
         action.set ("Source", typeof (string), source_protocol_info,
                     "Sink",   typeof (string), sink_protocol_info);
 
         action.return ();
     }
 
-    private void get_current_connection_ids_cb (ConnectionManager cm,
-                                                ServiceAction     action) {
+    private void get_current_connection_ids_cb (ConnectionManager   cm,
+                                                owned ServiceAction action) {
         action.set ("ConnectionIDs", typeof (string), connection_ids);
 
         action.return ();
     }
 
-    private void get_current_connection_info_cb (ConnectionManager cm,
-                                                 ServiceAction     action) {
+    private void get_current_connection_info_cb (ConnectionManager   cm,
+                                                 owned ServiceAction action) {
         int connection_id;
 
         action.get ("ConnectionID", typeof (int), out connection_id);

Modified: trunk/src/rygel/rygel-content-directory.vala
==============================================================================
--- trunk/src/rygel/rygel-content-directory.vala	(original)
+++ trunk/src/rygel/rygel-content-directory.vala	Fri Jan 30 10:09:12 2009
@@ -122,8 +122,8 @@
     }
 
     /* Browse action implementation */
-    protected virtual void browse_cb (ContentDirectory content_dir,
-                                      ServiceAction    action) {
+    protected virtual void browse_cb (ContentDirectory    content_dir,
+                                      owned ServiceAction action) {
         bool metadata;
 
         BrowseArgs args = new BrowseArgs ();
@@ -168,8 +168,8 @@
     }
 
     /* GetSystemUpdateID action implementation */
-    private void get_system_update_id_cb (ContentDirectory content_dir,
-                                          ServiceAction    action) {
+    private void get_system_update_id_cb (ContentDirectory    content_dir,
+                                          owned ServiceAction action) {
         /* Set action return arguments */
         action.set ("Id", typeof (uint32), this.root_container.update_id);
 
@@ -186,8 +186,8 @@
     }
 
     /* action GetSearchCapabilities implementation */
-    private void get_search_capabilities_cb (ContentDirectory content_dir,
-                                             ServiceAction    action) {
+    private void get_search_capabilities_cb (ContentDirectory    content_dir,
+                                             owned ServiceAction action) {
         /* Set action return arguments */
         action.set ("SearchCaps", typeof (string), this.search_caps);
 
@@ -204,8 +204,8 @@
     }
 
     /* action GetSortCapabilities implementation */
-    private void get_sort_capabilities_cb (ContentDirectory content_dir,
-                                           ServiceAction    action) {
+    private void get_sort_capabilities_cb (ContentDirectory    content_dir,
+                                           owned ServiceAction action) {
         /* Set action return arguments */
         action.set ("SortCaps", typeof (string), this.sort_caps);
 
@@ -222,8 +222,8 @@
     }
 
     /* action GetFeatureList implementation */
-    private void get_feature_list_cb (ContentDirectory content_dir,
-                                      ServiceAction    action) {
+    private void get_feature_list_cb (ContentDirectory    content_dir,
+                                      owned ServiceAction action) {
         /* Set action return arguments */
         action.set ("FeatureList", typeof (string), this.feature_list);
 

Modified: trunk/src/rygel/rygel-media-receiver-registrar.vala
==============================================================================
--- trunk/src/rygel/rygel-media-receiver-registrar.vala	(original)
+++ trunk/src/rygel/rygel-media-receiver-registrar.vala	Fri Jan 30 10:09:12 2009
@@ -41,14 +41,14 @@
 
     /* IsAuthorized and IsValided action implementations (fake) */
     private void is_authorized_cb (MediaReceiverRegistrar registrar,
-                                   ServiceAction          action) {
+                                   owned ServiceAction    action) {
         action.set ("Result", typeof (int), 1);
 
         action.return ();
     }
 
     private void register_device_cb (MediaReceiverRegistrar registrar,
-                                     ServiceAction          action) {
+                                     owned ServiceAction    action) {
         action.set ("RegistrationRespMsg",
                     typeof (string),
                     "WhatisSupposedToBeHere");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]