Home | History | Annotate | Download | only in src

Lines Matching defs:of

11  * modify it under the terms of the GNU Lesser General Public
13 * version 2 of the License, or (at your option) any later version.
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * You should have received a copy of the GNU Lesser General Public
96 * Forward declarations of local (static) functions.
265 * @param description Text description of filetype
436 * @param description Text description of property
647 register_property("Number Of Channels", LIBMTP_PROPERTY_NumberOfChannels, PTP_OPC_NumberOfChannels);
799 // Rough guess of best fit
844 // Rough guess of best fit
880 * @param filetype the filetype of the object you want to set values for
1080 * @param filetype the filetype of the object you want to set values for
1594 * Get the first (as in "first in the list of") connected MTP device.
1854 * This has the desired side effect of caching all handles from
1864 * @param devices a list of raw devices to have real devices created for.
1895 * Get the number of devices that are available in the listed device list
1896 * @param device_list Pointer to a linked list of devices
1897 * @return Number of devices in the device list device_list
1911 * Get the first connected MTP device node in the linked list of devices.
1913 * @param device_list A list of devices ready to be used by the caller. You
1930 /* Assign linked list of devices */
2056 fprintf(stderr, "LIBMTP PANIC: Trying to get the error stack of a NULL device!\n");
2063 * This function clears the error stack of a device and frees
2072 fprintf(stderr, "LIBMTP PANIC: Trying to clear the error stack of a NULL device!\n");
2099 fprintf(stderr, "LIBMTP PANIC: Trying to dump the error stack of a NULL device!\n");
2130 * This works on the vast majority of MTP devices (there ARE exceptions!)
2149 * a list of very file on the device and return it
2158 * widest range of devices.
2176 "could not get proplist of all objects.");
2187 * We count the number of objects by counting the ObjectHandle
2189 * the same, it is just different properties of the same object.
2245 /* Copy all of the other MTP oprierties into the per-object proplist */
2335 // This is some sort of unique ID so we can keep track of the track.
2372 * If we have a cached, large set of metadata, then use it!
2485 * This function controls the usage of the internal object cache.
2487 * In order to handle large number of files turn on the on demand
2500 * This function retrieves the content of a folder with id - parentId.
2587 * in the root directory of the primary storage.
2752 * @param fitsize a file of this file must fit on the device.
2852 * This function dumps out a large chunk of textual information
2948 printf(" array of");
3080 printf(" enumeration of u32 casted FOURCC: ");
3245 * This retrieves the manufacturer name of an MTP device.
3264 * of an MTP device.
3282 * This retrieves the serial number of an MTP device.
3300 * This retrieves the device version (hardware and firmware version) of an
3320 * This retrieves the "friendly name" of an MTP device. Usually
3321 * this is simply the name of the owner or something like
3356 * Sets the "friendly name" of an MTP device.
3385 * This retrieves the syncronization partner of an MTP device. This
3420 * Sets the synchronization partner of an MTP device. Note that
3421 * we have no idea what the effect of setting this to "foobar"
3453 * Checks if the device can stora a file of this size or
3456 * @param filesize the size of the file to check whether it will fit.
3457 * @param storageid the ID of the storage to try to fit the file on.
3491 * maximum level of the battery if the call was successful.
3493 * current level of the battery if the call was successful.
3494 * A value of 0 means that the device is on external power.
3496 * means failure. A typical cause of failure is that
3558 * This is the standard way of retrieveing unicode device
3592 // printf("Array of %d elements\n", propval.a.count);
3637 * This function retrieves a list of supported file types, i.e. the file
3643 * @param filetypes a pointer to a pointer that will hold the list of
3646 * @param length a pointer to a variable that will hold the length of the
3647 * list of supported filetypes if the call was successful.
3691 * This function updates all the storage id's of a device and their
3708 * @param sortby an integer that determines the sorting of the storage list.
3805 * operation later, so be careful of using strdup() when assigning
3866 * This returns a long list of all files available
3886 * and/or <code>parent_id</code> field of the returned <code>LIBMTP_file_t</code>
3899 * @return a list of files that can be followed using the <code>next</code>
3900 * field of the <code>LIBMTP_file_t</code> data structure.
3901 * Each of the metadata tags must be freed after use, and may
3943 // This is some sort of unique ID so we can keep track of the track.
3979 * If we have a cached, large set of metadata, then use it!
4053 * of it, it is intended for file manipulation, not folder manipulation.
4056 * @param fileid the object ID of the file that you want the metadata for.
4094 // This is some sort of unique ID so we can keep track of the file.
4098 * If we have a cached, large set of metadata, then use it!
4150 * operation later, so be careful of using strdup() when assigning
4311 * @param trackid the unique ID of the track.
4312 * @param objectformat the object format of this track, so we know what it supports.
4325 * If we have a cached, large set of metadata, then use it!
4418 * This returns a long list of all tracks available on the current MTP device.
4438 * and/or <code>parent_id</code> field of the returned <code>LIBMTP_track_t</code>
4451 * @return a list of tracks that can be followed using the <code>next</code>
4452 * field of the <code>LIBMTP_track_t</code> data structure.
4453 * Each of the metadata tags must be freed after use, and may
4485 // TODO: get this list as an intersection of the sets
4502 // This is some sort of unique ID so we can keep track of the track.
4569 * @param trackid the object ID of the track that you want the metadata for.
4610 // This is some sort of unique ID so we can keep track of the track.
4703 * @param id the file ID of the file to retrieve.
4765 * @param id the file ID of the file to retrieve.
4833 * with chunks of data
4836 * @param id the file ID of the file to retrieve.
4912 * @param id the track ID of the track to retrieve.
4936 * @param id the track ID of the track to retrieve.
4965 * @param id the track ID of the track to retrieve.
4990 * MTP device. A filename and a set of metadata must be
4993 * @param path the filename of a local file which will be sent.
5000 * contents of this struct to be preserved in any way.
5067 * MTP device. A filename and a set of metadata must be
5077 * contents of this struct to be preserved in any way.
5162 * MTP device. A filename and a set of metadata must be
5174 * contents of this struct to be preserved in any way.
5260 * A filename and a set of metadata must be
5263 * @param path the filename of a local file which will be sent.
5270 * contents of this struct to be preserved in any way.
5332 * MTP device. A filename and a set of metadata must be
5335 * This can potentially be used for sending in a stream of unknown
5347 * contents of this struct to be preserved in any way.
5386 // The callback will deactivate itself after this amount of data has been sent
5434 * MTP device. A filename and a set of metadata must be
5437 * This can potentially be used for sending in a stream of unknown
5451 * contents of this struct to be preserved in any way.
5489 // The callback will deactivate itself after this amount of data has been sent
5564 uint16_t of = map_libmtp_type_to_ptp_type(filedata->filetype);
5583 * folder if possible. Perhaps there is some way of retrieveing
5584 * the default folder for different forms of content, what
5585 * do I know, we use a fixed list in lack of any better method.
5597 } else if (of == PTP_OFC_EXIF_JPEG ||
5598 of == PTP_OFC_JP2 ||
5599 of == PTP_OFC_JPX ||
5600 of == PTP_OFC_JFIF ||
5601 of == PTP_OFC_TIFF ||
5602 of == PTP_OFC_TIFF_IT ||
5603 of == PTP_OFC_BMP ||
5604 of == PTP_OFC_GIF ||
5605 of == PTP_OFC_PICT ||
5606 of == PTP_OFC_PNG ||
5607 of == PTP_OFC_MTP_WindowsImageFormat) {
5609 } else if (of == PTP_OFC_MTP_vCalendar1 ||
5610 of == PTP_OFC_MTP_vCalendar2 ||
5611 of == PTP_OFC_MTP_UndefinedContact ||
5612 of == PTP_OFC_MTP_vCard2 ||
5613 of == PTP_OFC_MTP_vCard3 ||
5614 of == PTP_OFC_MTP_UndefinedCalendarItem) {
5616 } else if (of == PTP_OFC_Text) {
5628 if (FLAG_OGG_IS_UNKNOWN(ptp_usb) && of == PTP_OFC_MTP_OGG) {
5629 of = PTP_OFC_Undefined;
5631 if (FLAG_FLAC_IS_UNKNOWN(ptp_usb) && of == PTP_OFC_MTP_FLAC) {
5632 of = PTP_OFC_Undefined;
5663 * 0x00000003 <- Number of metadata items
5667 * 0x0d <- number of (uint16_t) characters
5694 * ... Then update metadata one-by one, actually (instead of sending it first!) ...
5705 ret = ptp_mtp_getobjectpropssupported(params, of, &propcnt, &properties);
5710 ret = ptp_mtp_getobjectpropdesc(params, properties[i], of, &opd);
5768 of, filedata->filesize, props, nrofprops);
5792 new_file.ObjectFormat = of;
5824 * notice that the <code>track_id</code> field of the
5827 * of this metadata are set to NULL (strings) or 0
5831 * or all of the properties fail to update we will still
6014 // TODO: return error of which property we couldn't set
6111 // Update number of channels
6116 "could not set number of channels.");
6192 "Your device doesn't seem to support any known way of setting metadata.");
6248 // See if we can modify the filename on this kind of files.
6304 " your device doesn't seem to support any known way of setting metadata.");
6323 * @param file the file metadata of the file to rename.
6325 * this name can be different than newname depending of device restrictions.
6353 * @param folder the folder metadata of the folder to rename.
6355 * this name can be different than newname depending of device restrictions.
6383 * @param track the track metadata of the track to rename.
6385 * this name can be different than newname depending of device restrictions.
6419 * @param playlist the playlist metadata of the playlist to rename.
6421 * this name can be different than newname depending of device restrictions.
6456 * @param album the album metadata of the album to rename.
6458 * this name can be different than newname depending of device restrictions.
6515 * @param id the track ID of the track to retrieve.
6535 * operation later, so be careful of using strdup() when assigning
6591 * @param folderlist list of folders to search
6592 * @id id of folder to look for
6632 /* We know that iter is a child of 'parent', therefore we can safely
6647 // Put this folder into the list of siblings.
6656 * This returns a list of all folders available
6660 * @return a list of folders
6674 * This creates a temporary list of the folders, this is in a
6679 * This significantly reduces the number of operations that we
6697 * of the MTP 1.0 specification paragraph 3.6.4.
6749 * list of all files and some file are "associations" that other
6753 * @param name the name of the new folder. Note this can be modified
6756 * @param parent_id id of parent folder to add the new folder to,
6758 * @param storage_id id of the storage to add this new folder to.
6822 * operation later, so be careful of using strdup() when assigning
6872 * This function returns a list of the playlists available on the
6957 * @param plid the unique ID of the playlist to retrieve.
7021 * @param name the name of the new abstract list.
7022 * @param artist the artist of the new abstract list or NULL.
7023 * @param genre the genre of the new abstract list or NULL.
7024 * @param parenthandle the handle of the parent or 0 for no parent
7031 * @param tracks an array of tracks to associate with this list.
7032 * @param no_tracks the number of tracks in the list.
7069 // Check if we can create an object of this type
7348 * @param name the name of the abstract list.
7349 * @param artist the artist of the abstract list or NULL.
7350 * @param genre the genre of the abstract list or NULL.
7353 * @param tracks an array of tracks to associate with this list.
7354 * @param no_tracks the number of tracks in the list.
7466 // TODO: return error of which property we couldn't set
7533 "Your device doesn't seem to support any known way of setting metadata.");
7556 * supplied. If the <code>tracks</code> field of the metadata
7561 * exits with success, the <code>playlist_id</code> field of this
7562 * struct will contain the new playlist ID of the playlist.
7595 // Samsung needs its own special type of playlists
7617 * supplied. If the <code>tracks</code> field of the metadata
7619 * playlist in place of those already present, i.e. the
7636 // Samsung needs its own special type of playlists
7657 * operation later, so be careful of using strdup() when assigning
7731 // Only use of AlbumArtist is not set
7768 * If we have a cached, large set of metadata, then use it!
7816 * This function returns a list of the albums available on the
7879 * @param albid the unique ID of the album to retrieve.
7924 * supplied. If the <code>tracks</code> field of the metadata
7929 * exits with success, the <code>album_id</code> field of this
7930 * struct will contain the new ID of the album.
7981 * operation later, so be careful of using strdup() when assigning
8048 // TODO: Get rid of these when we can properly query the device.
8073 * PTP_OC_MTP_GetObjectPropDesc to get max/min values of the properties
8158 * This uses the RepresentativeSampleData property of the album,
8159 * if the device supports it. The data should be of a format acceptable
8165 * @param id unique id of the object to set artwork for.
8257 * This uses the RepresentativeSampleData property of the album,
8260 * @param id unique id of the object to get data for.
8335 * supplied. If the <code>tracks</code> field of the metadata
8337 * album in place of those already present, i.e. the