libmtp 1.1.23

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_playlist_t
struct LIBMTP_playlist_struct LIBMTP_playlist_t
Definition libmtp.h:467
LIBMTP_mtpdevice_t
struct LIBMTP_mtpdevice_struct LIBMTP_mtpdevice_t
Definition libmtp.h:464