Lines Matching defs:new
243 * Create a new file mapping entry
273 filemap_t *new = NULL, *current;
286 new = new_filemap_entry();
287 if(new == NULL) {
291 new->id = id;
293 new->description = strdup(description);
295 new->ptp_id = ptp_id;
299 filemap = new;
303 current->next = new;
414 * Create a new property mapping entry
444 propertymap_t *new = NULL, *current;
457 new = new_propertymap_entry();
458 if(new == NULL) {
462 new->id = id;
464 new->description = strdup(description);
466 new->ptp_id = ptp_id;
470 propertymap = new;
474 current->next = new;
1665 * preferred way to access devices in the new interface where
2188 * references, whenever it changes we get a new object, when it's
2329 // Allocate a new file type
3358 * @param friendlyname the new friendly name for the device.
3426 * @param syncpartner the new synchronization partner for the device.
3802 * This creates a new file metadata structure and allocates memory
3820 LIBMTP_file_t *new = (LIBMTP_file_t *) malloc(sizeof(LIBMTP_file_t));
3821 if (new == NULL) {
3824 new->filename = NULL;
3825 new->item_id = 0;
3826 new->parent_id = 0;
3827 new->storage_id = 0;
3828 new->filesize = 0;
3829 new->modificationdate = 0;
3830 new->filetype = LIBMTP_FILETYPE_UNKNOWN;
3831 new->next = NULL;
3832 return new;
3937 // Allocate a new file type
4077 // Allocate a new file type
4147 * This creates a new track metadata structure and allocates memory
4165 LIBMTP_track_t *new = (LIBMTP_track_t *) malloc(sizeof(LIBMTP_track_t));
4166 if (new == NULL) {
4169 new->item_id = 0;
4170 new->parent_id = 0;
4171 new->storage_id = 0;
4172 new->title = NULL;
4173 new->artist = NULL;
4174 new->composer = NULL;
4175 new->album = NULL;
4176 new->genre = NULL;
4177 new->date = NULL;
4178 new->filename = NULL;
4179 new->duration = 0;
4180 new->tracknumber = 0;
4181 new->filesize = 0;
4182 new->filetype = LIBMTP_FILETYPE_UNKNOWN;
4183 new->samplerate = 0;
4184 new->nochannels = 0;
4185 new->wavecodec = 0;
4186 new->bitrate = 0;
4187 new->bitratetype = 0;
4188 new->rating = 0;
4189 new->usecount = 0;
4190 new->modificationdate = 0;
4191 new->next = NULL;
4192 return new;
4499 // Allocate a new track type
4607 // Allocate a new track type
4996 * will contain the new track ID. Other fields such
5073 * will contain the new track ID. Other fields such
5140 // Pick up new item (and parent, storage) ID
5145 // Set track metadata for the new fine track
5170 * will contain the new track ID. Other fields such
5238 // Pick up new item (and parent, storage) ID
5243 // Set track metadata for the new fine track
5266 * will contain the new file ID. Other fields such
5343 * will contain the new file ID. Other fields such
5414 * look it up from the device, so we get the new
5447 * will contain the new file ID. Other fields such
5527 * look it up from the device, so we get the new
5687 * Param3: 0x00004001 <- new file/object ID
5702 // Must be 0x00000000U for new objects
6326 * @param newname the new filename for this object.
6356 * @param newname the new name for this object.
6386 * @param newname the new filename for this object.
6422 * @param newname the new name for this object.
6459 * @param newname the new name for this object.
6532 * This creates a new folder structure and allocates memory
6543 LIBMTP_folder_t *new = (LIBMTP_folder_t *) malloc(sizeof(LIBMTP_folder_t));
6544 if (new == NULL) {
6547 new->folder_id = 0;
6548 new->parent_id = 0;
6549 new->storage_id = 0;
6550 new->name = NULL;
6551 new->sibling = NULL;
6552 new->child = NULL;
6553 return new;
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.
6762 * @return id to new folder or 0 if an error occured
6819 * This creates a new playlist metadata structure and allocates memory
6837 LIBMTP_playlist_t *new = (LIBMTP_playlist_t *) malloc(sizeof(LIBMTP_playlist_t));
6838 if (new == NULL) {
6841 new->playlist_id = 0;
6842 new->parent_id = 0;
6843 new->storage_id = 0;
6844 new->name = NULL;
6845 new->tracks = NULL;
6846 new->no_tracks = 0;
6847 new->next = NULL;
6848 return new;
6909 // Allocate a new playlist type
6917 // Allocate a new playlist type
6982 // Allocate a new playlist type
6993 // Allocate a new playlist type
7016 * This function creates a new abstract list such as a playlist
7019 * @param device a pointer to the device to create the new abstract list
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.
7029 * @param newid a pointer to a variable that will hold the new object
7082 // add the new suffix if it isn't there
7555 * This routine creates a new playlist based on the metadata
7559 * @param device a pointer to the device to create the new playlist on.
7560 * @param metadata the metadata for the new playlist. If the function
7562 * struct will contain the new playlist ID of the playlist.
7600 // Just create a new abstract audio/video playlist...
7622 * @param device a pointer to the device to create the new playlist on.
7626 * be modified to a new playlist ID by the time the
7654 * This creates a new album metadata structure and allocates memory
7665 LIBMTP_album_t *new = (LIBMTP_album_t *) malloc(sizeof(LIBMTP_album_t));
7666 if (new == NULL) {
7669 new->album_id = 0;
7670 new->parent_id = 0;
7671 new->storage_id = 0;
7672 new->name = NULL;
7673 new->artist = NULL;
7674 new->composer = NULL;
7675 new->genre = NULL;
7676 new->tracks = NULL;
7677 new->no_tracks = 0;
7678 new->next = NULL;
7679 return new;
7846 // Allocate a new album type
7902 // Allocate a new album type
7923 * This routine creates a new album based on the metadata
7927 * @param device a pointer to the device to create the new album on.
7928 * @param metadata the metadata for the new album. If the function
7930 * struct will contain the new ID of the album.
7962 // Just create a new abstract album...
7978 * This creates a new sample data metadata structure and allocates memory
7989 LIBMTP_filesampledata_t *new = (LIBMTP_filesampledata_t *) malloc(sizeof(LIBMTP_filesampledata_t));
7990 if (new == NULL) {
7993 new->height=0;
7994 new->width = 0;
7995 new->data = NULL;
7996 new->duration = 0;
7997 new->size = 0;
7998 return new;
8025 * @param sample this will contain a new sample type with the fields
8072 * a new function in ptp.h/ptp.c that can send the command
8339 * @param device a pointer to the device to create the new album on.