gdate: Use a more recent year when fetching the month names. Fixes #1386
[glib.git] / gobject / glib-types.h
blob78a199d1d1da90d4804d7c67fd62d8c227ce04c5
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.1 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, see <http://www.gnu.org/licenses/>.
17 #ifndef __GLIB_TYPES_H__
18 #define __GLIB_TYPES_H__
20 #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) && !defined(GLIB_COMPILATION)
21 #error "Only <glib-object.h> can be included directly."
22 #endif
24 #include <glib.h>
26 G_BEGIN_DECLS
28 /* A hack necesssary to preprocess this file with g-ir-scanner */
29 #ifdef __GI_SCANNER__
30 typedef gsize GType;
31 #endif
33 /* --- GLib boxed types --- */
34 /**
35 * G_TYPE_DATE:
37 * The #GType for #GDate.
39 #define G_TYPE_DATE (g_date_get_type ())
41 /**
42 * G_TYPE_STRV:
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()
48 * and g_object_get().
50 * |[
51 * g_object_class_install_property (object_class,
52 * PROP_AUTHORS,
53 * g_param_spec_boxed ("authors",
54 * _("Authors"),
55 * _("List of authors"),
56 * G_TYPE_STRV,
57 * G_PARAM_READWRITE));
59 * gchar *authors[] = { "Owen", "Tim", NULL };
60 * g_object_set (obj, "authors", authors, NULL);
62 * gchar *writers[];
63 * g_object_get (obj, "authors", &writers, NULL);
64 * /&ast; do something with writers &ast;/
65 * g_strfreev (writers);
66 * ]|
68 * Since: 2.4
70 #define G_TYPE_STRV (g_strv_get_type ())
72 /**
73 * G_TYPE_GSTRING:
75 * The #GType for #GString.
77 #define G_TYPE_GSTRING (g_gstring_get_type ())
79 /**
80 * G_TYPE_HASH_TABLE:
82 * The #GType for a boxed type holding a #GHashTable reference.
84 * Since: 2.10
86 #define G_TYPE_HASH_TABLE (g_hash_table_get_type ())
88 /**
89 * G_TYPE_REGEX:
91 * The #GType for a boxed type holding a #GRegex reference.
93 * Since: 2.14
95 #define G_TYPE_REGEX (g_regex_get_type ())
97 /**
98 * G_TYPE_MATCH_INFO:
100 * The #GType for a boxed type holding a #GMatchInfo reference.
102 * Since: 2.30
104 #define G_TYPE_MATCH_INFO (g_match_info_get_type ())
107 * G_TYPE_ARRAY:
109 * The #GType for a boxed type holding a #GArray reference.
111 * Since: 2.22
113 #define G_TYPE_ARRAY (g_array_get_type ())
116 * G_TYPE_BYTE_ARRAY:
118 * The #GType for a boxed type holding a #GByteArray reference.
120 * Since: 2.22
122 #define G_TYPE_BYTE_ARRAY (g_byte_array_get_type ())
125 * G_TYPE_PTR_ARRAY:
127 * The #GType for a boxed type holding a #GPtrArray reference.
129 * Since: 2.22
131 #define G_TYPE_PTR_ARRAY (g_ptr_array_get_type ())
134 * G_TYPE_BYTES:
136 * The #GType for #GBytes.
138 * Since: 2.32
140 #define G_TYPE_BYTES (g_bytes_get_type ())
143 * G_TYPE_VARIANT_TYPE:
145 * The #GType for a boxed type holding a #GVariantType.
147 * Since: 2.24
149 #define G_TYPE_VARIANT_TYPE (g_variant_type_get_gtype ())
152 * G_TYPE_ERROR:
154 * The #GType for a boxed type holding a #GError.
156 * Since: 2.26
158 #define G_TYPE_ERROR (g_error_get_type ())
161 * G_TYPE_DATE_TIME:
163 * The #GType for a boxed type holding a #GDateTime.
165 * Since: 2.26
167 #define G_TYPE_DATE_TIME (g_date_time_get_type ())
170 * G_TYPE_TIME_ZONE:
172 * The #GType for a boxed type holding a #GTimeZone.
174 * Since: 2.34
176 #define G_TYPE_TIME_ZONE (g_time_zone_get_type ())
179 * G_TYPE_IO_CHANNEL:
181 * The #GType for #GIOChannel.
183 #define G_TYPE_IO_CHANNEL (g_io_channel_get_type ())
186 * G_TYPE_IO_CONDITION:
188 * The #GType for #GIOCondition.
190 #define G_TYPE_IO_CONDITION (g_io_condition_get_type ())
193 * G_TYPE_VARIANT_BUILDER:
195 * The #GType for a boxed type holding a #GVariantBuilder.
197 * Since: 2.30
199 #define G_TYPE_VARIANT_BUILDER (g_variant_builder_get_type ())
202 * G_TYPE_VARIANT_DICT:
204 * The #GType for a boxed type holding a #GVariantDict.
206 * Since: 2.40
208 #define G_TYPE_VARIANT_DICT (g_variant_dict_get_type ())
211 * G_TYPE_MAIN_LOOP:
213 * The #GType for a boxed type holding a #GMainLoop.
215 * Since: 2.30
217 #define G_TYPE_MAIN_LOOP (g_main_loop_get_type ())
220 * G_TYPE_MAIN_CONTEXT:
222 * The #GType for a boxed type holding a #GMainContext.
224 * Since: 2.30
226 #define G_TYPE_MAIN_CONTEXT (g_main_context_get_type ())
229 * G_TYPE_SOURCE:
231 * The #GType for a boxed type holding a #GSource.
233 * Since: 2.30
235 #define G_TYPE_SOURCE (g_source_get_type ())
238 * G_TYPE_POLLFD:
240 * The #GType for a boxed type holding a #GPollFD.
242 * Since: 2.36
244 #define G_TYPE_POLLFD (g_pollfd_get_type ())
247 * G_TYPE_MARKUP_PARSE_CONTEXT:
249 * The #GType for a boxed type holding a #GMarkupParseContext.
251 * Since: 2.36
253 #define G_TYPE_MARKUP_PARSE_CONTEXT (g_markup_parse_context_get_type ())
256 * G_TYPE_KEY_FILE:
258 * The #GType for a boxed type holding a #GKeyFile.
260 * Since: 2.32
262 #define G_TYPE_KEY_FILE (g_key_file_get_type ())
265 * G_TYPE_MAPPED_FILE:
267 * The #GType for a boxed type holding a #GMappedFile.
269 * Since: 2.40
271 #define G_TYPE_MAPPED_FILE (g_mapped_file_get_type ())
274 * G_TYPE_THREAD:
276 * The #GType for a boxed type holding a #GThread.
278 * Since: 2.36
280 #define G_TYPE_THREAD (g_thread_get_type ())
283 * G_TYPE_CHECKSUM:
285 * The #GType for a boxed type holding a #GChecksum.
287 * Since: 2.36
289 #define G_TYPE_CHECKSUM (g_checksum_get_type ())
292 * G_TYPE_OPTION_GROUP:
294 * The #GType for a boxed type holding a #GOptionGroup.
296 * Since: 2.44
298 #define G_TYPE_OPTION_GROUP (g_option_group_get_type ())
300 GLIB_AVAILABLE_IN_ALL
301 GType g_date_get_type (void) G_GNUC_CONST;
302 GLIB_AVAILABLE_IN_ALL
303 GType g_strv_get_type (void) G_GNUC_CONST;
304 GLIB_AVAILABLE_IN_ALL
305 GType g_gstring_get_type (void) G_GNUC_CONST;
306 GLIB_AVAILABLE_IN_ALL
307 GType g_hash_table_get_type (void) G_GNUC_CONST;
308 GLIB_AVAILABLE_IN_ALL
309 GType g_array_get_type (void) G_GNUC_CONST;
310 GLIB_AVAILABLE_IN_ALL
311 GType g_byte_array_get_type (void) G_GNUC_CONST;
312 GLIB_AVAILABLE_IN_ALL
313 GType g_ptr_array_get_type (void) G_GNUC_CONST;
314 GLIB_AVAILABLE_IN_ALL
315 GType g_bytes_get_type (void) G_GNUC_CONST;
316 GLIB_AVAILABLE_IN_ALL
317 GType g_variant_type_get_gtype (void) G_GNUC_CONST;
318 GLIB_AVAILABLE_IN_ALL
319 GType g_regex_get_type (void) G_GNUC_CONST;
320 GLIB_AVAILABLE_IN_2_30
321 GType g_match_info_get_type (void) G_GNUC_CONST;
322 GLIB_AVAILABLE_IN_ALL
323 GType g_error_get_type (void) G_GNUC_CONST;
324 GLIB_AVAILABLE_IN_ALL
325 GType g_date_time_get_type (void) G_GNUC_CONST;
326 GLIB_AVAILABLE_IN_ALL
327 GType g_time_zone_get_type (void) G_GNUC_CONST;
328 GLIB_AVAILABLE_IN_ALL
329 GType g_io_channel_get_type (void) G_GNUC_CONST;
330 GLIB_AVAILABLE_IN_ALL
331 GType g_io_condition_get_type (void) G_GNUC_CONST;
332 GLIB_AVAILABLE_IN_ALL
333 GType g_variant_builder_get_type (void) G_GNUC_CONST;
334 GLIB_AVAILABLE_IN_2_40
335 GType g_variant_dict_get_type (void) G_GNUC_CONST;
336 GLIB_AVAILABLE_IN_ALL
337 GType g_key_file_get_type (void) G_GNUC_CONST;
338 GLIB_AVAILABLE_IN_2_30
339 GType g_main_loop_get_type (void) G_GNUC_CONST;
340 GLIB_AVAILABLE_IN_2_30
341 GType g_main_context_get_type (void) G_GNUC_CONST;
342 GLIB_AVAILABLE_IN_2_30
343 GType g_source_get_type (void) G_GNUC_CONST;
344 GLIB_AVAILABLE_IN_2_36
345 GType g_pollfd_get_type (void) G_GNUC_CONST;
346 GLIB_AVAILABLE_IN_2_36
347 GType g_thread_get_type (void) G_GNUC_CONST;
348 GLIB_AVAILABLE_IN_2_36
349 GType g_checksum_get_type (void) G_GNUC_CONST;
350 GLIB_AVAILABLE_IN_2_36
351 GType g_markup_parse_context_get_type (void) G_GNUC_CONST;
352 GLIB_AVAILABLE_IN_2_40
353 GType g_mapped_file_get_type (void) G_GNUC_CONST;
354 GLIB_AVAILABLE_IN_2_44
355 GType g_option_group_get_type (void) G_GNUC_CONST;
357 GLIB_DEPRECATED_FOR('G_TYPE_VARIANT')
358 GType g_variant_get_gtype (void) G_GNUC_CONST;
360 G_END_DECLS
362 #endif /* __GLIB_TYPES_H__ */