Merge "Providing bluetooth usage data for battery monitor framework" into tizen
[platform/core/connectivity/bluetooth-frwk.git] / include / bluetooth-media-control.h
old mode 100644 (file)
new mode 100755 (executable)
index 93a8b62..fee7914
@@ -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.
  *