1 /* GObject - GLib Type, Object, Parameter and Signal Library
2 * Copyright (C) 2000-2001 Red Hat, Inc.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General
15 * Public License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
17 * Boston, MA 02111-1307, USA.
19 #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) && !defined(GLIB_COMPILATION)
20 #error "Only <glib-object.h> can be included directly."
23 #ifndef __GLIB_TYPES_H__
24 #define __GLIB_TYPES_H__
28 /* A hack necesssary to preprocess this file with g-ir-scanner */
33 /* --- GLib boxed types --- */
37 * The #GType for #GDate.
39 #define G_TYPE_DATE (g_date_get_type ())
44 * The #GType for a boxed type holding a %NULL-terminated array of strings.
46 * The code fragments in the following example show the use of a property of
47 * type #G_TYPE_STRV with g_object_class_install_property(), g_object_set()
51 * g_object_class_install_property (object_class,
53 * g_param_spec_boxed ("authors",
55 * _("List of authors"),
57 * G_PARAM_READWRITE));
59 * gchar *authors[] = { "Owen", "Tim", NULL };
60 * g_object_set (obj, "authors", authors, NULL);
63 * g_object_get (obj, "authors", &writers, NULL);
64 * /* do something with writers */
65 * g_strfreev (writers);
70 #define G_TYPE_STRV (g_strv_get_type ())
75 * The #GType for #GString.
77 #define G_TYPE_GSTRING (g_gstring_get_type ())
82 * The #GType for a boxed type holding a #GHashTable reference.
86 #define G_TYPE_HASH_TABLE (g_hash_table_get_type ())
91 * The #GType for a boxed type holding a #GRegex reference.
95 #define G_TYPE_REGEX (g_regex_get_type ())
100 * The #GType for a boxed type holding a #GArray reference.
104 #define G_TYPE_ARRAY (g_array_get_type ())
109 * The #GType for a boxed type holding a #GByteArray reference.
113 #define G_TYPE_BYTE_ARRAY (g_byte_array_get_type ())
118 * The #GType for a boxed type holding a #GPtrArray reference.
122 #define G_TYPE_PTR_ARRAY (g_ptr_array_get_type ())
125 * G_TYPE_VARIANT_TYPE:
127 * The #GType for a boxed type holding a #GVariantType.
131 #define G_TYPE_VARIANT_TYPE (g_variant_type_get_gtype ())
136 * The #GType for a boxed type holding a #GError.
140 #define G_TYPE_ERROR (g_error_get_type ())
145 * The #GType for a boxed type holding a #GDateTime.
149 #define G_TYPE_DATE_TIME (g_date_time_get_type ())
154 * The #GType for #GIOChannel.
156 #define G_TYPE_IO_CHANNEL (g_io_channel_get_type ())
159 * G_TYPE_IO_CONDITION:
161 * The #GType for #GIOCondition.
163 #define G_TYPE_IO_CONDITION (g_io_condition_get_type ())
166 * G_TYPE_VARIANT_BUILDER:
168 * The #GType for a boxed type holding a #GVariantBuilder.
172 #define G_TYPE_VARIANT_BUILDER (g_variant_builder_get_type ())
174 GType g_date_get_type (void) G_GNUC_CONST;
175 GType g_strv_get_type (void) G_GNUC_CONST;
176 GType g_gstring_get_type (void) G_GNUC_CONST;
177 GType g_hash_table_get_type (void) G_GNUC_CONST;
178 GType g_array_get_type (void) G_GNUC_CONST;
179 GType g_byte_array_get_type (void) G_GNUC_CONST;
180 GType g_ptr_array_get_type (void) G_GNUC_CONST;
181 GType g_variant_type_get_gtype (void) G_GNUC_CONST;
182 GType g_regex_get_type (void) G_GNUC_CONST;
183 GType g_error_get_type (void) G_GNUC_CONST;
184 GType g_date_time_get_type (void) G_GNUC_CONST;
185 GType g_io_channel_get_type (void) G_GNUC_CONST;
186 GType g_io_condition_get_type (void) G_GNUC_CONST;
187 GType g_variant_builder_get_type (void) G_GNUC_CONST;
189 #if !defined(G_DISABLE_DEPRECATED) || defined(__GI_SCANNER__)
190 GType g_variant_get_gtype (void) G_GNUC_CONST;
196 * A C representable type name for #G_TYPE_STRV.
198 typedef gchar** GStrv;
202 #endif /* __GLIB_TYPES_H__ */