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__
30 /* A hack necesssary to preprocess this file with g-ir-scanner */
35 /* --- GLib boxed types --- */
39 * The #GType for #GDate.
41 #define G_TYPE_DATE (g_date_get_type ())
46 * The #GType for a boxed type holding a %NULL-terminated array of strings.
48 * The code fragments in the following example show the use of a property of
49 * type #G_TYPE_STRV with g_object_class_install_property(), g_object_set()
53 * g_object_class_install_property (object_class,
55 * g_param_spec_boxed ("authors",
57 * _("List of authors"),
59 * G_PARAM_READWRITE));
61 * gchar *authors[] = { "Owen", "Tim", NULL };
62 * g_object_set (obj, "authors", authors, NULL);
65 * g_object_get (obj, "authors", &writers, NULL);
66 * /* do something with writers */
67 * g_strfreev (writers);
72 #define G_TYPE_STRV (g_strv_get_type ())
77 * The #GType for #GString.
79 #define G_TYPE_GSTRING (g_gstring_get_type ())
84 * The #GType for a boxed type holding a #GHashTable reference.
88 #define G_TYPE_HASH_TABLE (g_hash_table_get_type ())
93 * The #GType for a boxed type holding a #GRegex reference.
97 #define G_TYPE_REGEX (g_regex_get_type ())
102 * The #GType for a boxed type holding a #GMatchInfo reference.
106 #define G_TYPE_MATCH_INFO (g_match_info_get_type ())
111 * The #GType for a boxed type holding a #GArray reference.
115 #define G_TYPE_ARRAY (g_array_get_type ())
120 * The #GType for a boxed type holding a #GByteArray reference.
124 #define G_TYPE_BYTE_ARRAY (g_byte_array_get_type ())
129 * The #GType for a boxed type holding a #GPtrArray reference.
133 #define G_TYPE_PTR_ARRAY (g_ptr_array_get_type ())
138 * The #GType for #GBytes.
142 #define G_TYPE_BYTES (g_bytes_get_type ())
145 * G_TYPE_VARIANT_TYPE:
147 * The #GType for a boxed type holding a #GVariantType.
151 #define G_TYPE_VARIANT_TYPE (g_variant_type_get_gtype ())
156 * The #GType for a boxed type holding a #GError.
160 #define G_TYPE_ERROR (g_error_get_type ())
165 * The #GType for a boxed type holding a #GDateTime.
169 #define G_TYPE_DATE_TIME (g_date_time_get_type ())
174 * The #GType for #GIOChannel.
176 #define G_TYPE_IO_CHANNEL (g_io_channel_get_type ())
179 * G_TYPE_IO_CONDITION:
181 * The #GType for #GIOCondition.
183 #define G_TYPE_IO_CONDITION (g_io_condition_get_type ())
186 * G_TYPE_VARIANT_BUILDER:
188 * The #GType for a boxed type holding a #GVariantBuilder.
192 #define G_TYPE_VARIANT_BUILDER (g_variant_builder_get_type ())
197 * The #GType for a boxed type holding a #GMainLoop.
201 #define G_TYPE_MAIN_LOOP (g_main_loop_get_type ())
204 * G_TYPE_MAIN_CONTEXT:
206 * The #GType for a boxed type holding a #GMainContext.
210 #define G_TYPE_MAIN_CONTEXT (g_main_context_get_type ())
215 * The #GType for a boxed type holding a #GSource.
219 #define G_TYPE_SOURCE (g_source_get_type ())
224 * The #GType for a boxed type holding a #GKeyFile.
228 #define G_TYPE_KEY_FILE (g_key_file_get_type ())
230 GType
g_date_get_type (void) G_GNUC_CONST
;
231 GType
g_strv_get_type (void) G_GNUC_CONST
;
232 GType
g_gstring_get_type (void) G_GNUC_CONST
;
233 GType
g_hash_table_get_type (void) G_GNUC_CONST
;
234 GType
g_array_get_type (void) G_GNUC_CONST
;
235 GType
g_byte_array_get_type (void) G_GNUC_CONST
;
236 GType
g_ptr_array_get_type (void) G_GNUC_CONST
;
237 GType
g_bytes_get_type (void) G_GNUC_CONST
;
238 GType
g_variant_type_get_gtype (void) G_GNUC_CONST
;
239 GType
g_regex_get_type (void) G_GNUC_CONST
;
240 GType
g_match_info_get_type (void) G_GNUC_CONST
;
241 GType
g_error_get_type (void) G_GNUC_CONST
;
242 GType
g_date_time_get_type (void) G_GNUC_CONST
;
243 GType
g_io_channel_get_type (void) G_GNUC_CONST
;
244 GType
g_io_condition_get_type (void) G_GNUC_CONST
;
245 GType
g_variant_builder_get_type (void) G_GNUC_CONST
;
246 GType
g_key_file_get_type (void) G_GNUC_CONST
;
247 GType
g_main_loop_get_type (void) G_GNUC_CONST
;
248 GType
g_main_context_get_type (void) G_GNUC_CONST
;
249 GType
g_source_get_type (void) G_GNUC_CONST
;
251 GLIB_DEPRECATED_FOR('G_TYPE_VARIANT')
252 GType
g_variant_get_gtype (void) G_GNUC_CONST
;
257 * A C representable type name for #G_TYPE_STRV.
259 typedef gchar
** GStrv
;
263 #endif /* __GLIB_TYPES_H__ */