dbus-gvalue-utils.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* dbus-gvalue-utils.h: Non-DBus-specific functions related to GType/GValue
00003  *
00004  * Copyright (C) 2005 Red Hat, Inc.
00005  *
00006  * Licensed under the Academic Free License version 2.1
00007  * 
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  * 
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  */
00023 
00024 #ifndef DBUS_GOBJECT_VALUE_UTILS_H
00025 #define DBUS_GOBJECT_VALUE_UTILS_H
00026 
00027 #include <glib.h>
00028 #include <glib-object.h>
00029 
00030 G_BEGIN_DECLS
00031 
00032 void           _dbus_g_type_specialized_builtins_init (void);
00033 
00034 gboolean       _dbus_g_type_is_fixed                  (GType gtype); 
00035 guint          _dbus_g_type_fixed_get_size            (GType gtype); 
00036 
00037 gboolean       _dbus_gvalue_set_from_pointer          (GValue *value,
00038                                                       gconstpointer storage);
00039 
00040 typedef void (*DBusGHashValueForeachFunc) (GValue * key, GValue *val, gpointer data);
00041 
00042 void           _dbus_g_hash_table_value_foreach       (GHashTable                *table,
00043                                                       GType                      hash_type,
00044                                                       DBusGHashValueForeachFunc  func,
00045                                                       gpointer                   data);
00046 
00047 void           _dbus_g_hash_table_insert_values       (GHashTable                *table,
00048                                                       GValue                    *key_val,
00049                                                       GValue                    *value_val);
00050 void           _dbus_g_hash_table_insert_steal_values (GHashTable *table,
00051                                                       GValue     *key_val,
00052                                                       GValue     *value_val);
00053 
00054 gboolean       _dbus_gtype_is_valid_hash_key          (GType type);
00055 gboolean       _dbus_gtype_is_valid_hash_value        (GType type);
00056 
00057 GHashFunc      _dbus_g_hash_func_from_gtype           (GType gtype);
00058 GEqualFunc     _dbus_g_hash_equal_from_gtype          (GType gtype);
00059 GDestroyNotify _dbus_g_hash_free_from_gtype           (GType gtype);
00060 
00061 gboolean       _dbus_gvalue_store                     (GValue          *value,
00062                                                       gpointer         storage);
00063 
00064 gboolean       _dbus_gvalue_take                      (GValue          *value,
00065                                                       GTypeCValue     *cvalue);
00066 
00067 gboolean       _dbus_gtype_can_signal_error          (GType                    gtype);
00068 gboolean       _dbus_gvalue_signals_error            (const GValue            *value);
00069 
00070 
00071 G_END_DECLS
00072 
00073 #endif

Generated on Mon Mar 17 16:28:49 2008 for D-BUSGLibBindings by  doxygen 1.5.1