X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fbluetooth-media-control.h;h=fee791438f9f56d918ea5626e45a5d7667891472;hb=056495021756aa37041f3e498c79f550d1885a91;hp=93a8b620da695a3e83346114e9268a4ca2b43ff6;hpb=9641b1d6e4c6b8a25dc3b1c83785f5d7c1ab9690;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/include/bluetooth-media-control.h b/include/bluetooth-media-control.h old mode 100644 new mode 100755 index 93a8b62..fee7914 --- a/include/bluetooth-media-control.h +++ b/include/bluetooth-media-control.h @@ -40,6 +40,11 @@ typedef enum { } media_player_property_type; typedef enum { + DELAY = 0x01, + VOLUME +} media_transport_property_type; + +typedef enum { EQUALIZER_OFF = 0x01, EQUALIZER_ON, EQUALIZER_INVALID, @@ -86,7 +91,9 @@ typedef enum { PRESS_FAST_FORWARD, RELEASE_FAST_FORWARD, PRESS_REWIND, - RELEASE_REWIND + RELEASE_REWIND, + VOLUME_UP, + VOLUME_DOWN } media_player_control_cmd; typedef struct { @@ -296,6 +303,18 @@ int bluetooth_media_target_disconnect(bluetooth_device_address_t *remote_address int bluetooth_media_control_command(media_player_control_cmd type); /** + * @brief The function bluetooth_media_control_command_to_dest is called to send + * the AVRCP Control command like Play, Pause, FF, Rewind to the specific target device. + * + * @param[in] type media_player_control_cmd. + * @param[in] remote_address Bluetooth device address. + * @return int Zero on Success or reason for error if any. + * + */ +int bluetooth_media_control_command_to_dest(media_player_control_cmd type, + bluetooth_device_address_t *remote_address); + +/** * @fn int bluetooth_media_control_set_property(media_player_property_type type, unsigned int value) * @brief Notifies the remote bluetooth target with change in music control settings * @@ -332,6 +351,24 @@ int bluetooth_media_control_set_property(media_player_property_type type, unsign int bluetooth_media_control_get_property(media_player_property_type type, unsigned int *value); /** + * @fn int bluetooth_media_transport_set_property(media_transport_property_type type, unsigned int value) + * @brief Notifies the remote bluetooth target with change in audio transport settings + * + * This function is a asynchronous call. + * No event for this api. + * + * @return BT_MEDIA_TRANSPORT_SUCCESS - Success \n + * BT_MEDIA_TRANSPORT_ERROR - Error \n + * + * @exception None + * @param[in] setting - The audio transport properties + * + * @remark None + * @see None + */ +int bluetooth_media_transport_set_property(media_transport_property_type type, unsigned int value); + +/** * @fn int bluetooth_media_control_get_track_info(media_metadata_attributes_t *metadata) * @brief reads the track metadata from the remote target player. *