blob: ee00d353bcfefa7a7de786bb5c2e94a9e20646d5 [file] [log] [blame]
Yavor Goulishev3aa430d2011-05-23 11:54:45 -07001/*
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
26int is_spl_playlist(PTPObjectInfo *oi);
27
28void spl_to_playlist_t(LIBMTP_mtpdevice_t* device, PTPObjectInfo *oi,
29 const uint32_t id, LIBMTP_playlist_t * const pl);
30int playlist_t_to_spl(LIBMTP_mtpdevice_t *device,
31 LIBMTP_playlist_t * const metadata);
32int update_spl_playlist(LIBMTP_mtpdevice_t *device,
33 LIBMTP_playlist_t * const newlist);
34
35#endif //__MTP__PLAYLIST_SPL__H