-static int __storage_device_supported_cb(int storage_id, storage_type_e type, storage_state_e state, const char *path, void *user_data)
-{
- char **root_directory = (char **)user_data;
-
- if (root_directory == NULL) {
- _mmcam_dbg_warn("user data is NULL");
- return FALSE;
- }
-
- _mmcam_dbg_log("storage id %d, type %d, state %d, path %s",
- storage_id, type, state, path ? path : "NULL");
-
- if (type == STORAGE_TYPE_INTERNAL && path) {
- if (*root_directory) {
- free(*root_directory);
- *root_directory = NULL;
- }
-
- *root_directory = strdup(path);
- if (*root_directory) {
- _mmcam_dbg_log("get root directory %s", *root_directory);
- return FALSE;
- } else {
- _mmcam_dbg_warn("strdup %s failed");
- }
- }
-
- return TRUE;
-}
-
-