} dcm_face_scan_status_e;
int dcm_svc_db_connect(uid_t uid);
-int dcm_svc_db_disconnect();
+void dcm_svc_db_disconnect();
int dcm_svc_db_get_scan_image_info_by_path(const char *file_path, dcm_svc_item_s **scan_item);
int dcm_svc_db_insert_face_to_db(const char *media_uuid, unsigned int x, unsigned int y, unsigned int w, unsigned int h, int orientation);
int dcm_svc_db_insert_face_to_face_scan_list(dcm_svc_item_s *scan_item);
return MS_MEDIA_ERR_NONE;
}
-int dcm_svc_db_disconnect(void)
+void dcm_svc_db_disconnect(void)
{
- int ret = MS_MEDIA_ERR_NONE;
-
dcm_warn("media db handle: %p", db_handle);
- if (db_handle != NULL) {
- ret = media_db_disconnect(db_handle);
- if (ret != MS_MEDIA_ERR_NONE) {
- dcm_error("media_db_disconnect failed: %d", ret);
- db_handle = NULL;
- return ret;
- }
- }
+ if (db_handle)
+ media_db_disconnect(db_handle);
db_handle = NULL;
-
- dcm_debug_fleave();
-
- return MS_MEDIA_ERR_NONE;
}
int dcm_svc_db_get_scan_image_info_by_path(const char *file_path, dcm_svc_item_s **scan_item)