[vlc-devel] [Patch] DBus Introspection
Rafaël Carré
funman at videolan.org
Mon Aug 13 17:23:22 CEST 2007
as discussed on irc, that is not the correct way to go
2007/8/13, Mirsal ENNAIME <mirsal.ennaime at gmail.com>:
> 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
>
--
Rafaël Carré
_______________________________________________
vlc-devel mailing list
vlc-devel at videolan.org
http://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list