Add gobject introspection
[profile/ivi/GUPnP.git] / libgupnp / gupnp-types.h
1 /*
2  * Copyright (C) 2007 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
3  * Copyright (C) 2006, 2007 OpenedHand Ltd.
4  *
5  * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library 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  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22
23 #ifndef __GUPNP_TYPES_H__
24 #define __GUPNP_TYPES_H__
25
26 #include <glib-object.h>
27
28 G_BEGIN_DECLS
29
30 /**
31  * GUPNP_TYPE_BIN_BASE64:
32  *
33  * A string type containing Base-64 encoded binary data.
34  */
35 #define GUPNP_TYPE_BIN_BASE64 \
36                 (gupnp_bin_base64_get_type ())
37 /**
38  * GUPNP_TYPE_BIN_HEX:
39  *
40  * A string type containing binary hexadecimal encoded binary data.
41  */
42 #define GUPNP_TYPE_BIN_HEX \
43                 (gupnp_bin_hex_get_type ())
44 /**
45  * GUPNP_TYPE_DATE:
46  *
47  * A string type representing a date in ISO 8601 format with no time or timezone.
48  */
49 #define GUPNP_TYPE_DATE \
50                 (gupnp_date_get_type ())
51 /**
52  * GUPNP_TYPE_DATE_TIME:
53  *
54  * A string type representing a date in ISO 8601 format with optional time but no timezone.
55  */
56 #define GUPNP_TYPE_DATE_TIME \
57                 (gupnp_date_time_get_type ())
58 /**
59  * GUPNP_TYPE_DATE_TIME_TZ:
60  *
61  * A string type representing a date in ISO 8601 format with optional time and timezone.
62  */
63 #define GUPNP_TYPE_DATE_TIME_TZ \
64                 (gupnp_date_time_tz_get_type ())
65 /**
66  * GUPNP_TYPE_TIME:
67  *
68  * A string type representing a time in ISO 8601 format with no date or timezone.
69  */
70 #define GUPNP_TYPE_TIME \
71                 (gupnp_time_get_type ())
72 /**
73  * GUPNP_TYPE_TIME_TZ:
74  *
75  * A string type representing a time in ISO 8601 format with optional timezone and no date.
76  */
77 #define GUPNP_TYPE_TIME_TZ \
78                 (gupnp_time_tz_get_type ())
79 /**
80  * GUPNP_TYPE_URI:
81  *
82  * A string type representing a Universal Resource Indentifier.
83  */
84 #define GUPNP_TYPE_URI \
85                 (gupnp_uri_get_type ())
86 /**
87  * GUPNP_TYPE_UUID:
88  *
89  * A Universally Unique ID represented as a hexadecimal-encoded string.
90  */
91 #define GUPNP_TYPE_UUID \
92                 (gupnp_uuid_get_type ())
93
94 GType
95 gupnp_bin_base64_get_type (void) G_GNUC_CONST; /* string */
96
97 GType
98 gupnp_bin_hex_get_type (void) G_GNUC_CONST; /* string */
99
100 GType
101 gupnp_date_get_type (void) G_GNUC_CONST; /* string */
102
103 GType
104 gupnp_date_time_get_type (void) G_GNUC_CONST; /* string */
105
106 GType
107 gupnp_date_time_tz_get_type (void) G_GNUC_CONST; /* string */
108
109 GType
110 gupnp_time_get_type (void) G_GNUC_CONST; /* string */
111
112 GType
113 gupnp_time_tz_get_type (void) G_GNUC_CONST; /* string */
114
115 GType
116 gupnp_uri_get_type (void) G_GNUC_CONST; /* string */
117
118 GType
119 gupnp_uuid_get_type (void) G_GNUC_CONST; /* string */
120
121 #define gupnp_value_get_xml_node( value ) \
122         (xmlNode *) g_value_get_boxed ((value))
123
124 #define gupnp_value_get_string( value ) \
125         (const char *) g_value_get_boxed ((value))
126
127 G_END_DECLS
128
129 #endif /* __GUPNP_TYPES_H__ */