%define major 0
%define minor 8
-%define patchlevel 2
+%define patchlevel 3
Name: libtapi
Version: %{major}.%{minor}.%{patchlevel}
void *user_data;
} TelReadyStateCallback_t;
+/* LCOV_EXCL_START */
static void _process_sms_event(const gchar *sig, GVariant *param,
TapiHandle *handle, char *noti_id, struct tapi_evt_cb *evt_cb_data)
{
g_free(noti_id);
}
+/* LCOV_EXCL_STOP */
EXPORT_API char **tel_get_cp_name_list(void)
{
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_START */
static gpointer _copy_ready_cb_item(gconstpointer src, gpointer data)
{
TelReadyStateCallback_t *orig_data = (TelReadyStateCallback_t *)src;
g_slist_free_full(copied_list_head, g_free);
}
+/* LCOV_EXCL_STOP */
EXPORT_API int tel_register_ready_state_cb(tapi_state_cb callback, void *user_data)
{
return TAPI_NETWORK_SYSTEM_NO_SRV;
}
+/* LCOV_EXCL_START */
static void on_signal_registration_status(TapiHandle *handle, GVariant *param,
char *noti_id, struct tapi_evt_cb *evt_cb_data)
{
g_variant_get(param, "(i)", &bs_longitude);
TAPI_INVOKE_NOTI_CALLBACK(&bs_longitude);
}
+/* LCOV_EXCL_STOP */
static struct signal_map signals[] = {
{ "RegistrationStatus", on_signal_registration_status },
data->oem_id = oem_id; \
} while (0)
+/* LCOV_EXCL_START */
static void on_response_oem_data_async(GObject *source_object,
GAsyncResult *res, gpointer user_data)
{
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
#include "tapi_log.h"
#include "ITapiSap.h"
+/* LCOV_EXCL_START */
static void on_response_sap_connect(GObject *source_object, GAsyncResult *res, gpointer user_data)
{
GError *error = NULL;
return TAPI_API_SUCCESS;
}
+/* LCOV_EXCL_STOP */
extern TelSatEventDownloadType_t g_event_list[TAPI_SAT_EVENT_LIST_MAX_COUNT];
+/* LCOV_EXCL_START */
static GVariant *_tapi_sat_gen_app_exec_result_data(TelSatAppsRetInfo_t *result_info)
{
GVariant *result = NULL;
g_variant_unref(dbus_result);
g_free(evt_cb_data);
}
+/* LCOV_EXCL_STOP */
/**
*
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pMenuSelect, TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
TAPI_MAKE_RESP_CB_DATA(evt_cb_data, handle, callback, user_data);
item_id = pMenuSelect->itemIdentifier;
g_variant_unref(inparam);
return TAPI_API_SUCCESS;
+ /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pEventData, TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
for (g_index = 0; g_event_list[g_index] > 0; g_index++) {
if (pEventData->eventDownloadType == TAPI_EVENT_SAT_DW_TYPE_BROWSER_TERMINATION
|| g_event_list[g_index] == pEventData->eventDownloadType) {
g_variant_unref(inparam);
return TAPI_API_SUCCESS;
+ /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pMainMenu, TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
memset(pMainMenu, 0, sizeof(TelSatSetupMenuInfo_t));
error = NULL;
dbg("menu updated (%d)", pMainMenu->bIsUpdatedSatMainMenu);
return TAPI_API_SUCCESS;
+ /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
command_id = commandId;
display_status = ((status == TAPI_SAT_DISPLAY_SUCCESS) ? TRUE : FALSE);
dbg("command id(%d) display status(%d)", command_id, display_status);
dbg("result (%d)", result);
return result;
+ /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pUserConfirmData, TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
command_id = pUserConfirmData->commandId;
command_type = pUserConfirmData->commandType;
key_type = pUserConfirmData->keyType;
dbg("result (%d)", result);
return result;
+ /* LCOV_EXCL_STOP */
}
/**
TAPI_RET_ERR_NUM_IF_FAIL(handle->dbus_connection, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pAppRetInfo, TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
command_id = pAppRetInfo->commandId;
command_type = pAppRetInfo->commandType;
app_exec_result = _tapi_sat_gen_app_exec_result_data(pAppRetInfo);
dbg("result (%d)", result);
return result;
+ /* LCOV_EXCL_STOP */
}
g_variant_unref(dbus_result);
}
+/* LCOV_EXCL_START */
static void on_response_verify_sim_pins(GObject *source_object, GAsyncResult *res,
gpointer user_data)
{
g_free(evt_cb_data);
g_variant_unref(dbus_result);
}
+/* LCOV_EXCL_STOP */
static void on_response_get_sim_facility(GObject *source_object, GAsyncResult *res,
gpointer user_data)
return TAPI_API_SUCCESS;
}
+
EXPORT_API int tel_verifiy_sim_pins(TapiHandle *handle, const TelSimSecPw_t *pin_data,
tapi_response_cb callback, void *user_data)
{
TAPI_RET_ERR_NUM_IF_FAIL(pin_data, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pin_data->pw, TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
msg("pin type[%d]", pin_data->type);
free(gpw);
return TAPI_API_SUCCESS;
+ /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_verify_sim_puks(TapiHandle *handle, const TelSimSecPw_t *puk_data,
TAPI_RET_ERR_NUM_IF_FAIL((puk_data != NULL && new_pin_data != NULL), TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL((puk_data->pw != NULL && new_pin_data->pw != NULL), TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
msg("puk type[%d] pin type[%d]", puk_data->type, new_pin_data->type);
free(gpuk);
return TAPI_API_SUCCESS;
+ /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_change_sim_pins(TapiHandle *handle, const TelSimSecPw_t *old_pin,
TAPI_RET_ERR_NUM_IF_FAIL((old_pin != NULL && new_pin != NULL), TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL((old_pin->pw != NULL && new_pin->pw != NULL), TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
msg("old_pin type[%d], new_pin type[%d]", old_pin->type, new_pin->type);
free(gpin_n);
return TAPI_API_SUCCESS;
+ /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_disable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw,
TAPI_RET_ERR_NUM_IF_FAIL(pw, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pw->pw, TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
dbg("facility type[%d]", pw->lock_type);
free(gpw);
return TAPI_API_SUCCESS;
+ /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_enable_sim_facility(TapiHandle *handle, TelSimFacilityPw_t *pw,
TAPI_RET_ERR_NUM_IF_FAIL(pw, TAPI_API_INVALID_PTR);
TAPI_RET_ERR_NUM_IF_FAIL(pw->pw, TAPI_API_INVALID_PTR);
+ /* LCOV_EXCL_START */
TAPI_SIM_CHECK_TAPI_STATE();
msg("facility type[%d]", pw->lock_type);
free(gpw);
return TAPI_API_SUCCESS;
+ /* LCOV_EXCL_STOP */
}
EXPORT_API int tel_get_sim_facility(TapiHandle *handle, TelSimLockType_t type,