Initial submission of GUPnP to Tizen IVI
[profile/ivi/GUPnP.git] / libgupnp / gupnp-device.h
1 /*
2  * Copyright (C) 2007 OpenedHand Ltd.
3  *
4  * Author: Jorn Baayen <jorn@openedhand.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 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  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21
22 #ifndef __GUPNP_DEVICE_H__
23 #define __GUPNP_DEVICE_H__
24
25 #include "gupnp-device-info.h"
26
27 G_BEGIN_DECLS
28
29 GType
30 gupnp_device_get_type (void) G_GNUC_CONST;
31
32 #define GUPNP_TYPE_DEVICE \
33                 (gupnp_device_get_type ())
34 #define GUPNP_DEVICE(obj) \
35                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
36                  GUPNP_TYPE_DEVICE, \
37                  GUPnPDevice))
38 #define GUPNP_DEVICE_CLASS(obj) \
39                 (G_TYPE_CHECK_CLASS_CAST ((obj), \
40                  GUPNP_TYPE_DEVICE, \
41                  GUPnPDeviceClass))
42 #define GUPNP_IS_DEVICE(obj) \
43                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
44                  GUPNP_TYPE_DEVICE))
45 #define GUPNP_IS_DEVICE_CLASS(obj) \
46                 (G_TYPE_CHECK_CLASS_TYPE ((obj), \
47                  GUPNP_TYPE_DEVICE))
48 #define GUPNP_DEVICE_GET_CLASS(obj) \
49                 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50                  GUPNP_TYPE_DEVICE, \
51                  GUPnPDeviceClass))
52
53 typedef struct _GUPnPDevicePrivate GUPnPDevicePrivate;
54 typedef struct _GUPnPDevice GUPnPDevice;
55 typedef struct _GUPnPDeviceClass GUPnPDeviceClass;
56
57 /**
58  * GUPnPDevice:
59  *
60  * This struct contains private data only, and should be accessed using the
61  * functions below.
62  */
63 struct _GUPnPDevice {
64         GUPnPDeviceInfo parent;
65
66         GUPnPDevicePrivate *priv;
67 };
68
69 struct _GUPnPDeviceClass {
70         GUPnPDeviceInfoClass parent_class;
71
72         /* future padding */
73         void (* _gupnp_reserved1) (void);
74         void (* _gupnp_reserved2) (void);
75         void (* _gupnp_reserved3) (void);
76         void (* _gupnp_reserved4) (void);
77 };
78
79 G_END_DECLS
80
81 #endif /* __GUPNP_DEVICE_H__ */