1 /*
2  *  Container / playlist database adapter class for DMAP sharing
3  *
4  *  Copyright (C) 2008 W. Michael Petullo <mike@flyn.org>
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  The Rhythmbox authors hereby grant permission for non-GPL compatible
12  *  GStreamer plugins to be used and distributed together with GStreamer
13  *  and Rhythmbox. This permission is above and beyond the permissions granted
14  *  by the GPL license by which Rhythmbox is covered. If you modify this code
15  *  you may extend this exception to your version of the code, but you are not
16  *  obligated to do so. If you do not wish to do so, delete this exception
17  *  statement from your version.
18  *
19  *  This program is distributed in the hope that it will be useful,
20  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  *  GNU General Public License for more details.
23  *
24  *  You should have received a copy of the GNU General Public License
25  *  along with this program; if not, write to the Free Software
26  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
27  *
28  */
29 
30 #ifndef __RB_DMAP_CONTAINER_DB_ADAPTER
31 #define __RB_DMAP_CONTAINER_DB_ADAPTER
32 
33 #include <libdmapsharing/dmap.h>
34 
35 #include "rb-playlist-manager.h"
36 
37 G_BEGIN_DECLS
38 
39 #define RB_TYPE_DMAP_CONTAINER_DB_ADAPTER         (rb_dmap_container_db_adapter_get_type ())
40 #define RB_DMAP_CONTAINER_DB_ADAPTER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_DMAP_CONTAINER_DB_ADAPTER, RBDMAPContainerDbAdapter))
41 #define RB_DMAP_CONTAINER_DB_ADAPTER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_DMAP_CONTAINER_DB_ADAPTER, RBDMAPContainerDbAdapterClass))
42 #define RB_IS_DMAP_CONTAINER_DB_ADAPTER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_DMAP_CONTAINER_DB_ADAPTER))
43 #define RB_IS_DMAP_CONTAINER_DB_ADAPTER_CLASS (k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_DMAP_CONTAINER_DB_ADAPTER_CLASS))
44 #define RB_DMAP_CONTAINER_DB_ADAPTER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_DMAP_CONTAINER_DB_ADAPTER, RBDMAPContainerDbAdapterClass))
45 #define RB_DMAP_CONTAINER_DB_ADAPTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RB_TYPE_DMAP_CONTAINER_DB_ADAPTER, RBDMAPContainerDbAdapterPrivate))
46 
47 typedef struct RBDMAPContainerDbAdapterPrivate RBDMAPContainerDbAdapterPrivate;
48 
49 typedef struct {
50 	GObject parent;
51 	RBDMAPContainerDbAdapterPrivate *priv;
52 } RBDMAPContainerDbAdapter;
53 
54 typedef struct {
55 	GObjectClass parent;
56 } RBDMAPContainerDbAdapterClass;
57 
58 RBDMAPContainerDbAdapter *rb_dmap_container_db_adapter_new (
59 				RBPlaylistManager *playlist_manager);
60 GType rb_dmap_container_db_adapter_get_type (void);
61 
62 void _rb_dmap_container_db_adapter_register_type (GTypeModule *module);
63 
64 #endif /* _RB_DMAP_CONTAINER_DB_ADAPTER */
65 
66 G_END_DECLS
67