Deprecate g_cache_value_foreach. (#322956, Nicolas Caniart)

2005-12-03  Matthias Clasen  <mclasen@redhat.com>

	* glib/glib.symbols:
	* glib/gcache.h: Deprecate g_cache_value_foreach. (#322956,
	Nicolas Caniart)
This commit is contained in:
Matthias Clasen
2005-12-03 06:53:31 +00:00
committed by Matthias Clasen
parent d87c91a396
commit 36c836435b
7 changed files with 27 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
2005-12-03 Matthias Clasen <mclasen@redhat.com> 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 * glib/gmappedfile.c: Make mapping of empty files
work. (#321530) work. (#321530)

View File

@@ -1,5 +1,9 @@
2005-12-03 Matthias Clasen <mclasen@redhat.com> 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 * glib/gmappedfile.c: Make mapping of empty files
work. (#321530) work. (#321530)

View File

@@ -1,5 +1,9 @@
2005-12-03 Matthias Clasen <mclasen@redhat.com> 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 * glib/gmappedfile.c: Make mapping of empty files
work. (#321530) work. (#321530)

View File

@@ -1,5 +1,8 @@
2005-12-03 Matthias Clasen <mclasen@redhat.com> 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/glib-sections.txt:
* glib/tmpl/linked_lists_single.sgml: Add g_slist_free1. * glib/tmpl/linked_lists_single.sgml: Add g_slist_free1.

View File

@@ -104,6 +104,11 @@ Note that it does not destroy the keys and values which were contained in the
<para> <para>
Calls the given function for each of the keys in the #GCache. Calls the given function for each of the keys in the #GCache.
</para> </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. @cache: a #GCache.
@func: the function to call with each #GCache key. @func: the function to call with each #GCache key.
@@ -118,6 +123,8 @@ Calls the given function for each of the values in the #GCache.
@cache: a #GCache. @cache: a #GCache.
@func: the function to call with each #GCache value. @func: the function to call with each #GCache value.
@user_data: user data to pass to the function. @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 ##### --> <!-- ##### USER_FUNCTION GCacheDestroyFunc ##### -->

View File

@@ -54,9 +54,11 @@ void g_cache_remove (GCache *cache,
void g_cache_key_foreach (GCache *cache, void g_cache_key_foreach (GCache *cache,
GHFunc func, GHFunc func,
gpointer user_data); gpointer user_data);
#ifndef G_DISABLE_DEPRECATED
void g_cache_value_foreach (GCache *cache, void g_cache_value_foreach (GCache *cache,
GHFunc func, GHFunc func,
gpointer user_data); gpointer user_data);
#endif
G_END_DECLS G_END_DECLS

View File

@@ -104,9 +104,11 @@ g_cache_insert
g_cache_key_foreach g_cache_key_foreach
g_cache_new g_cache_new
g_cache_remove g_cache_remove
#ifndef G_DISABLE_DEPRECATED
g_cache_value_foreach g_cache_value_foreach
#endif #endif
#endif #endif
#endif
#if IN_HEADER(__G_COMPLETION_H__) #if IN_HEADER(__G_COMPLETION_H__)
#if IN_FILE(__G_COMPLETION_C__) #if IN_FILE(__G_COMPLETION_C__)