Lines Matching refs:params
112 PTPParams *params,
193 static uint16_t get_func_wrapper(PTPParams* params, void* priv, unsigned long wantlen, unsigned char *data, unsigned long *gotlen);
194 static uint16_t put_func_wrapper(PTPParams* params, void* priv, unsigned long sendlen, unsigned char *data, unsigned long *putlen);
892 ret = ptp_mtp_getobjectpropdesc(device->params, map_libmtp_property_to_ptp_property(property), map_libmtp_type_to_ptp_type(filetype), &opd);
1093 ret = ptp_mtp_getobjectpropssupported(device->params, map_libmtp_type_to_ptp_type(filetype), &propcnt, &props);
1263 PTPParams *params = (PTPParams *) device->params;
1271 prop = ptp_find_object_prop_in_cache(params, object_id, attribute_id);
1279 ret = ptp_mtp_getobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_STR);
1306 PTPParams *params = (PTPParams *) device->params;
1314 prop = ptp_find_object_prop_in_cache(params, object_id, attribute_id);
1318 ret = ptp_mtp_getobjectpropvalue(params, object_id,
1345 PTPParams *params = (PTPParams *) device->params;
1353 prop = ptp_find_object_prop_in_cache(params, object_id, attribute_id);
1357 ret = ptp_mtp_getobjectpropvalue(params, object_id,
1383 PTPParams *params = (PTPParams *) device->params;
1393 prop = ptp_find_object_prop_in_cache(params, object_id, attribute_id);
1397 ret = ptp_mtp_getobjectpropvalue(params, object_id,
1424 PTPParams *params = (PTPParams *) device->params;
1434 prop = ptp_find_object_prop_in_cache(params, object_id, attribute_id);
1438 ret = ptp_mtp_getobjectpropvalue(params, object_id,
1464 PTPParams *params = (PTPParams *) device->params;
1471 if (!ptp_operation_issupported(params,PTP_OC_MTP_SetObjectPropValue)) {
1477 ret = ptp_mtp_setobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_STR);
1500 PTPParams *params = (PTPParams *) device->params;
1507 if (!ptp_operation_issupported(params,PTP_OC_MTP_SetObjectPropValue)) {
1514 ret = ptp_mtp_setobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_UINT32);
1536 PTPParams *params = (PTPParams *) device->params;
1543 if (!ptp_operation_issupported(params,PTP_OC_MTP_SetObjectPropValue)) {
1549 ret = ptp_mtp_setobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_UINT16);
1571 PTPParams *params = (PTPParams *) device->params;
1578 if (!ptp_operation_issupported(params,PTP_OC_MTP_SetObjectPropValue)) {
1584 ret = ptp_mtp_setobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_UINT8);
1696 /* Create PTP params */
1726 mtp_device->params = current_params;
1739 /* Set pointer back to params */
1740 ptp_usb->params = current_params;
1752 free(mtp_device->params);
1971 PTPParams *params = (PTPParams *) device->params;
1974 close_device(ptp_usb, params);
1978 iconv_close(params->cd_locale_to_ucs2);
1979 iconv_close(params->cd_ucs2_to_locale);
1981 ptp_free_params(params);
2138 PTPParams *params = (PTPParams *) device->params;
2163 ret = ptp_mtp_getobjectproplist(params, 0xffffffff, &props, &nrofprops);
2200 params->objects = calloc (sizeof(PTPObject),cnt);
2206 params->objects[i].flags |= PTPOBJECT_OBJECTINFO_LOADED;
2207 if (!params->objects[i].oi.Filename) {
2209 params->objects[i].oi.Filename = strdup("<null>");
2214 params->objects[i].oid = prop->ObjectHandle;
2218 params->objects[i].oi.ParentObject = prop->propval.u32;
2219 params->objects[i].flags |= PTPOBJECT_PARENTOBJECT_LOADED;
2222 params->objects[i].oi.ObjectFormat = prop->propval.u16;
2229 params->objects[i].oi.ObjectCompressedSize = (uint32_t) prop->propval.u64;
2231 params->objects[i].oi.ObjectCompressedSize = prop->propval.u32;
2235 params->objects[i].oi.StorageID = prop->propval.u32;
2236 params->objects[i].flags |= PTPOBJECT_STORAGEID_LOADED;
2240 params->objects[i].oi.Filename = strdup(prop->propval.str);
2246 if (params->objects[i].nrofmtpprops) {
2247 newprops = realloc(params->objects[i].mtpprops,(params->objects[i].nrofmtpprops+1)*sizeof(MTPProperties));
2252 params->objects[i].mtpprops = newprops;
2253 memcpy(¶ms->objects[i].mtpprops[params->objects[i].nrofmtpprops],&props[j],sizeof(props[j]));
2254 params->objects[i].nrofmtpprops++;
2255 params->objects[i].flags |= PTPOBJECT_MTPPROPLIST_LOADED;
2262 params->objects[i].flags |= PTPOBJECT_OBJECTINFO_LOADED;
2263 params->nrofobjects = i+1;
2265 ptp_objects_sort (params);
2277 PTPParams *params,
2283 uint16_t ret = ptp_getobjecthandles(params,
2300 ret = ptp_object_want(params,currentHandles.Handler[i],PTPOBJECT_OBJECTINFO_LOADED, &ob);
2303 get_handles_recursively(device, params, storageid, currentHandles.Handler[i]);
2317 PTPParams *params = (PTPParams *) device->params;
2374 ret = ptp_object_want (params, ob->oid, PTPOBJECT_MTPPROPLIST_LOADED, &xob);
2396 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props);
2430 PTPParams *params,
2440 uint16_t ret = ptp_getobjecthandles(params,
2458 ret = ptp_object_want(params, currentHandles.Handler[i],PTPOBJECT_OBJECTINFO_LOADED, &ob);
2510 PTPParams *params = (PTPParams *) device->params;
2517 if (ptp_operation_issupported(params,PTP_OC_MTP_GetObjPropList)
2526 retfiles = get_files(device, params, storageId, parentId);
2540 PTPParams *params = (PTPParams *) device->params;
2549 if (params->objects != NULL) {
2550 for (i=0;i<params->nrofobjects;i++)
2551 ptp_free_object (¶ms->objects[i]);
2552 free(params->objects);
2553 params->objects = NULL;
2554 params->nrofobjects = 0;
2557 if (ptp_operation_issupported(params,PTP_OC_MTP_GetObjPropList)
2566 if (params->nrofobjects == 0) {
2569 get_handles_recursively(device, params,
2576 get_handles_recursively(device, params,
2589 for(i = 0; i < params->nrofobjects; i++) {
2592 ob = ¶ms->objects[i];
2593 ret = ptp_object_want(params,params->objects[i].oid,PTPOBJECT_OBJECTINFO_LOADED, &xob);
2595 fprintf(stderr,"broken! %x not found\n", params->objects[i].oid);
2817 PTPParams *params = (PTPParams *) device->params;
2821 if (ptp_operation_issupported(params,PTP_OC_GetStorageInfo)) {
2825 ret = ptp_getstorageinfo(params, storage->id, &storageInfo);
2860 PTPParams *params = (PTPParams *) device->params;
2868 printf(" Manufacturer: %s\n", params->deviceinfo.Manufacturer);
2869 printf(" Model: %s\n", params->deviceinfo.Model);
2870 printf(" Device version: %s\n", params->deviceinfo.DeviceVersion);
2871 printf(" Serial number: %s\n", params->deviceinfo.SerialNumber);
2872 printf(" Vendor extension ID: 0x%08x\n", params->deviceinfo.VendorExtensionID);
2873 printf(" Vendor extension description: %s\n", params->deviceinfo.VendorExtensionDesc);
2876 for (i=0;i<params->deviceinfo.OperationsSupported_len;i++) {
2879 (void) ptp_render_opcode (params, params->deviceinfo.OperationsSupported[i], sizeof(txt), txt);
2880 printf(" %04x: %s\n", params->deviceinfo.OperationsSupported[i], txt);
2883 if (params->deviceinfo.EventsSupported_len == 0) {
2886 for (i=0;i<params->deviceinfo.EventsSupported_len;i++) {
2887 printf(" 0x%04x\n", params->deviceinfo.EventsSupported[i]);
2891 for (i=0;i<params->deviceinfo.DevicePropertiesSupported_len;i++) {
2892 char const *propdesc = ptp_get_property_description(params, params->deviceinfo.DevicePropertiesSupported[i]);
2895 printf(" 0x%04x: %s\n", params->deviceinfo.DevicePropertiesSupported[i], propdesc);
2897 uint16_t prop = params->deviceinfo.DevicePropertiesSupported[i];
2902 if (ptp_operation_issupported(params,PTP_OC_MTP_GetObjectPropsSupported)) {
2904 for (i=0;i<params->deviceinfo.ImageFormats_len;i++) {
2911 (void) ptp_render_ofc (params, params->deviceinfo.ImageFormats[i], sizeof(txt), txt);
2912 printf(" %04x: %s\n", params->deviceinfo.ImageFormats[i], txt);
2914 ret = ptp_mtp_getobjectpropssupported (params, params->deviceinfo.ImageFormats[i], &propcnt, &props);
2924 ret = ptp_mtp_getobjectpropdesc(params, props[j], params->deviceinfo.ImageFormats[i], &opd);
3079 if (params->deviceinfo.ImageFormats[i] == PTP_OPC_VideoFourCCCodec) {
3142 if(storage != NULL && ptp_operation_issupported(params,PTP_OC_GetStorageInfo)) {
3228 PTPParams *params = (PTPParams *) device->params;
3231 if (!ptp_operation_issupported(params,PTP_OC_ResetDevice)) {
3236 ret = ptp_resetdevice(params);
3254 PTPParams *params = (PTPParams *) device->params;
3256 if (params->deviceinfo.Manufacturer != NULL) {
3257 retmanuf = strdup(params->deviceinfo.Manufacturer);
3273 PTPParams *params = (PTPParams *) device->params;
3275 if (params->deviceinfo.Model != NULL) {
3276 retmodel = strdup(params->deviceinfo.Model);
3291 PTPParams *params = (PTPParams *) device->params;
3293 if (params->deviceinfo.SerialNumber != NULL) {
3294 retnumber = strdup(params->deviceinfo.SerialNumber);
3310 PTPParams *params = (PTPParams *) device->params;
3312 if (params->deviceinfo.DeviceVersion != NULL) {
3313 retversion = strdup(params->deviceinfo.DeviceVersion);
3333 PTPParams *params = (PTPParams *) device->params;
3336 if (!ptp_property_issupported(params, PTP_DPC_MTP_DeviceFriendlyName)) {
3340 ret = ptp_getdevicepropvalue(params,
3366 PTPParams *params = (PTPParams *) device->params;
3369 if (!ptp_property_issupported(params, PTP_DPC_MTP_DeviceFriendlyName)) {
3373 ret = ptp_setdevicepropvalue(params,
3396 PTPParams *params = (PTPParams *) device->params;
3399 if (!ptp_property_issupported(params, PTP_DPC_MTP_SynchronizationPartner)) {
3403 ret = ptp_getdevicepropvalue(params,
3434 PTPParams *params = (PTPParams *) device->params;
3437 if (!ptp_property_issupported(params, PTP_DPC_MTP_SynchronizationPartner)) {
3441 ret = ptp_setdevicepropvalue(params,
3463 PTPParams *params = (PTPParams *) device->params;
3468 if (!ptp_operation_issupported(params,PTP_OC_GetStorageInfo)) {
3505 PTPParams *params = (PTPParams *) device->params;
3512 !ptp_property_issupported(params, PTP_DPC_BatteryLevel)) {
3516 ret = ptp_getdevicepropvalue(params, PTP_DPC_BatteryLevel, &propval, PTP_DTC_UINT8);
3541 PTPParams *params = (PTPParams *) device->params;
3543 if (!ptp_operation_issupported(params,PTP_OC_FormatStore)) {
3548 ret = ptp_formatstore(params, storage->id);
3570 PTPParams *params = (PTPParams *) device->params;
3575 if (!ptp_property_issupported(params, property)) {
3580 ret = ptp_getdevicepropvalue(params,
3654 PTPParams *params = (PTPParams *) device->params;
3661 localtypes = (uint16_t *) malloc(params->deviceinfo.ImageFormats_len * sizeof(uint16_t));
3664 for (i=0;i<params->deviceinfo.ImageFormats_len;i++) {
3665 uint16_t localtype = map_ptp_type_to_libmtp_type(params->deviceinfo.ImageFormats[i]);
3673 localtypes = (uint16_t *) realloc(localtypes, (params->deviceinfo.ImageFormats_len+1) * sizeof(uint16_t));
3679 localtypes = (uint16_t *) realloc(localtypes, (params->deviceinfo.ImageFormats_len+1) * sizeof(uint16_t));
3719 PTPParams *params = (PTPParams *) device->params;
3727 // if (!ptp_operation_issupported(params,PTP_OC_GetStorageIDs))
3729 if (ptp_getstorageids (params, &storageIDs) != PTP_RC_OK)
3734 if (!ptp_operation_issupported(params,PTP_OC_GetStorageInfo)) {
3762 ret = ptp_getstorageinfo(params, storageIDs.Storage[i], &storageInfo);
3913 PTPParams *params = (PTPParams *) device->params;
3918 if (params->nrofobjects == 0) {
3922 for (i = 0; i < params->nrofobjects; i++) {
3927 callback(i, params->nrofobjects, data);
3929 ob = ¶ms->objects[i];
3981 ret = ptp_object_want (params, ob->oid, PTPOBJECT_MTPPROPLIST_LOADED, &xob);
4003 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props);
4036 // double progressPercent = (double)i*(double)100.0 / (double)params->handles.n;
4063 PTPParams *params = (PTPParams *) device->params;
4069 if (params->nrofobjects == 0) {
4073 ret = ptp_object_want (params, fileid, PTPOBJECT_OBJECTINFO_LOADED|PTPOBJECT_MTPPROPLIST_LOADED, &ob);
4121 ret = ptp_mtp_getobjectpropssupported(params, map_libmtp_type_to_ptp_type(file->filetype), &propcnt, &props);
4319 PTPParams *params = (PTPParams *) device->params;
4327 ret = ptp_object_want(params, track->item_id, PTPOBJECT_MTPPROPLIST_LOADED, &ob);
4337 ret = ptp_mtp_getobjectpropssupported(params, map_libmtp_type_to_ptp_type(track->filetype), &propcnt, &props);
4465 PTPParams *params = (PTPParams *) device->params;
4469 if (params->nrofobjects == 0) {
4473 for (i = 0; i < params->nrofobjects; i++) {
4479 callback(i, params->nrofobjects, data);
4481 ob = ¶ms->objects[i];
4552 // double progressPercent = (double)i*(double)100.0 / (double)params->handles.n;
4575 PTPParams *params = (PTPParams *) device->params;
4583 if (params->nrofobjects == 0)
4586 ret = ptp_object_want (params, trackid, PTPOBJECT_OBJECTINFO_LOADED, &ob);
4655 static uint16_t get_func_wrapper(PTPParams* params, void* priv, unsigned long wantlen, unsigned char *data, unsigned long *gotlen)
4660 ret = handler->getfunc(params, handler->priv, wantlen, data, &local_gotlen);
4679 static uint16_t put_func_wrapper(PTPParams* params, void* priv, unsigned long sendlen, unsigned char *data, unsigned long *putlen)
4684 ret = handler->putfunc(params, handler->priv, sendlen, data, &local_putlen);
4786 PTPParams *params = (PTPParams *) device->params;
4790 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
4813 ret = ptp_getobject_tofd(params, id, fd);
4857 PTPParams *params = (PTPParams *) device->params;
4860 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
4888 ret = ptp_getobject_to_handler(params, id, &handler);
5374 PTPParams *params = (PTPParams *) device->params;
5393 ret = ptp_sendobject_fromfd(params, fd, filedata->filesize);
5477 PTPParams *params = (PTPParams *) device->params;
5506 ret = ptp_sendobject_from_handler(params, &handler, filedata->filesize);
5554 PTPParams *params = (PTPParams *) device->params;
5635 if (ptp_operation_issupported(params, PTP_OC_MTP_SendObjectPropList) &&
5705 ret = ptp_mtp_getobjectpropssupported(params, of, &propcnt, &properties);
5710 ret = ptp_mtp_getobjectpropdesc(params, properties[i], of, &opd);
5767 ret = ptp_mtp_sendobjectproplist(params, &store, &localph, &filedata->item_id,
5781 } else if (ptp_operation_issupported(params,PTP_OC_SendObjectInfo)) {
5798 ret = ptp_sendobjectinfo(params, &store, &localph, &filedata->item_id, &new_file);
5839 PTPParams *params = (PTPParams *) device->params;
5847 ret = ptp_mtp_getobjectpropssupported(params, map_libmtp_type_to_ptp_type(metadata->filetype), &propcnt, &properties);
5854 if (ptp_operation_issupported(params, PTP_OC_MTP_SetObjPropList) &&
5863 ret = ptp_mtp_getobjectpropdesc(params, properties[i], map_libmtp_type_to_ptp_type(metadata->filetype), &opd);
6009 ret = ptp_mtp_setobjectproplist(params, props, nrofprops);
6021 } else if (ptp_operation_issupported(params,PTP_OC_MTP_SetObjectPropValue)) {
6025 ret = ptp_mtp_getobjectpropdesc(params, properties[i], map_libmtp_type_to_ptp_type(metadata->filetype), &opd);
6224 PTPParams *params = (PTPParams *) device->params;
6226 ret = ptp_deleteobject(params, object_id, 0);
6242 PTPParams *params = (PTPParams *) device->params;
6249 ret = ptp_mtp_getobjectpropdesc(params, PTP_OPC_ObjectFileName, ptp_type, &opd);
6271 if (ptp_operation_issupported(params, PTP_OC_MTP_SetObjPropList) &&
6283 ret = ptp_mtp_setobjectproplist(params, props, nrofprops);
6293 } else if (ptp_operation_issupported(params, PTP_OC_MTP_SetObjectPropValue)) {
6521 PTPParams *params = (PTPParams *) device->params;
6525 ret = ptp_object_want (params, id, 0, &ob);
6619 * Function used to recursively get subfolders from params.
6664 PTPParams *params = (PTPParams *) device->params;
6669 if (params->nrofobjects == 0) {
6687 for (i = 0; i < params->nrofobjects; i++) {
6691 ob = ¶ms->objects[i];
6767 PTPParams *params = (PTPParams *) device->params;
6802 ret = ptp_sendobjectinfo(params, &store, &parenthandle, &new_id, &new_folder);
6887 PTPParams *params = (PTPParams *) device->params;
6893 if (params->nrofobjects == 0) {
6897 for (i = 0; i < params->nrofobjects; i++) {
6902 ob = ¶ms->objects[i];
6930 ret = ptp_mtp_getobjectreferences(params, pl->playlist_id, &pl->tracks, &pl->no_tracks);
6965 PTPParams *params = (PTPParams *) device->params;
6971 if (params->nrofobjects == 0) {
6975 ret = ptp_object_want (params, plid, PTPOBJECT_OBJECTINFO_LOADED, &ob);
7005 ret = ptp_mtp_getobjectreferences(params, pl->playlist_id, &pl->tracks, &pl->no_tracks);
7057 PTPParams *params = (PTPParams *) device->params;
7070 for ( i=0; i < params->deviceinfo.ImageFormats_len; i++ ) {
7071 if (params->deviceinfo.ImageFormats[i] == objectformat) {
7098 if (ptp_operation_issupported(params, PTP_OC_MTP_SendObjectPropList) &&
7106 ret = ptp_mtp_getobjectpropssupported(params, objectformat, &propcnt, &properties);
7111 ret = ptp_mtp_getobjectpropdesc(params, properties[i], objectformat, &opd);
7202 ret = ptp_mtp_sendobjectproplist(params, &store, &localph, newid,
7217 ret = ptp_sendobject(params, NULL, 0);
7223 } else if (ptp_operation_issupported(params,PTP_OC_SendObjectInfo)) {
7234 ret = ptp_sendobjectinfo(params, &store, &localph, newid, &new_object);
7250 ret = ptp_sendobject(params, data, 1);
7257 ret = ptp_mtp_getobjectpropssupported(params, objectformat, &propcnt, &properties);
7262 ret = ptp_mtp_getobjectpropdesc(params, properties[i], objectformat, &opd);
7331 ret = ptp_mtp_setobjectreferences (params, *newid, (uint32_t *) tracks, no_tracks);
7368 PTPParams *params = (PTPParams *) device->params;
7376 ret = ptp_mtp_getobjectpropssupported(params, objectformat, &propcnt, &properties);
7383 if (ptp_operation_issupported(params,PTP_OC_MTP_SetObjPropList) &&
7392 ret = ptp_mtp_getobjectpropdesc(params, properties[i], objectformat, &opd);
7461 ret = ptp_mtp_setobjectproplist(params, props, nrofprops);
7474 } else if (ptp_operation_issupported(params,PTP_OC_MTP_SetObjectPropValue)) {
7539 ret = ptp_mtp_setobjectreferences (params, objecthandle, (uint32_t *) tracks, no_tracks);
7762 PTPParams *params = (PTPParams *) device->params;
7770 ret = ptp_object_want(params, alb->album_id, PTPOBJECT_MTPPROPLIST_LOADED, &ob);
7780 ret = ptp_mtp_getobjectpropssupported(params, PTP_OFC_MTP_AbstractAudioAlbum, &propcnt, &props);
7826 PTPParams *params = (PTPParams *) device->params;
7832 if (params->nrofobjects == 0)
7835 for (i = 0; i < params->nrofobjects; i++) {
7840 ob = ¶ms->objects[i];
7856 ret = ptp_mtp_getobjectreferences(params, alb->album_id, &alb->tracks, &alb->no_tracks);
7885 PTPParams *params = (PTPParams *) device->params;
7891 if (params->nrofobjects == 0)
7894 ret = ptp_object_want(params, albid, PTPOBJECT_OBJECTINFO_LOADED, &ob);
7912 ret = ptp_mtp_getobjectreferences(params, alb->album_id, &alb->tracks, &alb->no_tracks);
8044 PTPParams *params = (PTPParams *) device->params;
8065 ret = ptp_mtp_getobjectpropssupported(params, map_libmtp_type_to_ptp_type(filetype), &propcnt, &props);
8111 ptp_mtp_getobjectpropdesc (params, PTP_OPC_RepresentativeSampleFormat, map_libmtp_type_to_ptp_type(filetype), &opd_format);
8115 ptp_mtp_getobjectpropdesc (params, PTP_OPC_RepresentativeSampleWidth, map_libmtp_type_to_ptp_type(filetype), &opd_width);
8119 ptp_mtp_getobjectpropdesc (params, PTP_OPC_RepresentativeSampleHeight, map_libmtp_type_to_ptp_type(filetype), &opd_height);
8124 ptp_mtp_getobjectpropdesc (params, PTP_OPC_RepresentativeSampleSize, map_libmtp_type_to_ptp_type(filetype), &opd_size);
8138 ptp_mtp_getobjectpropdesc (params, PTP_OPC_RepresentativeSampleFormat, map_libmtp_type_to_ptp_type(filetype), &opd_format);
8142 ptp_mtp_getobjectpropdesc (params, PTP_OPC_RepresentativeSampleDuration, map_libmtp_type_to_ptp_type(filetype), &opd_duration);
8147 ptp_mtp_getobjectpropdesc (params, PTP_OPC_RepresentativeSampleSize, map_libmtp_type_to_ptp_type(filetype), &opd_size);
8177 PTPParams *params = (PTPParams *) device->params;
8187 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
8194 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props);
8220 ret = ptp_mtp_setobjectpropvalue(params,id,PTP_OPC_RepresentativeSampleData,
8272 PTPParams *params = (PTPParams *) device->params;
8281 ret = ptp_object_want (params, id, PTPOBJECT_OBJECTINFO_LOADED, &ob);
8288 ret = ptp_mtp_getobjectpropssupported(params, ob->oi.ObjectFormat, &propcnt, &props);
8308 ret = ptp_mtp_getobjectpropvalue(params,id,PTP_OPC_RepresentativeSampleData,
8376 PTPParams *params = (PTPParams *)device->params;
8379 ret = ptp_add_object_to_cache(params, object_id);
8393 PTPParams *params = (PTPParams *)device->params;
8395 ptp_remove_object_from_cache(params, object_id);