diff options
-rw-r--r-- | include/bluetooth_private.h | 35 |
1 files changed, 35 insertions, 0 deletions
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 @@ -764,6 +764,27 @@ typedef enum { /** * @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 * @since_tizen 3.0 * @@ -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. |