2005-12-03 Matthias Clasen <mclasen@redhat.com>
+ * glib/glib.symbols:
+ * glib/gcache.h: Deprecate g_cache_value_foreach. (#322956,
+ Nicolas Caniart)
+
* glib/gmappedfile.c: Make mapping of empty files
work. (#321530)
2005-12-03 Matthias Clasen <mclasen@redhat.com>
+ * glib/glib.symbols:
+ * glib/gcache.h: Deprecate g_cache_value_foreach. (#322956,
+ Nicolas Caniart)
+
* glib/gmappedfile.c: Make mapping of empty files
work. (#321530)
2005-12-03 Matthias Clasen <mclasen@redhat.com>
+ * glib/glib.symbols:
+ * glib/gcache.h: Deprecate g_cache_value_foreach. (#322956,
+ Nicolas Caniart)
+
* glib/gmappedfile.c: Make mapping of empty files
work. (#321530)
2005-12-03 Matthias Clasen <mclasen@redhat.com>
-
+
+ * glib/tmpl/caches.sgml: Document g_cache_value_foreach
+ as deprecated; document g_cache_key_foreach more thorougly
+
* glib/glib-sections.txt:
* glib/tmpl/linked_lists_single.sgml: Add g_slist_free1.
<para>
Calls the given function for each of the keys in the #GCache.
</para>
+<note><para>@func is passed three parameters, the value and key of a
+cache entry and the @user_data. The order of value and key is different
+from the order in which g_hash_table_foreach() passes key-value pairs
+to its callback function !
+</para></note>
@cache: a #GCache.
@func: the function to call with each #GCache key.
@cache: a #GCache.
@func: the function to call with each #GCache value.
@user_data: user data to pass to the function.
+@Deprecated: Since it passes pointers to internal data structures
+to @func; use g_cache_key_foreach() instead
<!-- ##### USER_FUNCTION GCacheDestroyFunc ##### -->
void g_cache_key_foreach (GCache *cache,
GHFunc func,
gpointer user_data);
+#ifndef G_DISABLE_DEPRECATED
void g_cache_value_foreach (GCache *cache,
GHFunc func,
gpointer user_data);
+#endif
G_END_DECLS
g_cache_key_foreach
g_cache_new
g_cache_remove
+#ifndef G_DISABLE_DEPRECATED
g_cache_value_foreach
#endif
#endif
+#endif
#if IN_HEADER(__G_COMPLETION_H__)
#if IN_FILE(__G_COMPLETION_C__)