[Feature][T108-yd][task-view-1906][voice] return 0 for all null function
Only Configure:No
Affected branchmaster
Affected module:voice
Is it affected on:asr
Doc Update:No
Change-Id: I61519d1d4649ca869eea49776a7adc8f1db8251b
diff --git a/mbtk/libql_lib_v2_rilv2/ql_voice.c b/mbtk/libql_lib_v2_rilv2/ql_voice.c
index 80f9578..407a1a9 100755
--- a/mbtk/libql_lib_v2_rilv2/ql_voice.c
+++ b/mbtk/libql_lib_v2_rilv2/ql_voice.c
@@ -462,7 +462,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_cancel_dial(uint32_t id);
+int ql_voice_cancel_dial(uint32_t id)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -581,7 +584,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_hold(uint32_t id);
+int ql_voice_hold(uint32_t id)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -595,7 +601,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_unhold(uint32_t id);
+int ql_voice_unhold(uint32_t id)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -636,7 +645,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_forwarding(int reg, QL_VOICE_FW_COND_E cond, char *num, int len);
+int ql_voice_forwarding(int reg, QL_VOICE_FW_COND_E cond, char *num, int len)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -651,7 +663,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_get_forwarding_status(QL_VOICE_FW_COND_E cond, ql_voice_fw_status_t *p_status);
+int ql_voice_get_forwarding_status(QL_VOICE_FW_COND_E cond, ql_voice_fw_status_t *p_status)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -665,7 +680,11 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_waiting(int enable);
+int ql_voice_waiting(int enable)
+{
+ return QL_ERR_OK;
+}
+
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -679,7 +698,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_get_waiting_status(int *enabled);
+int ql_voice_get_waiting_status(int *enabled)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -792,7 +814,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_set_dtmf_cb(ql_voice_dtmf_cb_f cb);
+int ql_voice_set_dtmf_cb(ql_voice_dtmf_cb_f cb)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -806,7 +831,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_ecall_dial(ql_voice_ecall_info_t *p_info);
+int ql_voice_ecall_dial(ql_voice_ecall_info_t *p_info)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -819,7 +847,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_ecall_hangup(void);
+int ql_voice_ecall_hangup(void)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -834,7 +865,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_ecall_update_msd(const uint8_t *msd, uint32_t msd_len);
+int ql_voice_ecall_update_msd(const uint8_t *msd, uint32_t msd_len)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -850,7 +884,7 @@
/*-----------------------------------------------------------------------------------------------*/
int ql_voice_ecall_push_msd(QL_VOICE_ECALL_STATE_E *state)
{
- return 0;
+ return QL_ERR_OK;
}
/*-----------------------------------------------------------------------------------------------*/
@@ -865,7 +899,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_ecall_get_config(ql_voice_ecall_config_t *p_config);
+int ql_voice_ecall_get_config(ql_voice_ecall_config_t *p_config)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -880,7 +917,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_ecall_set_config(int item, ql_voice_ecall_config_t *p_config);
+int ql_voice_ecall_set_config(int item, ql_voice_ecall_config_t *p_config)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**
@@ -896,7 +936,7 @@
/*-----------------------------------------------------------------------------------------------*/
int ql_voice_ecall_set_event_cb(ql_voice_ecall_event_cb_f cb)
{
- return 0;
+ return QL_ERR_OK;
}
/*-----------------------------------------------------------------------------------------------*/
@@ -911,7 +951,10 @@
@retval Other error code defined by ql_type.h.
*/
/*-----------------------------------------------------------------------------------------------*/
-int ql_voice_ecall_set_status_cb(ql_voice_ecall_status_cb_f cb);
+int ql_voice_ecall_set_status_cb(ql_voice_ecall_status_cb_f cb)
+{
+ return QL_ERR_OK;
+}
/*-----------------------------------------------------------------------------------------------*/
/**