Lines Matching refs:filedata
175 static int send_file_object_info(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *filedata);
5107 LIBMTP_file_t filedata; local
5117 filedata.item_id = metadata->item_id;
5118 filedata.parent_id = metadata->parent_id;
5119 filedata.storage_id = metadata->storage_id;
5120 filedata.filename = metadata->filename;
5121 filedata.filesize = metadata->filesize;
5122 filedata.filetype = metadata->filetype;
5123 filedata.next = NULL;
5127 &filedata,
5141 metadata->item_id = filedata.item_id;
5142 metadata->parent_id = filedata.parent_id;
5143 metadata->storage_id = filedata.storage_id;
5204 LIBMTP_file_t filedata; local
5214 filedata.item_id = metadata->item_id;
5215 filedata.parent_id = metadata->parent_id;
5216 filedata.storage_id = metadata->storage_id;
5217 filedata.filename = metadata->filename;
5218 filedata.filesize = metadata->filesize;
5219 filedata.filetype = metadata->filetype;
5220 filedata.next = NULL;
5225 &filedata,
5239 metadata->item_id = filedata.item_id;
5240 metadata->parent_id = filedata.parent_id;
5241 metadata->storage_id = filedata.storage_id;
5291 char const * const path, LIBMTP_file_t * const filedata, argument
5318 ret = LIBMTP_Send_File_From_File_Descriptor(device, fd, filedata, callback, data);
5369 int const fd, LIBMTP_file_t * const filedata, argument
5378 if (send_file_object_info(device, filedata))
5388 ptp_usb->current_transfer_total = filedata->filesize+PTP_USB_BULK_HDR_LEN*2;
5393 ret = ptp_sendobject_fromfd(params, fd, filedata->filesize);
5409 add_object_to_cache(device, filedata->item_id);
5417 newfilemeta = LIBMTP_Get_Filemetadata(device, filedata->item_id);
5419 filedata->parent_id = newfilemeta->parent_id;
5420 filedata->storage_id = newfilemeta->storage_id;
5473 MTPDataGetFunc get_func, void * priv, LIBMTP_file_t * const filedata, argument
5481 if (send_file_object_info(device, filedata))
5491 ptp_usb->current_transfer_total = filedata->filesize+PTP_USB_BULK_HDR_LEN*2;
5506 ret = ptp_sendobject_from_handler(params, &handler, filedata->filesize);
5522 add_object_to_cache(device, filedata->item_id);
5530 newfilemeta = LIBMTP_Get_Filemetadata(device, filedata->item_id);
5532 filedata->parent_id = newfilemeta->parent_id;
5533 filedata->storage_id = newfilemeta->storage_id;
5552 static int send_file_object_info(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *filedata) argument
5564 uint16_t of = map_libmtp_type_to_ptp_type(filedata->filetype);
5566 uint32_t localph = filedata->parent_id;
5570 if (filedata->storage_id != 0) {
5571 store = filedata->storage_id;
5573 store = get_writeable_storageid(device, filedata->filesize);
5593 if (LIBMTP_FILETYPE_IS_AUDIO(filedata->filetype)) {
5595 } else if (LIBMTP_FILETYPE_IS_VIDEO(filedata->filetype)) {
5703 filedata->item_id = 0x00000000U;
5718 prop->ObjectHandle = filedata->item_id;
5721 if (filedata->filename != NULL) {
5722 prop->propval.str = strdup(filedata->filename);
5730 prop->ObjectHandle = filedata->item_id;
5737 prop->ObjectHandle = filedata->item_id;
5744 prop->ObjectHandle = filedata->item_id;
5747 if (filedata->filename != NULL)
5748 prop->propval.str = strdup(filedata->filename);
5754 prop->ObjectHandle = filedata->item_id;
5758 filedata->modificationdate = time(NULL);
5767 ret = ptp_mtp_sendobjectproplist(params, &store, &localph, &filedata->item_id,
5768 of, filedata->filesize, props, nrofprops);
5786 new_file.Filename = filedata->filename;
5791 new_file.ObjectCompressedSize = (uint32_t) filedata->filesize;
5798 ret = ptp_sendobjectinfo(params, &store, &localph, &filedata->item_id, &new_file);
5813 filedata->parent_id = localph;