From: hj kim Date: Mon, 17 Sep 2018 02:20:31 +0000 (+0900) Subject: Update doxygen and Fix memory leak X-Git-Tag: submit/tizen/20180917.050334~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b6a93c0cab28b1f9ffce20353ff750877bdec19;p=platform%2Fcore%2Fapi%2Fmedia-controller.git Update doxygen and Fix memory leak Change-Id: I888d197f777908201fa98b0c0f6e3702e12bca21 --- diff --git a/include/media_controller_client.h b/include/media_controller_client.h index 5308816..db317ad 100755 --- a/include/media_controller_client.h +++ b/include/media_controller_client.h @@ -366,6 +366,7 @@ typedef void (*mc_client_custom_event_received_cb)(const char *server_name, cons * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @see mc_client_destroy() */ @@ -601,6 +602,8 @@ int mc_client_unset_repeat_mode_update_cb(mc_client_h client) TIZEN_DEPRECATED_A * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -620,6 +623,7 @@ int mc_client_set_server_updated_cb(mc_client_h client, mc_server_state_updated_ * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -642,6 +646,8 @@ int mc_client_unset_server_updated_cb(mc_client_h client); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -661,6 +667,7 @@ int mc_client_set_playback_updated_cb(mc_client_h client, mc_playback_updated_cb * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -683,6 +690,8 @@ int mc_client_unset_playback_updated_cb(mc_client_h client); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -702,6 +711,7 @@ int mc_client_set_metadata_updated_cb(mc_client_h client, mc_metadata_updated_cb * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -724,6 +734,8 @@ int mc_client_unset_metadata_updated_cb(mc_client_h client); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -743,6 +755,7 @@ int mc_client_set_shuffle_mode_updated_cb(mc_client_h client, mc_shuffle_mode_up * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -765,6 +778,8 @@ int mc_client_unset_shuffle_mode_updated_cb(mc_client_h client); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -784,6 +799,7 @@ int mc_client_set_repeat_mode_updated_cb(mc_client_h client, mc_repeat_mode_upda * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -806,6 +822,8 @@ int mc_client_unset_repeat_mode_updated_cb(mc_client_h client); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -825,6 +843,7 @@ int mc_client_set_playback_ability_updated_cb(mc_client_h client, mc_playback_ab * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -847,6 +866,8 @@ int mc_client_unset_playback_ability_updated_cb(mc_client_h client); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -866,6 +887,7 @@ int mc_client_set_shuffle_ability_updated_cb(mc_client_h client, mc_shuffle_abil * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -888,6 +910,8 @@ int mc_client_unset_shuffle_ability_updated_cb(mc_client_h client); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -907,6 +931,7 @@ int mc_client_set_repeat_ability_updated_cb(mc_client_h client, mc_repeat_abilit * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -929,6 +954,8 @@ int mc_client_unset_repeat_ability_updated_cb(mc_client_h client); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -949,6 +976,7 @@ int mc_client_set_cmd_reply_received_cb(mc_client_h client, mc_cmd_reply_receive * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -973,8 +1001,8 @@ int mc_client_unset_cmd_reply_received_cb(mc_client_h client); * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied - * * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() * @see mc_client_destroy() @@ -995,6 +1023,7 @@ int mc_client_set_playlist_updated_cb(mc_client_h client, mc_playlist_updated_cb * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -1018,6 +1047,7 @@ int mc_client_unset_playlist_updated_cb(mc_client_h client); * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_client_create() @@ -1040,6 +1070,7 @@ int mc_client_set_custom_event_received_cb(mc_client_h client, mc_client_custom_ * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_client_create() @@ -1070,6 +1101,7 @@ int mc_client_unset_custom_event_received_cb(mc_client_h client); * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_client_create() @@ -1099,6 +1131,8 @@ int mc_client_send_event_reply(mc_client_h client, const char *server_name, cons * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create() * @pre Set the callback for monitoring status of the media controller server @@ -1150,6 +1184,8 @@ int mc_client_unsubscribe(mc_client_h client, mc_subscription_type_e subscriptio * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create() * @pre Subscribe the media controller server for monitoring status by calling mc_client_subscribe() @@ -1361,6 +1397,7 @@ int mc_client_destroy_metadata(mc_metadata_h metadata) TIZEN_DEPRECATED_API; * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied */ int mc_client_get_latest_server_info(mc_client_h client, char **server_name, mc_server_state_e *server_state); @@ -1383,6 +1420,8 @@ int mc_client_get_latest_server_info(mc_client_h client, char **server_name, mc_ * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied */ int mc_client_get_server_playback_info(mc_client_h client, const char *server_name, mc_playback_h *playback); @@ -1405,6 +1444,8 @@ int mc_client_get_server_playback_info(mc_client_h client, const char *server_na * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied */ int mc_client_get_server_metadata(mc_client_h client, const char *server_name, mc_metadata_h *metadata); @@ -1494,6 +1535,7 @@ int mc_client_get_server_icon(mc_client_h client, const char *server_name, char * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @pre Get a server name handle by calling mc_client_create(). @@ -1576,6 +1618,8 @@ int mc_client_get_server_repeat_ability_support(mc_client_h client, const char * * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -1602,8 +1646,9 @@ int mc_client_foreach_server(mc_client_h client, mc_activated_server_cb callback * * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation + * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -1651,6 +1696,7 @@ int mc_client_send_playback_state_command(mc_client_h client, const char *server * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -1677,6 +1723,7 @@ int mc_client_send_playback_action_cmd(mc_client_h client, const char *server_na * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -1703,6 +1750,7 @@ int mc_client_send_playback_position_cmd(mc_client_h client, const char *server_ * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -1729,6 +1777,7 @@ int mc_client_send_shuffle_mode_cmd(mc_client_h client, const char *server_name, * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -1784,6 +1833,7 @@ int mc_client_send_custom_command(mc_client_h client, const char *server_name, c * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() @@ -1812,6 +1862,8 @@ int mc_client_send_playlist_cmd(mc_client_h client, const char *server_name, con * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_client_create() * @see mc_client_set_cmd_reply_received_cb() @@ -1839,6 +1891,7 @@ int mc_client_send_custom_cmd(mc_client_h client, const char *server_name, const * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory * @pre Create a media controller client handle by calling mc_client_create(). * @pre Create search handle and set data by calling mc_search_create() and mc_search_set_condition(). * @see mc_client_create() diff --git a/include/media_controller_server.h b/include/media_controller_server.h index d0d4e23..7877385 100755 --- a/include/media_controller_server.h +++ b/include/media_controller_server.h @@ -168,7 +168,7 @@ typedef void (*mc_server_custom_command_received_cb)(const char* client_name, co * * @remarks The callback is called in the dbus event loop. \n * If @a request_id is not null, the server should send the reply to the client with the @a request_id. - * The @a client_name and @ request_id should not be released by the application. \n + * The @a client_name, @ request_id, @ playlist_name and @ index should not be released by the application. \n * The @a client_name, @ request_id, @ playlist_name and @ index can be used only in the callback. To use outside, make a copy. * * @param[in] client_name The app_id of the media controller client. @@ -194,7 +194,7 @@ typedef void (*mc_server_playlist_cmd_received_cb)(const char* client_name, cons * * @remarks The callback is called in the dbus event loop. @a data should be released using bundle_free().\n * If @a request_id is not null, the server should send the reply to the client with the @a request_id. - * The @a client_name and @ request_id should not be released by the application. \n + * The @a client_name, @ request_id and @ command should not be released by the application. \n * The @a client_name, @ request_id and @ command can be used only in the callback. To use outside, make a copy. * * @param[in] client_name The app_id of the media controller client. @@ -295,6 +295,7 @@ typedef void (*mc_server_search_cmd_received_cb)(const char *client_name, const * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @see mc_server_destroy() */ @@ -466,6 +467,7 @@ int mc_server_set_content_age_rating(mc_server_h server, mc_content_age_rating_e * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -511,6 +513,7 @@ int mc_server_set_metadata(mc_server_h server, mc_meta_e attribute, const char * * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -533,6 +536,7 @@ int mc_server_update_metadata(mc_server_h server); * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -555,6 +559,7 @@ int mc_server_update_shuffle_mode(mc_server_h server, mc_shuffle_mode_e mode); * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -618,6 +623,8 @@ int mc_server_unset_playback_state_command_received_cb(mc_server_h server) TIZEN * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -637,6 +644,7 @@ int mc_server_set_playback_action_cmd_received_cb(mc_server_h server, mc_server_ * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -658,6 +666,8 @@ int mc_server_unset_playback_action_cmd_received_cb(mc_server_h server); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -677,6 +687,7 @@ int mc_server_set_playback_position_cmd_received_cb(mc_server_h server, mc_serve * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -698,6 +709,8 @@ int mc_server_unset_playback_position_cmd_received_cb(mc_server_h server); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -717,6 +730,7 @@ int mc_server_set_shuffle_mode_cmd_received_cb(mc_server_h server, mc_server_shu * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -738,6 +752,8 @@ int mc_server_unset_shuffle_mode_cmd_received_cb(mc_server_h server); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -757,6 +773,7 @@ int mc_server_set_repeat_mode_cmd_received_cb(mc_server_h server, mc_server_repe * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -846,6 +863,8 @@ int mc_server_send_command_reply(mc_server_h server, const char *client_name, in * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -865,6 +884,7 @@ int mc_server_set_playlist_cmd_received_cb(mc_server_h server, mc_server_playlis * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -886,6 +906,8 @@ int mc_server_unset_playlist_cmd_received_cb(mc_server_h server); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -905,6 +927,7 @@ int mc_server_set_custom_cmd_received_cb(mc_server_h server, mc_server_custom_cm * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -931,6 +954,7 @@ int mc_server_unset_custom_cmd_received_cb(mc_server_h server); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -962,6 +986,7 @@ int mc_server_send_cmd_reply(mc_server_h server, const char *client_name, const * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -1017,6 +1042,7 @@ int mc_server_send_custom_event(mc_server_h server, const char *client_name, con * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @pre mc_server_send_custom_event(). @@ -1038,7 +1064,7 @@ int mc_server_set_event_reply_received_cb(mc_server_h server, mc_server_event_re * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller client handle by calling mc_client_create(). * @see mc_server_create() @@ -1061,6 +1087,8 @@ int mc_server_unset_event_reply_received_cb(mc_server_h server); * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -1080,6 +1108,7 @@ int mc_server_set_search_cmd_received_cb(mc_server_h server, mc_server_search_cm * otherwise a negative error value * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -1094,8 +1123,9 @@ int mc_server_unset_search_cmd_received_cb(mc_server_h server); * @param[in] server The handle to media controller server * @return @c 0 on success, * otherwise a negative error value - * @retval #METADATA_EXTRACTOR_ERROR_NONE Successful - * @retval #METADATA_EXTRACTOR_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() */ @@ -1121,6 +1151,7 @@ int mc_server_destroy(mc_server_h server); * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * * @pre Create a media controller server handle by calling mc_server_create(). @@ -1185,6 +1216,7 @@ int mc_server_add_item_to_playlist(mc_server_h server, mc_playlist_h playlist, c * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * * @pre Create a media controller server handle by calling mc_server_create(). @@ -1212,6 +1244,7 @@ int mc_server_update_playlist_done(mc_server_h server, mc_playlist_h playlist); * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * * @pre Create a media controller server handle by calling mc_server_create(). @@ -1243,6 +1276,7 @@ int mc_server_delete_playlist(mc_server_h server, mc_playlist_h playlist); * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * * @pre Create a media controller server handle by calling mc_server_create(). @@ -1267,6 +1301,7 @@ int mc_server_foreach_playlist(mc_server_h server, mc_playlist_cb callback, void * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @post Update abilities of a media controller server by calling mc_server_update_playback_ability(). @@ -1289,6 +1324,7 @@ int mc_server_set_playback_ability(mc_server_h server, mc_playback_action_e acti * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @pre Set abilities of a media controller server by calling mc_server_set_playback_ability(). @@ -1311,6 +1347,7 @@ int mc_server_update_playback_ability(mc_server_h server); * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -1332,6 +1369,7 @@ int mc_server_set_shuffle_ability(mc_server_h server, mc_ability_support_e suppo * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() @@ -1355,6 +1393,7 @@ int mc_server_set_repeat_ability(mc_server_h server, mc_ability_support_e suppor * @retval #MEDIA_CONTROLLER_ERROR_NONE Successful * @retval #MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY Out of memory + * @retval #MEDIA_CONTROLLER_ERROR_INVALID_OPERATION Invalid operation * @retval #MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED Permission denied * @pre Create a media controller server handle by calling mc_server_create(). * @see mc_server_create() diff --git a/packaging/capi-media-controller.spec b/packaging/capi-media-controller.spec index f23ae85..7eb7c92 100755 --- a/packaging/capi-media-controller.spec +++ b/packaging/capi-media-controller.spec @@ -1,6 +1,6 @@ Name: capi-media-controller Summary: A media controller library in Tizen Native API -Version: 0.1.71 +Version: 0.1.72 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_controller_client.c b/src/media_controller_client.c index 855bc40..780ce32 100755 --- a/src/media_controller_client.c +++ b/src/media_controller_client.c @@ -218,6 +218,7 @@ static void __client_playlist_cb(const char *interface_name, const char *signal_ callback(params[0], mode, params[2], (mc_playlist_h)_playlist, reciever->user_data); g_strfreev(params); + mc_playlist_destroy((mc_playlist_h)_playlist); return; } diff --git a/src/media_controller_server.c b/src/media_controller_server.c index 64bdfb9..0936656 100755 --- a/src/media_controller_server.c +++ b/src/media_controller_server.c @@ -596,6 +596,8 @@ static void __server_search_cmd_cb(const char *interface_name, const char *signa callback(params[0], request_id, (mc_search_h)mc_search, receiver->user_data); g_strfreev(params); + + mc_search_destroy((mc_search_h)mc_search); } static int __mc_server_current_is_latest(media_controller_server_s *mc_server, bool *is_latest) diff --git a/src/media_controller_util.c b/src/media_controller_util.c index 4e674e3..f3b82d7 100755 --- a/src/media_controller_util.c +++ b/src/media_controller_util.c @@ -107,6 +107,7 @@ char *mc_util_get_interface_name(const char *type, const char *name) _mc_util_check_valid_name(temp, &interface_name); MC_SAFE_G_FREE(temp); + return interface_name; }