[grilo] core: rename generic_filter() into filter_key_list()
- From: Victor Manuel Jaquez Leal <vjaquez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] core: rename generic_filter() into filter_key_list()
- Date: Fri, 22 Oct 2010 16:59:57 +0000 (UTC)
commit c6b6d45d0e86f39c1b0e4db76802b279a9e37c91
Author: VÃctor Manuel Jáquez Leal <vjaquez igalia com>
Date: Fri Oct 22 18:15:16 2010 +0200
core: rename generic_filter() into filter_key_list()
It makes more sense. I would like to name it something like
intersect_key_list() but the function parameters doesn't follow a logical
structure for that, so I adhered to the filter semantic.
Signed-off-by: VÃctor Manuel Jáquez Leal <vjaquez igalia com>
src/grl-metadata-source.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/grl-metadata-source.c b/src/grl-metadata-source.c
index 3d9625d..6828c88 100644
--- a/src/grl-metadata-source.c
+++ b/src/grl-metadata-source.c
@@ -507,10 +507,10 @@ analyze_keys_to_write (GrlMetadataSource *source,
* returned (a list of the filtered out keys).
*/
static GList *
-generic_filter (GrlMetadataSource *source,
- GList **keys_to_filter,
- gboolean return_filtered,
- const GList *source_keys)
+filter_key_list (GrlMetadataSource *source,
+ GList **keys_to_filter,
+ gboolean return_filtered,
+ const GList *source_keys)
{
GList *iter_source_keys;
GList *iter_keys;
@@ -783,7 +783,7 @@ grl_metadata_source_filter_supported (GrlMetadataSource *source,
supported_keys = grl_metadata_source_supported_keys (source);
- return generic_filter (source, keys, return_filtered, supported_keys);
+ return filter_key_list (source, keys, return_filtered, supported_keys);
}
/**
@@ -812,7 +812,7 @@ grl_metadata_source_filter_slow (GrlMetadataSource *source,
slow_keys = grl_metadata_source_slow_keys (source);
- return generic_filter (source, keys, return_filtered, slow_keys);
+ return filter_key_list (source, keys, return_filtered, slow_keys);
}
/**
@@ -842,7 +842,7 @@ grl_metadata_source_filter_writable (GrlMetadataSource *source,
writable_keys = grl_metadata_source_writable_keys (source);
- return generic_filter (source, keys, return_filtered, writable_keys);
+ return filter_key_list (source, keys, return_filtered, writable_keys);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]