00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
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