From: DoHyun Pyun Date: Thu, 25 Aug 2016 02:32:48 +0000 (+0900) Subject: Add missing enum value and type define function X-Git-Tag: submit/tizen/20160825.004351^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53b9535c568945f59f4ad7c874e244f305ff78c2;p=platform%2Fcore%2Fapi%2Fbluetooth.git Add missing enum value and type define function Change-Id: Ia6c33741750cdb5ca9c1cea8e0788e71f2a2e6fa Signed-off-by: DoHyun Pyun --- diff --git a/include/bluetooth_private.h b/include/bluetooth_private.h index 473291e..142b684 100644 --- a/include/bluetooth_private.h +++ b/include/bluetooth_private.h @@ -762,6 +762,27 @@ typedef enum { BT_HF_REMOTE_DEVICE_STATE_VOICE_RECOGNITON, /**< Voice Recognition State (0:disabled , 1:enabled) */ } bt_hf_remote_device_state_e; +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE + * @brief Enumerations for the call event from Audio-Gateway device + * @since_tizen 3.0 + */ +typedef enum { + BT_HF_REMOTE_CALL_EVENT_IDLE = 0x00, /**< Idle. Neither setup call nor active call exist */ + BT_HF_REMOTE_CALL_EVENT_INCOMING, /**< (Call-setup event) Received an incoming call on AG */ + BT_HF_REMOTE_CALL_EVENT_DIALING, /**< (Call-setup event) Dialing an outgoing call on AG */ + BT_HF_REMOTE_CALL_EVENT_ALERTING, /**< (Call-setup event) Remote party being alerted in an outgoing call of AG */ + BT_HF_REMOTE_CALL_EVENT_CALL_TERMINATED, /**< (Call-setup event) Setup call is terminated without activating */ + BT_HF_REMOTE_CALL_EVENT_CALL_STARTED, /**< (Active call state event) Call is started on AG */ + BT_HF_REMOTE_CALL_EVENT_CALL_ENDED, /**< (Active call state event) Active call is terminated on AG */ + BT_HF_REMOTE_CALL_EVENT_UNHELD, /**< (Call held event) No calls on hold */ + BT_HF_REMOTE_CALL_EVENT_SWAPPED, /**< (Call held event) Call is placed on hold or active/held calls swapped */ + BT_HF_REMOTE_CALL_EVENT_HELD, /**< (Call held event) Calls on hold, no active call */ + BT_HF_REMOTE_CALL_EVENT_RINGING, /**< Incoming call is ringing event with number. This event is optional event. */ + BT_HF_REMOTE_CALL_EVENT_WAITING, /**< Call Waiting notification in 3-way call scenario */ + BT_HF_REMOTE_CALL_EVENT_FAILED_TO_DIALING, /**< Failed to dialing a outgoing call on AG */ +} bt_hf_remote_call_event_e; + /** * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE * @brief Called when a device status changed event happend from Audio-Gateway device @@ -776,6 +797,20 @@ typedef enum { */ typedef void (*bt_hf_remote_device_state_changed_cb) (bt_hf_remote_device_state_e state, int value, void *user_data); + +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE + * @brief Called when a call event happend from Audio-Gateway device + * @since_tizen 3.0 + * + * @param[in] event The call state chagned event from remote Audio-Gateway device + * @param[in] user_data The user data passed from the callback registration function + * + * @see bt_hf_set_remote_call_event_cb() + * @see bt_hf_unset_remote_call_event_cb() + */ +typedef void (*bt_hf_remote_call_event_cb) (bt_hf_remote_call_event_e event, char *phone_number, void *user_data); + /** * @internal * @brief Since the HF call back and event proxy call backs have different prototype it is wrapper function.