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