Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 /* GLIB - Library of useful routines for C programming
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 * Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
22 * Modified by the GLib Team and others 1997-2000. See the AUTHORS
23 * file for a list of people on the GLib Team. See the ChangeLog
24 * files for a list of changes. These files are distributed with
25 * GLib at ftp://ftp.gtk.org/pub/gtk/.
32 #include <glib/gtypes.h>
36 typedef struct _GHashTable GHashTable;
38 typedef gboolean (*GHRFunc) (gpointer key,
44 IMPORT_C GHashTable* g_hash_table_new (GHashFunc hash_func,
45 GEqualFunc key_equal_func);
46 IMPORT_C GHashTable* g_hash_table_new_full (GHashFunc hash_func,
47 GEqualFunc key_equal_func,
48 GDestroyNotify key_destroy_func,
49 GDestroyNotify value_destroy_func);
50 IMPORT_C void g_hash_table_destroy (GHashTable *hash_table);
51 IMPORT_C void g_hash_table_insert (GHashTable *hash_table,
54 IMPORT_C void g_hash_table_replace (GHashTable *hash_table,
57 IMPORT_C gboolean g_hash_table_remove (GHashTable *hash_table,
59 IMPORT_C gboolean g_hash_table_steal (GHashTable *hash_table,
61 IMPORT_C gpointer g_hash_table_lookup (GHashTable *hash_table,
63 IMPORT_C gboolean g_hash_table_lookup_extended (GHashTable *hash_table,
64 gconstpointer lookup_key,
67 IMPORT_C void g_hash_table_foreach (GHashTable *hash_table,
70 IMPORT_C gpointer g_hash_table_find (GHashTable *hash_table,
73 IMPORT_C guint g_hash_table_foreach_remove (GHashTable *hash_table,
76 IMPORT_C guint g_hash_table_foreach_steal (GHashTable *hash_table,
79 IMPORT_C guint g_hash_table_size (GHashTable *hash_table);
81 /* keeping hash tables alive */
82 IMPORT_C GHashTable* g_hash_table_ref (GHashTable *hash_table);
83 IMPORT_C void g_hash_table_unref (GHashTable *hash_table);
85 #ifndef G_DISABLE_DEPRECATED
87 /* The following two functions are deprecated and will be removed in
88 * the next major release. They do no good. */
89 #define g_hash_table_freeze(hash_table) ((void)0)
90 #define g_hash_table_thaw(hash_table) ((void)0)
92 #endif /* G_DISABLE_DEPRECATED */
96 IMPORT_C gboolean g_str_equal (gconstpointer v1,
98 IMPORT_C guint g_str_hash (gconstpointer v);
100 IMPORT_C gboolean g_int_equal (gconstpointer v1,
102 IMPORT_C guint g_int_hash (gconstpointer v);
104 /* This "hash" function will just return the key's address as an
105 * unsigned integer. Useful for hashing on plain addresses or
106 * simple integer values.
107 * Passing NULL into g_hash_table_new() as GHashFunc has the
108 * same effect as passing g_direct_hash().
110 IMPORT_C guint g_direct_hash (gconstpointer v) G_GNUC_CONST;
111 IMPORT_C gboolean g_direct_equal (gconstpointer v1,
112 gconstpointer v2) G_GNUC_CONST;
116 #endif /* __G_HASH_H__ */