Lines Matching refs:LIBMTP_mtpdevice_t

104 static void add_error_to_errorstack(LIBMTP_mtpdevice_t *device,
107 static void add_ptp_error_to_errorstack(LIBMTP_mtpdevice_t *device,
110 static void flush_handles(LIBMTP_mtpdevice_t *device);
111 static void get_handles_recursively(LIBMTP_mtpdevice_t *device,
115 static void free_storage_list(LIBMTP_mtpdevice_t *device);
116 static int sort_storage_by(LIBMTP_mtpdevice_t *device, int const sortby);
117 static uint32_t get_writeable_storageid(LIBMTP_mtpdevice_t *device, uint64_t fitsize);
118 static int get_storage_freespace(LIBMTP_mtpdevice_t *device,
121 static int check_if_file_fits(LIBMTP_mtpdevice_t *device,
128 static int get_device_unicode_property(LIBMTP_mtpdevice_t *device,
133 static char *get_string_from_object(LIBMTP_mtpdevice_t *device, uint32_t const object_id,
135 static uint64_t get_u64_from_object(LIBMTP_mtpdevice_t *device,uint32_t const object_id,
137 static uint32_t get_u32_from_object(LIBMTP_mtpdevice_t *device,uint32_t const object_id,
139 static uint16_t get_u16_from_object(LIBMTP_mtpdevice_t *device, uint32_t const object_id,
141 static uint8_t get_u8_from_object(LIBMTP_mtpdevice_t *device, uint32_t const object_id,
143 static int set_object_string(LIBMTP_mtpdevice_t *device, uint32_t const object_id,
145 static int set_object_u32(LIBMTP_mtpdevice_t *device, uint32_t const object_id,
147 static int set_object_u16(LIBMTP_mtpdevice_t *device, uint32_t const object_id,
149 static int set_object_u8(LIBMTP_mtpdevice_t *device, uint32_t const object_id,
151 static void get_track_metadata(LIBMTP_mtpdevice_t *device, uint16_t objectformat,
154 static int create_new_abstract_list(LIBMTP_mtpdevice_t *device,
166 static int update_abstract_list(LIBMTP_mtpdevice_t *device,
175 static int send_file_object_info(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *filedata);
176 static void add_object_to_cache(LIBMTP_mtpdevice_t *device, uint32_t object_id);
177 static void update_metadata_cache(LIBMTP_mtpdevice_t *device, uint32_t object_id);
178 static int set_object_filename(LIBMTP_mtpdevice_t *device,
886 int LIBMTP_Get_Allowed_Property_Values(LIBMTP_mtpdevice_t *device, LIBMTP_property_t const property, in LIBMTP_Get_Allowed_Property_Values()
1083 int LIBMTP_Is_Property_Supported(LIBMTP_mtpdevice_t *device, LIBMTP_property_t const property, in LIBMTP_Is_Property_Supported()
1121 char *LIBMTP_Get_String_From_Object(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in LIBMTP_Get_String_From_Object()
1136 uint64_t LIBMTP_Get_u64_From_Object(LIBMTP_mtpdevice_t *device,uint32_t const object_id, in LIBMTP_Get_u64_From_Object()
1151 uint32_t LIBMTP_Get_u32_From_Object(LIBMTP_mtpdevice_t *device,uint32_t const object_id, in LIBMTP_Get_u32_From_Object()
1166 uint16_t LIBMTP_Get_u16_From_Object(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in LIBMTP_Get_u16_From_Object()
1181 uint8_t LIBMTP_Get_u8_From_Object(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in LIBMTP_Get_u8_From_Object()
1196 int LIBMTP_Set_Object_String(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in LIBMTP_Set_Object_String()
1212 int LIBMTP_Set_Object_u32(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in LIBMTP_Set_Object_u32()
1227 int LIBMTP_Set_Object_u16(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in LIBMTP_Set_Object_u16()
1242 int LIBMTP_Set_Object_u8(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in LIBMTP_Set_Object_u8()
1258 static char *get_string_from_object(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in get_string_from_object()
1301 static uint64_t get_u64_from_object(LIBMTP_mtpdevice_t *device,uint32_t const object_id, in get_u64_from_object()
1340 static uint32_t get_u32_from_object(LIBMTP_mtpdevice_t *device,uint32_t const object_id, in get_u32_from_object()
1378 static uint16_t get_u16_from_object(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in get_u16_from_object()
1419 static uint8_t get_u8_from_object(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in get_u8_from_object()
1460 static int set_object_string(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in set_object_string()
1496 static int set_object_u32(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in set_object_u32()
1532 static int set_object_u16(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in set_object_u16()
1567 static int set_object_u8(LIBMTP_mtpdevice_t *device, uint32_t const object_id, in set_object_u8()
1598 LIBMTP_mtpdevice_t *LIBMTP_Get_First_Device(void) in LIBMTP_Get_First_Device()
1600 LIBMTP_mtpdevice_t *first_device = NULL; in LIBMTP_Get_First_Device()
1671 LIBMTP_mtpdevice_t *LIBMTP_Open_Raw_Device(LIBMTP_raw_device_t *rawdevice) in LIBMTP_Open_Raw_Device()
1673 LIBMTP_mtpdevice_t *mtp_device; in LIBMTP_Open_Raw_Device()
1681 mtp_device = (LIBMTP_mtpdevice_t *) malloc(sizeof(LIBMTP_mtpdevice_t)); in LIBMTP_Open_Raw_Device()
1682 memset(mtp_device, 0, sizeof(LIBMTP_mtpdevice_t)); in LIBMTP_Open_Raw_Device()
1868 static LIBMTP_mtpdevice_t * create_usb_mtp_devices(LIBMTP_raw_device_t *devices, int numdevs) in create_usb_mtp_devices()
1871 LIBMTP_mtpdevice_t *mtp_device_list = NULL; in create_usb_mtp_devices()
1872 LIBMTP_mtpdevice_t *current_device = NULL; in create_usb_mtp_devices()
1875 LIBMTP_mtpdevice_t *mtp_device; in create_usb_mtp_devices()
1900 uint32_t LIBMTP_Number_Devices_In_List(LIBMTP_mtpdevice_t *device_list) in LIBMTP_Number_Devices_In_List()
1903 LIBMTP_mtpdevice_t *iter; in LIBMTP_Number_Devices_In_List()
1918 LIBMTP_error_number_t LIBMTP_Get_Connected_Devices(LIBMTP_mtpdevice_t **device_list) in LIBMTP_Get_Connected_Devices()
1952 void LIBMTP_Release_Device_List(LIBMTP_mtpdevice_t *device) in LIBMTP_Release_Device_List()
1969 void LIBMTP_Release_Device(LIBMTP_mtpdevice_t *device) in LIBMTP_Release_Device()
1993 static void add_error_to_errorstack(LIBMTP_mtpdevice_t *device, in add_error_to_errorstack()
2022 static void add_ptp_error_to_errorstack(LIBMTP_mtpdevice_t *device, in add_ptp_error_to_errorstack()
2053 LIBMTP_error_t *LIBMTP_Get_Errorstack(LIBMTP_mtpdevice_t *device) in LIBMTP_Get_Errorstack()
2069 void LIBMTP_Clear_Errorstack(LIBMTP_mtpdevice_t *device) in LIBMTP_Clear_Errorstack()
2096 void LIBMTP_Dump_Errorstack(LIBMTP_mtpdevice_t *device) in LIBMTP_Dump_Errorstack()
2114 void LIBMTP_Set_Device_Timeout(LIBMTP_mtpdevice_t *device, int milliseconds) in LIBMTP_Set_Device_Timeout()
2120 void LIBMTP_Get_Device_Timeout(LIBMTP_mtpdevice_t *device, int * milliseconds) in LIBMTP_Get_Device_Timeout()
2135 static int get_all_metadata_fast(LIBMTP_mtpdevice_t *device, in get_all_metadata_fast()
2276 static void get_handles_recursively(LIBMTP_mtpdevice_t *device, in get_handles_recursively()
2314 LIBMTP_file_t * obj2file(LIBMTP_mtpdevice_t *device, PTPObject *ob) in obj2file()
2429 static LIBMTP_file_t * get_files(LIBMTP_mtpdevice_t *device, in get_files()
2507 LIBMTP_file_t * LIBMTP_Get_Files_And_Folders(LIBMTP_mtpdevice_t *device, uint32_t storageId, uint32… in LIBMTP_Get_Files_And_Folders()
2538 static void flush_handles(LIBMTP_mtpdevice_t *device) in flush_handles()
2654 static void free_storage_list(LIBMTP_mtpdevice_t *device) in free_storage_list()
2682 static int sort_storage_by(LIBMTP_mtpdevice_t *device,int const sortby) in sort_storage_by()
2754 static uint32_t get_writeable_storageid(LIBMTP_mtpdevice_t *device, uint64_t fitsize) in get_writeable_storageid()
2813 static int get_storage_freespace(LIBMTP_mtpdevice_t *device, in get_storage_freespace()
2857 void LIBMTP_Dump_Device_Info(LIBMTP_mtpdevice_t *device) in LIBMTP_Dump_Device_Info()
3226 int LIBMTP_Reset_Device(LIBMTP_mtpdevice_t *device) in LIBMTP_Reset_Device()
3251 char *LIBMTP_Get_Manufacturername(LIBMTP_mtpdevice_t *device) in LIBMTP_Get_Manufacturername()
3270 char *LIBMTP_Get_Modelname(LIBMTP_mtpdevice_t *device) in LIBMTP_Get_Modelname()
3288 char *LIBMTP_Get_Serialnumber(LIBMTP_mtpdevice_t *device) in LIBMTP_Get_Serialnumber()
3307 char *LIBMTP_Get_Deviceversion(LIBMTP_mtpdevice_t *device) in LIBMTP_Get_Deviceversion()
3329 char *LIBMTP_Get_Friendlyname(LIBMTP_mtpdevice_t *device) in LIBMTP_Get_Friendlyname()
3362 int LIBMTP_Set_Friendlyname(LIBMTP_mtpdevice_t *device, in LIBMTP_Set_Friendlyname()
3392 char *LIBMTP_Get_Syncpartner(LIBMTP_mtpdevice_t *device) in LIBMTP_Get_Syncpartner()
3430 int LIBMTP_Set_Syncpartner(LIBMTP_mtpdevice_t *device, in LIBMTP_Set_Syncpartner()
3460 static int check_if_file_fits(LIBMTP_mtpdevice_t *device, in check_if_file_fits()
3499 int LIBMTP_Get_Batterylevel(LIBMTP_mtpdevice_t *device, in LIBMTP_Get_Batterylevel()
3538 int LIBMTP_Format_Storage(LIBMTP_mtpdevice_t *device, LIBMTP_devicestorage_t *storage) in LIBMTP_Format_Storage()
3566 static int get_device_unicode_property(LIBMTP_mtpdevice_t *device, in get_device_unicode_property()
3617 int LIBMTP_Get_Secure_Time(LIBMTP_mtpdevice_t *device, char ** const sectime) in LIBMTP_Get_Secure_Time()
3631 int LIBMTP_Get_Device_Certificate(LIBMTP_mtpdevice_t *device, char ** const devcert) in LIBMTP_Get_Device_Certificate()
3651 int LIBMTP_Get_Supported_Filetypes(LIBMTP_mtpdevice_t *device, uint16_t ** const filetypes, in LIBMTP_Get_Supported_Filetypes()
3715 int LIBMTP_Get_Storage(LIBMTP_mtpdevice_t *device, int const sortby) in LIBMTP_Get_Storage()
3858 LIBMTP_file_t *LIBMTP_Get_Filelisting(LIBMTP_mtpdevice_t *device) in LIBMTP_Get_Filelisting()
3906 LIBMTP_file_t *LIBMTP_Get_Filelisting_With_Callback(LIBMTP_mtpdevice_t *device, in LIBMTP_Get_Filelisting_With_Callback()
4060 LIBMTP_file_t *LIBMTP_Get_Filemetadata(LIBMTP_mtpdevice_t *device, uint32_t const fileid) in LIBMTP_Get_Filemetadata()
4228 static void pick_property_to_track_metadata(LIBMTP_mtpdevice_t *device, MTPProperties *prop, LIBMTP… in pick_property_to_track_metadata()
4315 static void get_track_metadata(LIBMTP_mtpdevice_t *device, uint16_t objectformat, in get_track_metadata()
4410 LIBMTP_track_t *LIBMTP_Get_Tracklisting(LIBMTP_mtpdevice_t *device) in LIBMTP_Get_Tracklisting()
4458 LIBMTP_track_t *LIBMTP_Get_Tracklisting_With_Callback(LIBMTP_mtpdevice_t *device, in LIBMTP_Get_Tracklisting_With_Callback()
4573 LIBMTP_track_t *LIBMTP_Get_Trackmetadata(LIBMTP_mtpdevice_t *device, uint32_t const trackid) in LIBMTP_Get_Trackmetadata()
4714 int LIBMTP_Get_File_To_File(LIBMTP_mtpdevice_t *device, uint32_t const id,
4778 int LIBMTP_Get_File_To_File_Descriptor(LIBMTP_mtpdevice_t *device,
4848 int LIBMTP_Get_File_To_Handler(LIBMTP_mtpdevice_t *device,
4923 int LIBMTP_Get_Track_To_File(LIBMTP_mtpdevice_t *device, uint32_t const id,
4949 int LIBMTP_Get_Track_To_File_Descriptor(LIBMTP_mtpdevice_t *device,
4977 int LIBMTP_Get_Track_To_Handler(LIBMTP_mtpdevice_t *device,
5025 int LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t *device,
5101 int LIBMTP_Send_Track_From_File_Descriptor(LIBMTP_mtpdevice_t *device,
5198 int LIBMTP_Send_Track_From_Handler(LIBMTP_mtpdevice_t *device,
5290 int LIBMTP_Send_File_From_File(LIBMTP_mtpdevice_t *device,
5368 int LIBMTP_Send_File_From_File_Descriptor(LIBMTP_mtpdevice_t *device,
5472 int LIBMTP_Send_File_From_Handler(LIBMTP_mtpdevice_t *device,
5552 static int send_file_object_info(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *filedata)
5835 int LIBMTP_Update_Track_Metadata(LIBMTP_mtpdevice_t *device,
6220 int LIBMTP_Delete_Object(LIBMTP_mtpdevice_t *device,
6238 static int set_object_filename(LIBMTP_mtpdevice_t *device,
6329 int LIBMTP_Set_File_Name(LIBMTP_mtpdevice_t *device,
6359 int LIBMTP_Set_Folder_Name(LIBMTP_mtpdevice_t *device,
6389 int LIBMTP_Set_Track_Name(LIBMTP_mtpdevice_t *device,
6426 int LIBMTP_Set_Playlist_Name(LIBMTP_mtpdevice_t *device,
6463 int LIBMTP_Set_Album_Name(LIBMTP_mtpdevice_t *device,
6491 int LIBMTP_Set_Object_Filename(LIBMTP_mtpdevice_t *device,
6518 int LIBMTP_Track_Exists(LIBMTP_mtpdevice_t *device,
6662 LIBMTP_folder_t *LIBMTP_Get_Folder_List(LIBMTP_mtpdevice_t *device)
6764 uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t *device, char *name,
6883 LIBMTP_playlist_t *LIBMTP_Get_Playlist_List(LIBMTP_mtpdevice_t *device)
6961 LIBMTP_playlist_t *LIBMTP_Get_Playlist(LIBMTP_mtpdevice_t *device, uint32_t const plid)
7035 static int create_new_abstract_list(LIBMTP_mtpdevice_t *device,
7357 static int update_abstract_list(LIBMTP_mtpdevice_t *device,
7580 int LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t *device,
7632 int LIBMTP_Update_Playlist(LIBMTP_mtpdevice_t *device,
7710 static void pick_property_to_album_metadata(LIBMTP_mtpdevice_t *device,
7758 static void get_album_metadata(LIBMTP_mtpdevice_t *device,
7824 LIBMTP_album_t *LIBMTP_Get_Album_List(LIBMTP_mtpdevice_t *device)
7883 LIBMTP_album_t *LIBMTP_Get_Album(LIBMTP_mtpdevice_t *device, uint32_t const albid)
7948 int LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t *device,
8039 int LIBMTP_Get_Representative_Sample_Format(LIBMTP_mtpdevice_t *device,
8172 int LIBMTP_Send_Representative_Sample(LIBMTP_mtpdevice_t *device,
8267 int LIBMTP_Get_Representative_Sample(LIBMTP_mtpdevice_t *device,
8347 int LIBMTP_Update_Album(LIBMTP_mtpdevice_t *device,
8374 static void add_object_to_cache(LIBMTP_mtpdevice_t *device, uint32_t object_id)
8391 static void update_metadata_cache(LIBMTP_mtpdevice_t *device, uint32_t object_id)