[tracker/hierarchical-indexing] libtracker-miner: Use a GSList in the crawler for DirectoryProcessingData
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/hierarchical-indexing] libtracker-miner: Use a GSList in the crawler for DirectoryProcessingData
- Date: Thu, 18 Feb 2010 18:40:00 +0000 (UTC)
commit 7e402dcf1996b50b9849cf7f3d945f05e3c425c4
Author: Martyn Russell <martyn lanedo com>
Date: Thu Feb 18 17:22:11 2010 +0000
libtracker-miner: Use a GSList in the crawler for DirectoryProcessingData
src/libtracker-miner/tracker-crawler.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index 462ce94..09968fa 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -48,7 +48,7 @@ struct DirectoryChildData {
struct DirectoryProcessingData {
GNode *node;
- GList *children;
+ GSList *children;
guint was_inspected : 1;
guint ignored_by_content : 1;
};
@@ -327,8 +327,8 @@ directory_processing_data_new (GNode *node)
static void
directory_processing_data_free (DirectoryProcessingData *data)
{
- g_list_foreach (data->children, (GFunc) directory_child_data_free, NULL);
- g_list_free (data->children);
+ g_slist_foreach (data->children, (GFunc) directory_child_data_free, NULL);
+ g_slist_free (data->children);
g_slice_free (DirectoryProcessingData, data);
}
@@ -341,7 +341,7 @@ directory_processing_data_add_child (DirectoryProcessingData *data,
DirectoryChildData *child_data;
child_data = directory_child_data_new (child, is_dir);
- data->children = g_list_prepend (data->children, child_data);
+ data->children = g_slist_prepend (data->children, child_data);
}
static DirectoryRootInfo *
@@ -447,7 +447,7 @@ process_func (gpointer data)
* to the tree.
*/
child_data = dir_data->children->data;
- dir_data->children = g_list_remove (dir_data->children, child_data);
+ dir_data->children = g_slist_remove (dir_data->children, child_data);
if ((child_data->is_dir &&
check_directory (crawler, info, child_data->child)) ||
@@ -548,7 +548,8 @@ static void
enumerator_data_process (EnumeratorData *ed)
{
TrackerCrawler *crawler;
- GList *l, *children = NULL;
+ GSList *l;
+ GList *children = NULL;
gboolean use;
crawler = ed->crawler;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]