1 /*
2  * Database record class for DMAP sharing
3  *
4  * Copyright (C) 2008 W. Michael Petullo <mike@flyn.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20 
21 #ifndef __TEST_DMAP_CONTAINER_RECORD
22 #define __TEST_DMAP_CONTAINER_RECORD
23 
24 #include <libdmapsharing/dmap.h>
25 
26 #include "test-dmap-db.h"
27 
28 G_BEGIN_DECLS
29 
30 #define TYPE_TEST_DMAP_CONTAINER_RECORD         (test_dmap_container_record_get_type ())
31 #define TEST_DMAP_CONTAINER_RECORD(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), \
32 				       TYPE_TEST_DMAP_CONTAINER_RECORD, TestDMAPContainerRecord))
33 #define TEST_DMAP_CONTAINER_RECORD_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), \
34 			               TYPE_TEST_DMAP_CONTAINER_RECORD, \
35 				       TestDMAPContainerRecordClass))
36 #define IS_TEST_DMAP_CONTAINER_RECORD(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
37 				       TYPE_TEST_DMAP_CONTAINER_RECORD))
38 #define IS_TEST_DMAP_CONTAINER_RECORD_CLASS (k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
39 				       TYPE_TEST_DMAP_CONTAINER_RECORD_CLASS))
40 #define TEST_DMAP_CONTAINER_RECORD_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), \
41 				       TYPE_TEST_DMAP_CONTAINER_RECORD, \
42 				       TestDMAPContainerRecordClass))
43 
44 typedef struct TestDMAPContainerRecordPrivate TestDMAPContainerRecordPrivate;
45 
46 typedef struct {
47 	GObject parent;
48 } TestDMAPContainerRecord;
49 
50 typedef struct {
51 	GObjectClass parent;
52 } TestDMAPContainerRecordClass;
53 
54 GType test_dmap_container_record_get_type (void);
55 
56 TestDMAPContainerRecord *test_dmap_container_record_new           (void);
57 
58 guint            test_dmap_container_record_get_id        (DMAPContainerRecord *record);
59 
60 #endif /* __TEST_DMAP_CONTAINER_RECORD */
61 
62 G_END_DECLS
63