return NULL;
}
-gboolean msc_metadata_update(void *data)
+static gpointer __msc_metadata_update_thread(gpointer data)
{
ms_comm_msg_s *scan_data = data;
int ret = MS_MEDIA_ERR_NONE;
sqlite3 *handle = NULL;
ret = ms_connect_db(&handle, scan_data->uid);
- MS_DBG_RETVM_IF(ret != MS_MEDIA_ERR_NONE, ret, "ms_connect_db failed");
+ MS_DBG_RETVM_IF(ret != MS_MEDIA_ERR_NONE, NULL, "ms_connect_db failed");
MS_DBG_INFO("META UPDATE START");
MS_DBG_INFO("META UPDATE END [%d]", ret);
- return FALSE;
+ return NULL;
}
-
void msc_metadata_update_thread(ms_comm_msg_s *recv_msg)
{
- GThread *update_thread = NULL;
- update_thread = g_thread_new("update_thread", (GThreadFunc)msc_metadata_update, recv_msg);
+ GThread *update_thread = g_thread_new("metadata_update_thread", __msc_metadata_update_thread, recv_msg);
g_thread_join(update_thread);
}