static void __bt_map_noti_registration(char *remote_addr, gboolean status);
static void __bt_map_destroy_agent(void);
+/* LCOV_EXCL_START */
/* Create GError from error code and error message */
static GError *__bt_map_error(int error_code, char *error_message)
{
FN_END;
return map_dbus_conn;
}
+/* LCOV_EXCL_STOP */
gboolean is_mns_connected(void)
{
if (!g_mns_proxy)
return FALSE;
else
- return TRUE;
+ return TRUE; /* LCOV_EXCL_LINE */
}
guint64 _bt_validate_uid(int uid, int msg_type)
return info->map_id;
}
- list = g_slist_next(list);
+ list = g_slist_next(list); /* LCOV_EXCL_LINE */
}
FN_END;
return map_id;
}
+/* LCOV_EXCL_START */
static struct id_info *__bt_get_id(guint64 map_id)
{
FN_START;
FN_END;
return handle_info;
}
+/* LCOV_EXCL_STOP */
int _bt_update_id(guint64 map_id, int new_uid, int msg_type)
{
GSList *list = id_list;
while (list) {
+ /* LCOV_EXCL_START */
info = list->data;
if (info->map_id == map_id) {
}
list = g_slist_next(list);
+ /* LCOV_EXCL_STOP */
}
FN_END;
return -1;
}
+/* LCOV_EXCL_START */
static void __bt_remove_list(GSList *id_list)
{
FN_START;
g_slist_free_full(id_list, g_free);
FN_END;
}
+/* LCOV_EXCL_STOP */
gboolean _bt_verify_sender(message_info_t *msg_info, char *sender)
{
FN_END;
}
+/* LCOV_EXCL_START */
time_t _get_time_t_from_timestamp(char *timestamp)
{
struct tm local_time;
int_time = mktime(&local_time);
return int_time;
}
+/* LCOV_EXCL_STOP */
gboolean _bt_verify_time(message_info_t *msg_info, map_msg_filter_t *filter)
{
dest |= npi & 0x0F; \
}
+/* LCOV_EXCL_START */
static int __bt_ascii_to_upper(int ch)
{
return (('a' <= (ch) && (ch) <= 'z') ? ((ch) - ('a'-'A')) : (ch));
g_sca_info->DialNumLen = scaInfo->DialNumLen;
FN_END;
}
+/* LCOV_EXCL_STOP */
void _bt_message_info_free(gpointer data)
{
FN_END;
}
+/* LCOV_EXCL_START */
static gboolean __bluetooth_map_start_service()
{
FN_START;
FN_END;
return FALSE;
}
+/* LCOV_EXCL_STOP */
static gboolean __bt_validate_utf8(char **text)
{
if (g_utf8_validate(*text, -1, NULL))
return TRUE;
+ /* LCOV_EXCL_START */
FN_END;
return FALSE;
+ /* LCOV_EXCL_STOP */
}
gboolean _bt_validate_msg_data(message_info_t *msg_info)
if (msg_info->sender_name)
return __bt_validate_utf8(&msg_info->sender_name);
+ /* LCOV_EXCL_START */
if (msg_info->sender_addressing)
return __bt_validate_utf8(&msg_info->sender_addressing);
FN_END;
return TRUE;
+ /* LCOV_EXCL_STOP */
}
+/* LCOV_EXCL_START */
static void __bt_mns_client_connect(char *address)
{
FN_START;
g_variant_unref(value);
FN_END;
}
+/* LCOV_EXCL_STOP */
void _bt_mns_client_event_notify(gchar *event, guint64 handle,
gchar *folder, gchar *old_folder,
return;
}
+ /* LCOV_EXCL_START */
connection = __bt_map_get_gdbus_connection();
if (connection == NULL) {
DBG("Could not get GDBus Connection");
g_variant_unref(value);
g_object_unref(mns_proxy);
FN_END;
+ /* LCOV_EXCL_STOP */
}
+/* LCOV_EXCL_START */
static gchar *__bt_get_map_folder(int folder)
{
switch (folder) {
FN_END;
return EXIT_FAILURE;
}
+/* LCOV_EXCL_STOP */