diff options
author | Yavor Goulishev <yavor@google.com> | 2011-05-23 11:54:45 -0700 |
---|---|---|
committer | Yavor Goulishev <yavor@google.com> | 2011-05-23 11:54:45 -0700 |
commit | 3aa430dc5437a98734b36f996f9b17081a589143 (patch) | |
tree | baa4b4dcff5a5cd03dddae540a6191562377b59d /src/playlist-spl.h | |
parent | ad390e59cf93bf3cbac14a9a62048df5d1fbe10a (diff) | |
download | libmtp-3aa430dc5437a98734b36f996f9b17081a589143.tar.gz |
Move the libmtp source from jumper to external.android-sdk-tools_r12android-sdk-adt_r12
Change-Id: I06bce6628cf809af6f7125c8fb4115bafd7c6c87
Diffstat (limited to 'src/playlist-spl.h')
-rw-r--r-- | src/playlist-spl.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/playlist-spl.h b/src/playlist-spl.h new file mode 100644 index 0000000..ee00d35 --- /dev/null +++ b/src/playlist-spl.h @@ -0,0 +1,35 @@ +/* + * \file playlist-spl.h + * Playlist to .spl conversion functions. + * + * Copyright (C) 2008 Alistair Boyle <alistair.js.boyle@gmail.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __MTP__PLAYLIST_SPL__H +#define __MTP__PLAYLIST_SPL__H + +int is_spl_playlist(PTPObjectInfo *oi); + +void spl_to_playlist_t(LIBMTP_mtpdevice_t* device, PTPObjectInfo *oi, + const uint32_t id, LIBMTP_playlist_t * const pl); +int playlist_t_to_spl(LIBMTP_mtpdevice_t *device, + LIBMTP_playlist_t * const metadata); +int update_spl_playlist(LIBMTP_mtpdevice_t *device, + LIBMTP_playlist_t * const newlist); + +#endif //__MTP__PLAYLIST_SPL__H |