libmtp  1.1.16
playlist-spl.h
1 /*
2  * \file playlist-spl.h
3  * Playlist to .spl conversion functions.
4  *
5  * Copyright (C) 2008 Alistair Boyle <alistair.js.boyle@gmail.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
23 #ifndef __MTP__PLAYLIST_SPL__H
24 #define __MTP__PLAYLIST_SPL__H
25 
26 int is_spl_playlist(PTPObjectInfo *oi);
27 
28 void spl_to_playlist_t(LIBMTP_mtpdevice_t* device, PTPObjectInfo *oi,
29  const uint32_t id, LIBMTP_playlist_t * const pl);
30 int playlist_t_to_spl(LIBMTP_mtpdevice_t *device,
31  LIBMTP_playlist_t * const metadata);
32 int update_spl_playlist(LIBMTP_mtpdevice_t *device,
33  LIBMTP_playlist_t * const newlist);
34 
35 #endif //__MTP__PLAYLIST_SPL__H
LIBMTP_Find_Folder
LIBMTP_folder_t * LIBMTP_Find_Folder(LIBMTP_folder_t *folderlist, uint32_t id)
Definition: libmtp.c:7223
LIBMTP_Get_Filelisting_With_Callback
LIBMTP_file_t * LIBMTP_Get_Filelisting_With_Callback(LIBMTP_mtpdevice_t *device, LIBMTP_progressfunc_t const callback, void const *const data)
Definition: libmtp.c:4426
LIBMTP_folder_struct::parent_id
uint32_t parent_id
Definition: libmtp.h:767
LIBMTP_playlist_struct::parent_id
uint32_t parent_id
Definition: libmtp.h:738
LIBMTP_file_struct::next
LIBMTP_file_t * next
Definition: libmtp.h:701
LIBMTP_folder_struct
Definition: libmtp.h:765
_PTP_USB
Definition: libusb-glue.h:83
LIBMTP_Create_New_Playlist
int LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *const metadata)
Definition: libmtp.c:8266
_PTPObjectInfo
Definition: ptp.h:1079
LIBMTP_file_struct::filesize
uint64_t filesize
Definition: libmtp.h:698
utf16_to_utf8
char * utf16_to_utf8(LIBMTP_mtpdevice_t *device, const uint16_t *unicstr)
Definition: unicode.c:79
LIBMTP_Get_Playlist
LIBMTP_playlist_t * LIBMTP_Get_Playlist(LIBMTP_mtpdevice_t *device, uint32_t const plid)
Definition: libmtp.c:7631
utf8_to_utf16
uint16_t * utf8_to_utf16(LIBMTP_mtpdevice_t *device, const char *localstr)
Definition: unicode.c:112
LIBMTP_Get_Folder_List
LIBMTP_folder_t * LIBMTP_Get_Folder_List(LIBMTP_mtpdevice_t *device)
Definition: libmtp.c:7398
LIBMTP_file_struct
Definition: libmtp.h:693
LIBMTP_mtpdevice_struct::usbinfo
void * usbinfo
Definition: libmtp.h:648
text_struct
Definition: playlist-spl.c:58
ucs2_strlen
int ucs2_strlen(uint16_t const *const unicstr)
Definition: unicode.c:61
LIBMTP_folder_struct::child
LIBMTP_folder_t * child
Definition: libmtp.h:771
LIBMTP_file_struct::filetype
LIBMTP_filetype_t filetype
Definition: libmtp.h:700
LIBMTP_file_struct::filename
char * filename
Definition: libmtp.h:697
LIBMTP_file_struct::parent_id
uint32_t parent_id
Definition: libmtp.h:695
LIBMTP_Send_File_From_File_Descriptor
int LIBMTP_Send_File_From_File_Descriptor(LIBMTP_mtpdevice_t *device, int const fd, LIBMTP_file_t *const filedata, LIBMTP_progressfunc_t const callback, void const *const data)
Definition: libmtp.c:5896
LIBMTP_Get_File_To_File_Descriptor
int LIBMTP_Get_File_To_File_Descriptor(LIBMTP_mtpdevice_t *device, uint32_t const id, int const fd, LIBMTP_progressfunc_t const callback, void const *const data)
Definition: libmtp.c:5241
LIBMTP_playlist_struct::storage_id
uint32_t storage_id
Definition: libmtp.h:739
LIBMTP_playlist_struct::playlist_id
uint32_t playlist_id
Definition: libmtp.h:737
unicode.h
LIBMTP_folder_struct::folder_id
uint32_t folder_id
Definition: libmtp.h:766
libusb-glue.h
LIBMTP_mtpdevice_struct
Definition: libmtp.h:634
LIBMTP_Set_Playlist_Name
int LIBMTP_Set_Playlist_Name(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *playlist, const char *newname)
Definition: libmtp.c:7054
LIBMTP_file_struct::item_id
uint32_t item_id
Definition: libmtp.h:694
LIBMTP_playlist_struct
Definition: libmtp.h:736
LIBMTP_playlist_struct::no_tracks
uint32_t no_tracks
Definition: libmtp.h:742
LIBMTP_playlist_struct::name
char * name
Definition: libmtp.h:740
libmtp.h
LIBMTP_playlist_struct::tracks
uint32_t * tracks
Definition: libmtp.h:741
LIBMTP_file_struct::storage_id
uint32_t storage_id
Definition: libmtp.h:696
LIBMTP_folder_struct::name
char * name
Definition: libmtp.h:769
LIBMTP_folder_struct::sibling
LIBMTP_folder_t * sibling
Definition: libmtp.h:770
LIBMTP_Delete_Object
int LIBMTP_Delete_Object(LIBMTP_mtpdevice_t *device, uint32_t object_id)
Definition: libmtp.c:6775