2
* Copyright (C) 2007 Jonathan Matthew <jonathan@d14n.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
#ifndef __RB_GENERIC_PLAYER_PLAYLIST_SOURCE_H
21
#define __RB_GENERIC_PLAYER_PLAYLIST_SOURCE_H
23
#include "rb-static-playlist-source.h"
24
#include "rb-generic-player-source.h"
28
#define RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE (rb_generic_player_playlist_source_get_type ())
29
#define RB_GENERIC_PLAYER_PLAYLIST_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE, RBGenericPlayerPlaylistSource))
30
#define RB_GENERIC_PLAYER_PLAYLIST_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE, RBGenericPlayerPlaylistSourceClass))
31
#define RB_IS_GENERIC_PLAYER_PLAYLIST_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE))
32
#define RB_IS_GENERIC_PLAYER_PLAYLIST_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE))
33
#define RB_GENERIC_PLAYER_PLAYLIST_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE, RBGenericPlayerPlaylistSourceClass))
37
RBStaticPlaylistSource parent;
38
} RBGenericPlayerPlaylistSource;
42
RBStaticPlaylistSourceClass parent;
43
} RBGenericPlayerPlaylistSourceClass;
45
GType rb_generic_player_playlist_source_get_type (void);
46
GType rb_generic_player_playlist_source_register_type (GTypeModule *module);
48
RBSource * rb_generic_player_playlist_source_new (RBShell *shell,
49
RBGenericPlayerSource *source,
50
const char *playlist_file,
51
RhythmDBEntryType entry_type);
52
void rb_generic_player_playlist_delete_from_player (RBGenericPlayerPlaylistSource *source);
56
#endif /* __RB_GENERIC_PLAYER_PLAYLIST_SOURCE_H */