|
1 /* -*- mode: C; c-file-style: "gnu" -*- */ |
|
2 /* dbus-gvalue-utils.h: Non-DBus-specific functions related to GType/GValue |
|
3 * |
|
4 * Copyright (C) 2005 Red Hat, Inc. |
|
5 * |
|
6 * Licensed under the Academic Free License version 2.1 |
|
7 * |
|
8 * This program is free software; you can redistribute it and/or modify |
|
9 * it under the terms of the GNU General Public License as published by |
|
10 * the Free Software Foundation; either version 2 of the License, or |
|
11 * (at your option) any later version. |
|
12 * |
|
13 * This program is distributed in the hope that it will be useful, |
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 * GNU General Public License for more details. |
|
17 * |
|
18 * You should have received a copy of the GNU General Public License |
|
19 * along with this program; if not, write to the Free Software |
|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 * |
|
22 */ |
|
23 |
|
24 #ifndef DBUS_GOBJECT_VALUE_UTILS_H |
|
25 #define DBUS_GOBJECT_VALUE_UTILS_H |
|
26 |
|
27 #include <glib.h> |
|
28 #include <glib-object.h> |
|
29 |
|
30 G_BEGIN_DECLS |
|
31 |
|
32 void _dbus_g_type_specialized_builtins_init (void); |
|
33 |
|
34 gboolean _dbus_g_type_is_fixed (GType gtype); |
|
35 guint _dbus_g_type_fixed_get_size (GType gtype); |
|
36 |
|
37 gboolean _dbus_gvalue_set_from_pointer (GValue *value, |
|
38 gconstpointer storage); |
|
39 |
|
40 typedef void (*DBusGHashValueForeachFunc) (GValue * key, GValue *val, gpointer data); |
|
41 |
|
42 void _dbus_g_hash_table_value_foreach (GHashTable *table, |
|
43 GType hash_type, |
|
44 DBusGHashValueForeachFunc func, |
|
45 gpointer data); |
|
46 |
|
47 void _dbus_g_hash_table_insert_values (GHashTable *table, |
|
48 GValue *key_val, |
|
49 GValue *value_val); |
|
50 void _dbus_g_hash_table_insert_steal_values (GHashTable *table, |
|
51 GValue *key_val, |
|
52 GValue *value_val); |
|
53 |
|
54 gboolean _dbus_gtype_is_valid_hash_key (GType type); |
|
55 gboolean _dbus_gtype_is_valid_hash_value (GType type); |
|
56 |
|
57 GHashFunc _dbus_g_hash_func_from_gtype (GType gtype); |
|
58 GEqualFunc _dbus_g_hash_equal_from_gtype (GType gtype); |
|
59 GDestroyNotify _dbus_g_hash_free_from_gtype (GType gtype); |
|
60 |
|
61 gboolean _dbus_gvalue_store (GValue *value, |
|
62 gpointer storage); |
|
63 |
|
64 gboolean _dbus_gvalue_take (GValue *value, |
|
65 GTypeCValue *cvalue); |
|
66 |
|
67 gboolean _dbus_gtype_can_signal_error (GType gtype); |
|
68 gboolean _dbus_gvalue_signals_error (const GValue *value); |
|
69 |
|
70 |
|
71 G_END_DECLS |
|
72 |
|
73 #endif |