epoc32/include/stdapis/glib-2.0/gobject/gvalue.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/glib-2.0/gobject/gvalue.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/glib-2.0/gobject/gvalue.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,96 @@
     1.4 -gvalue.h
     1.5 +/* GObject - GLib Type, Object, Parameter and Signal Library
     1.6 + * Copyright (C) 1997-1999, 2000-2001 Tim Janik and 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 + * gvalue.h: generic GValue functions
    1.25 + */
    1.26 +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
    1.27 +#error "Only <glib-object.h> can be included directly."
    1.28 +#endif
    1.29 +
    1.30 +#ifndef __G_VALUE_H__
    1.31 +#define __G_VALUE_H__
    1.32 +
    1.33 +#include <_ansi.h>
    1.34 +#include	<gobject/gtype.h>
    1.35 +
    1.36 +G_BEGIN_DECLS
    1.37 +
    1.38 +/* --- type macros --- */
    1.39 +#define	G_TYPE_IS_VALUE(type)		(g_type_check_is_value_type (type))
    1.40 +#define	G_IS_VALUE(value)		(G_TYPE_CHECK_VALUE (value))
    1.41 +#define	G_VALUE_TYPE(value)		(((GValue*) (value))->g_type)
    1.42 +#define	G_VALUE_TYPE_NAME(value)	(g_type_name (G_VALUE_TYPE (value)))
    1.43 +#define G_VALUE_HOLDS(value,type)	(G_TYPE_CHECK_VALUE_TYPE ((value), (type)))
    1.44 +
    1.45 +
    1.46 +/* --- typedefs & structures --- */
    1.47 +typedef void (*GValueTransform) (const GValue *src_value,
    1.48 +				 GValue       *dest_value);
    1.49 +struct _GValue
    1.50 +{
    1.51 +  /*< private >*/
    1.52 +  GType		g_type;
    1.53 +
    1.54 +  /* public for GTypeValueTable methods */
    1.55 +  union {
    1.56 +    gint	v_int;
    1.57 +    guint	v_uint;
    1.58 +    glong	v_long;
    1.59 +    gulong	v_ulong;
    1.60 +    gint64      v_int64;
    1.61 +    guint64     v_uint64;
    1.62 +    gfloat	v_float;
    1.63 +    gdouble	v_double;
    1.64 +    gpointer	v_pointer;
    1.65 +  } data[2];
    1.66 +};
    1.67 +
    1.68 +
    1.69 +/* --- prototypes --- */
    1.70 +IMPORT_C GValue*         g_value_init	   	(GValue       *value,
    1.71 +					 GType         g_type);
    1.72 +IMPORT_C void            g_value_copy    	(const GValue *src_value,
    1.73 +					 GValue       *dest_value);
    1.74 +IMPORT_C GValue*         g_value_reset   	(GValue       *value);
    1.75 +IMPORT_C void            g_value_unset   	(GValue       *value);
    1.76 +IMPORT_C void		g_value_set_instance	(GValue	      *value,
    1.77 +					 gpointer      instance);
    1.78 +
    1.79 +
    1.80 +/* --- private --- */
    1.81 +IMPORT_C gboolean	g_value_fits_pointer	(const GValue *value);
    1.82 +IMPORT_C gpointer	g_value_peek_pointer	(const GValue *value);
    1.83 +
    1.84 +
    1.85 +/* --- implementation details --- */
    1.86 +IMPORT_C gboolean g_value_type_compatible	(GType		 src_type,
    1.87 +					 GType		 dest_type);
    1.88 +IMPORT_C gboolean g_value_type_transformable	(GType           src_type,
    1.89 +					 GType           dest_type);
    1.90 +IMPORT_C gboolean g_value_transform		(const GValue   *src_value,
    1.91 +					 GValue         *dest_value);
    1.92 +IMPORT_C void	g_value_register_transform_func	(GType		 src_type,
    1.93 +					 GType		 dest_type,
    1.94 +					 GValueTransform transform_func);
    1.95 +#define G_VALUE_NOCOPY_CONTENTS		(1 << 27)
    1.96 +
    1.97 +
    1.98 +G_END_DECLS
    1.99 +
   1.100 +#endif /* __G_VALUE_H__ */