Commit 2828d7d1 authored by Rafaël Carré's avatar Rafaël Carré

DBus : missing return argument for AddTrack

parent 8e18f5c6
...@@ -382,6 +382,7 @@ DBUS_METHOD( Identity ) ...@@ -382,6 +382,7 @@ DBUS_METHOD( Identity )
DBUS_METHOD( AddTrack ) DBUS_METHOD( AddTrack )
{ /* add the string to the playlist, and play it if the boolean is true */ { /* add the string to the playlist, and play it if the boolean is true */
REPLY_INIT; REPLY_INIT;
OUT_ARGUMENTS;
DBusError error; DBusError error;
dbus_error_init( &error ); dbus_error_init( &error );
...@@ -409,6 +410,9 @@ DBUS_METHOD( AddTrack ) ...@@ -409,6 +410,9 @@ DBUS_METHOD( AddTrack )
PLAYLIST_END, true, false ); PLAYLIST_END, true, false );
pl_Release( p_playlist ); pl_Release( p_playlist );
dbus_int32_t i_success = 0;
ADD_INT32( &i_success );
REPLY_SEND; REPLY_SEND;
} }
......
...@@ -177,6 +177,7 @@ const char* psz_introspection_xml_data_tracklist = ...@@ -177,6 +177,7 @@ const char* psz_introspection_xml_data_tracklist =
" <method name=\"AddTrack\">\n" " <method name=\"AddTrack\">\n"
" <arg type=\"s\" direction=\"in\" />\n" " <arg type=\"s\" direction=\"in\" />\n"
" <arg type=\"b\" direction=\"in\" />\n" " <arg type=\"b\" direction=\"in\" />\n"
" <arg type=\"i\" direction=\"out\" />\n"
" </method>\n" " </method>\n"
" <method name=\"DelTrack\">\n" " <method name=\"DelTrack\">\n"
" <arg type=\"i\" direction=\"in\" />\n" " <arg type=\"i\" direction=\"in\" />\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment