1.1 --- a/epoc32/include/stdapis/glib-2.0/gobject/gboxed.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/glib-2.0/gobject/gboxed.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,89 @@
1.4 -gboxed.h
1.5 +/* GObject - GLib Type, Object, Parameter and Signal Library
1.6 + * Copyright (C) 2000-2001 Red Hat, Inc.
1.7 + * Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
1.8 + *
1.9 + * This library is free software; you can redistribute it and/or
1.10 + * modify it under the terms of the GNU Lesser General Public
1.11 + * License as published by the Free Software Foundation; either
1.12 + * version 2 of the License, or (at your option) any later version.
1.13 + *
1.14 + * This library is distributed in the hope that it will be useful,
1.15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.17 + * Lesser General Public License for more details.
1.18 + *
1.19 + * You should have received a copy of the GNU Lesser General
1.20 + * Public License along with this library; if not, write to the
1.21 + * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
1.22 + * Boston, MA 02111-1307, USA.
1.23 + */
1.24 +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
1.25 +#error "Only <glib-object.h> can be included directly."
1.26 +#endif
1.27 +
1.28 +#ifndef __G_BOXED_H__
1.29 +#define __G_BOXED_H__
1.30 +
1.31 +#include <_ansi.h>
1.32 +#include <gobject/gtype.h>
1.33 +
1.34 +G_BEGIN_DECLS
1.35 +
1.36 +/* --- type macros --- */
1.37 +#define G_TYPE_IS_BOXED(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_BOXED)
1.38 +#define G_VALUE_HOLDS_BOXED(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOXED))
1.39 +
1.40 +
1.41 +/* --- typedefs --- */
1.42 +typedef gpointer (*GBoxedCopyFunc) (gpointer boxed);
1.43 +typedef void (*GBoxedFreeFunc) (gpointer boxed);
1.44 +
1.45 +
1.46 +/* --- prototypes --- */
1.47 +IMPORT_C gpointer g_boxed_copy (GType boxed_type,
1.48 + gconstpointer src_boxed);
1.49 +IMPORT_C void g_boxed_free (GType boxed_type,
1.50 + gpointer boxed);
1.51 +IMPORT_C void g_value_set_boxed (GValue *value,
1.52 + gconstpointer v_boxed);
1.53 +IMPORT_C void g_value_set_static_boxed (GValue *value,
1.54 + gconstpointer v_boxed);
1.55 +IMPORT_C gpointer g_value_get_boxed (const GValue *value);
1.56 +IMPORT_C gpointer g_value_dup_boxed (const GValue *value);
1.57 +
1.58 +
1.59 +/* --- convenience --- */
1.60 +IMPORT_C GType g_boxed_type_register_static (const gchar *name,
1.61 + GBoxedCopyFunc boxed_copy,
1.62 + GBoxedFreeFunc boxed_free);
1.63 +
1.64 +
1.65 +/* --- GLib boxed types --- */
1.66 +#define G_TYPE_CLOSURE (g_closure_get_type ())
1.67 +#define G_TYPE_VALUE (g_value_get_type ())
1.68 +#define G_TYPE_VALUE_ARRAY (g_value_array_get_type ())
1.69 +#define G_TYPE_DATE (g_date_get_type ())
1.70 +#define G_TYPE_STRV (g_strv_get_type ())
1.71 +#define G_TYPE_GSTRING (g_gstring_get_type ())
1.72 +#define G_TYPE_HASH_TABLE (g_hash_table_get_type ())
1.73 +
1.74 +
1.75 +IMPORT_C void g_value_take_boxed (GValue *value,
1.76 + gconstpointer v_boxed);
1.77 +#ifndef G_DISABLE_DEPRECATED
1.78 +IMPORT_C void g_value_set_boxed_take_ownership (GValue *value,
1.79 + gconstpointer v_boxed);
1.80 +#endif
1.81 +IMPORT_C GType g_closure_get_type (void) G_GNUC_CONST;
1.82 +IMPORT_C GType g_value_get_type (void) G_GNUC_CONST;
1.83 +IMPORT_C GType g_value_array_get_type (void) G_GNUC_CONST;
1.84 +IMPORT_C GType g_date_get_type (void) G_GNUC_CONST;
1.85 +IMPORT_C GType g_strv_get_type (void) G_GNUC_CONST;
1.86 +IMPORT_C GType g_gstring_get_type (void) G_GNUC_CONST;
1.87 +IMPORT_C GType g_hash_table_get_type (void) G_GNUC_CONST;
1.88 +
1.89 +typedef gchar** GStrv;
1.90 +
1.91 +G_END_DECLS
1.92 +
1.93 +#endif /* __G_BOXED_H__ */