[vlc-devel] [Patch] DBus Introspection

Mirsal ENNAIME mirsal.ennaime at gmail.com
Mon Aug 13 17:12:31 CEST 2007


Introspect should return full introspection data, not only the root object:

Index: modules/control/dbus.c
===================================================================
--- modules/control/dbus.c      (révision 21064)
+++ modules/control/dbus.c      (copie de travail)
@@ -618,7 +618,14 @@
 { /* handles introspection of /org/videolan/vlc */
     REPLY_INIT;
     OUT_ARGUMENTS;
-    ADD_STRING( &psz_introspection_xml_data_root );
+    char* psz_res = (char*) malloc( strlen( psz_introspection_xml_data_root ) +
+                    strlen( psz_introspection_data_player ) +
+                    strlen( psz_introspection_data_tracklist ));
+    sprintf( psz_res, "%s\n%s\n%s", psz_introspection_xml_data_root,
+                    psz_introspection_xml_data_player,
+                    psz_introspection_xml_data_tracklist);
+    ADD_STRING( &psz_res );
+    free( psz_res );
     REPLY_SEND;
 }


-- 
Mirsal ENNAIME
_______________________________________________
vlc-devel mailing list
vlc-devel at videolan.org
http://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list