{
mtp_param *param = (mtp_param *)user_data;
mtp_error_e result = MTP_ERROR_NONE;
+ LIBMTP_mtpdevice_t *mtp_device = NULL;
mtp_device_info *device_info = NULL;
int device_id;
int object_handle;
if (device_info != NULL) {
MTP_LOGI("Get property start - property %d", property);
+ mtp_device = (LIBMTP_mtpdevice_t *)device_info->device;
- object_info = mtp_daemon_db_get_object_info(device_id, object_handle, param->mtp_ctx);
+ object_info = LIBMTP_Get_Object_Info(mtp_device, object_handle);
if (object_info != NULL) {
switch (property) {
{
mtp_param *param = (mtp_param *)user_data;
mtp_error_e result = MTP_ERROR_NONE;
+ LIBMTP_mtpdevice_t *mtp_device = NULL;
mtp_device_info *device_info = NULL;
int device_id;
int object_handle;
if (device_info != NULL) {
MTP_LOGI("Get property start - property %d", property);
+ mtp_device = (LIBMTP_mtpdevice_t *)device_info->device;
- object_info = mtp_daemon_db_get_object_info(device_id, object_handle, param->mtp_ctx);
+ object_info = LIBMTP_Get_Object_Info(mtp_device, object_handle);
if (object_info != NULL) {
switch (property) {