• Home
  • Raw
  • Download

Lines Matching refs:filedata

175 static int send_file_object_info(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *filedata);
5094 LIBMTP_file_t filedata; local
5104 filedata.item_id = metadata->item_id;
5105 filedata.parent_id = metadata->parent_id;
5106 filedata.storage_id = metadata->storage_id;
5107 filedata.filename = metadata->filename;
5108 filedata.filesize = metadata->filesize;
5109 filedata.filetype = metadata->filetype;
5110 filedata.next = NULL;
5114 &filedata,
5128 metadata->item_id = filedata.item_id;
5129 metadata->parent_id = filedata.parent_id;
5130 metadata->storage_id = filedata.storage_id;
5191 LIBMTP_file_t filedata; local
5201 filedata.item_id = metadata->item_id;
5202 filedata.parent_id = metadata->parent_id;
5203 filedata.storage_id = metadata->storage_id;
5204 filedata.filename = metadata->filename;
5205 filedata.filesize = metadata->filesize;
5206 filedata.filetype = metadata->filetype;
5207 filedata.next = NULL;
5212 &filedata,
5226 metadata->item_id = filedata.item_id;
5227 metadata->parent_id = filedata.parent_id;
5228 metadata->storage_id = filedata.storage_id;
5278 char const * const path, LIBMTP_file_t * const filedata, argument
5305 ret = LIBMTP_Send_File_From_File_Descriptor(device, fd, filedata, callback, data);
5356 int const fd, LIBMTP_file_t * const filedata, argument
5365 if (send_file_object_info(device, filedata))
5375 ptp_usb->current_transfer_total = filedata->filesize+PTP_USB_BULK_HDR_LEN*2;
5380 ret = ptp_sendobject_fromfd(params, fd, filedata->filesize);
5396 add_object_to_cache(device, filedata->item_id);
5404 newfilemeta = LIBMTP_Get_Filemetadata(device, filedata->item_id);
5406 filedata->parent_id = newfilemeta->parent_id;
5407 filedata->storage_id = newfilemeta->storage_id;
5460 MTPDataGetFunc get_func, void * priv, LIBMTP_file_t * const filedata, argument
5468 if (send_file_object_info(device, filedata))
5478 ptp_usb->current_transfer_total = filedata->filesize+PTP_USB_BULK_HDR_LEN*2;
5493 ret = ptp_sendobject_from_handler(params, &handler, filedata->filesize);
5509 add_object_to_cache(device, filedata->item_id);
5517 newfilemeta = LIBMTP_Get_Filemetadata(device, filedata->item_id);
5519 filedata->parent_id = newfilemeta->parent_id;
5520 filedata->storage_id = newfilemeta->storage_id;
5539 static int send_file_object_info(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *filedata) argument
5551 uint16_t of = map_libmtp_type_to_ptp_type(filedata->filetype);
5553 uint32_t localph = filedata->parent_id;
5557 if (filedata->storage_id != 0) {
5558 store = filedata->storage_id;
5560 store = get_writeable_storageid(device, filedata->filesize);
5580 if (LIBMTP_FILETYPE_IS_AUDIO(filedata->filetype)) {
5582 } else if (LIBMTP_FILETYPE_IS_VIDEO(filedata->filetype)) {
5690 filedata->item_id = 0x00000000U;
5705 prop->ObjectHandle = filedata->item_id;
5708 if (filedata->filename != NULL) {
5709 prop->propval.str = strdup(filedata->filename);
5717 prop->ObjectHandle = filedata->item_id;
5724 prop->ObjectHandle = filedata->item_id;
5731 prop->ObjectHandle = filedata->item_id;
5734 if (filedata->filename != NULL)
5735 prop->propval.str = strdup(filedata->filename);
5741 prop->ObjectHandle = filedata->item_id;
5745 filedata->modificationdate = time(NULL);
5754 ret = ptp_mtp_sendobjectproplist(params, &store, &localph, &filedata->item_id,
5755 of, filedata->filesize, props, nrofprops);
5773 new_file.Filename = filedata->filename;
5778 new_file.ObjectCompressedSize = (uint32_t) filedata->filesize;
5785 ret = ptp_sendobjectinfo(params, &store, &localph, &filedata->item_id, &new_file);
5800 filedata->parent_id = localph;