Bluetooth : Support AVC target feature
[platform/upstream/pulseaudio.git] / src / modules / bluetooth / bluez5-util.h
index 9b8ed9c..aa384b2 100644 (file)
@@ -47,6 +47,7 @@ typedef enum pa_bluetooth_hook {
     PA_BLUETOOTH_HOOK_TRANSPORT_STATE_CHANGED,            /* Call data: pa_bluetooth_transport */
 #ifdef __TIZEN_BT__
     PA_BLUETOOTH_HOOK_SCO_STATE_CHANGED,            /* Call data: pa_bluetooth_transport */
+    PA_BLUETOOTH_HOOK_AVC_MODE_CHANGED,            /* Call data: pa_bluetooth_transport */
 #endif
     PA_BLUETOOTH_HOOK_TRANSPORT_MICROPHONE_GAIN_CHANGED,  /* Call data: pa_bluetooth_transport */
     PA_BLUETOOTH_HOOK_TRANSPORT_SPEAKER_GAIN_CHANGED,     /* Call data: pa_bluetooth_transport */
@@ -68,6 +69,14 @@ typedef enum pa_bluetooth_transport_state {
     PA_BLUETOOTH_TRANSPORT_STATE_PLAYING
 } pa_bluetooth_transport_state_t;
 
+#ifdef TIZEN_BT_AVC_TARGET
+typedef enum pa_bluetooth_avc_mode {
+    PA_BLUETOOTH_AVC_OFF,    /* Absolute Volume Control (AVC) : No */
+    PA_BLUETOOTH_AVC_NULL,   /* Absolute Volume Control (AVC) : Volume 0 */
+    PA_BLUETOOTH_AVC_MAX     /* Absolute Volume Control (AVC) : MAX Volume */
+} pa_bluetooth_avc_mode_t;
+#endif
+
 typedef int (*pa_bluetooth_transport_acquire_cb)(pa_bluetooth_transport *t, bool optional, size_t *imtu, size_t *omtu);
 typedef void (*pa_bluetooth_transport_release_cb)(pa_bluetooth_transport *t);
 typedef void (*pa_bluetooth_transport_destroy_cb)(pa_bluetooth_transport *t);
@@ -88,6 +97,10 @@ struct pa_bluetooth_transport {
     uint16_t microphone_gain;
     uint16_t speaker_gain;
 
+#ifdef TIZEN_BT_AVC_TARGET
+    uint32_t avc_mode;
+#endif
+
     pa_bluetooth_transport_state_t state;
 
     pa_bluetooth_transport_acquire_cb acquire;
@@ -162,6 +175,9 @@ bool pa_bluetooth_device_any_transport_connected(const pa_bluetooth_device *d);
 #ifdef __TIZEN_BT__
 bool pa_bluetooth_device_sink_transport_connected(const pa_bluetooth_device *d);
 bool pa_bluetooth_device_source_transport_connected(const pa_bluetooth_device *d);
+#ifdef TIZEN_BT_AVC_TARGET
+int pa_bluetooth_transport_get_avc_mode(pa_bluetooth_transport *t, unsigned int *mode);
+#endif
 #endif
 
 pa_bluetooth_device* pa_bluetooth_discovery_get_device_by_path(pa_bluetooth_discovery *y, const char *path);