2 * Copyright (C) 2007 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
3 * Copyright (C) 2006, 2007 OpenedHand Ltd.
5 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
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.
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.
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.
23 #ifndef __GUPNP_TYPES_H__
24 #define __GUPNP_TYPES_H__
26 #include <glib-object.h>
31 * GUPNP_TYPE_BIN_BASE64:
33 * A string type containing Base-64 encoded binary data.
35 #define GUPNP_TYPE_BIN_BASE64 \
36 (gupnp_bin_base64_get_type ())
40 * A string type containing binary hexadecimal encoded binary data.
42 #define GUPNP_TYPE_BIN_HEX \
43 (gupnp_bin_hex_get_type ())
47 * A string type representing a date in ISO 8601 format with no time or timezone.
49 #define GUPNP_TYPE_DATE \
50 (gupnp_date_get_type ())
52 * GUPNP_TYPE_DATE_TIME:
54 * A string type representing a date in ISO 8601 format with optional time but no timezone.
56 #define GUPNP_TYPE_DATE_TIME \
57 (gupnp_date_time_get_type ())
59 * GUPNP_TYPE_DATE_TIME_TZ:
61 * A string type representing a date in ISO 8601 format with optional time and timezone.
63 #define GUPNP_TYPE_DATE_TIME_TZ \
64 (gupnp_date_time_tz_get_type ())
68 * A string type representing a time in ISO 8601 format with no date or timezone.
70 #define GUPNP_TYPE_TIME \
71 (gupnp_time_get_type ())
75 * A string type representing a time in ISO 8601 format with optional timezone and no date.
77 #define GUPNP_TYPE_TIME_TZ \
78 (gupnp_time_tz_get_type ())
82 * A string type representing a Universal Resource Indentifier.
84 #define GUPNP_TYPE_URI \
85 (gupnp_uri_get_type ())
89 * A Universally Unique ID represented as a hexadecimal-encoded string.
91 #define GUPNP_TYPE_UUID \
92 (gupnp_uuid_get_type ())
95 gupnp_bin_base64_get_type (void) G_GNUC_CONST; /* string */
98 gupnp_bin_hex_get_type (void) G_GNUC_CONST; /* string */
101 gupnp_date_get_type (void) G_GNUC_CONST; /* string */
104 gupnp_date_time_get_type (void) G_GNUC_CONST; /* string */
107 gupnp_date_time_tz_get_type (void) G_GNUC_CONST; /* string */
110 gupnp_time_get_type (void) G_GNUC_CONST; /* string */
113 gupnp_time_tz_get_type (void) G_GNUC_CONST; /* string */
116 gupnp_uri_get_type (void) G_GNUC_CONST; /* string */
119 gupnp_uuid_get_type (void) G_GNUC_CONST; /* string */
121 #define gupnp_value_get_xml_node( value ) \
122 (xmlNode *) g_value_get_boxed ((value))
124 #define gupnp_value_get_string( value ) \
125 (const char *) g_value_get_boxed ((value))
129 #endif /* __GUPNP_TYPES_H__ */