[tracker/miner-fs-refactor: 94/127] libtracker-miner: indentation and alignment fixes
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-refactor: 94/127] libtracker-miner: indentation and alignment fixes
- Date: Mon, 5 Dec 2011 13:27:31 +0000 (UTC)
commit 3a3de30951339e36a39ad8424f91bf0d61a437e7
Author: Aleksander Morgado <aleksander lanedo com>
Date: Fri Oct 7 16:19:39 2011 +0200
libtracker-miner: indentation and alignment fixes
src/libtracker-miner/tracker-file-notifier.c | 148 +++++++++++++-------------
src/libtracker-miner/tracker-file-notifier.h | 8 +-
src/libtracker-miner/tracker-file-system.c | 24 ++--
src/libtracker-miner/tracker-indexing-tree.c | 80 +++++++-------
src/libtracker-miner/tracker-indexing-tree.h | 14 ++--
src/libtracker-miner/tracker-miner-fs.c | 28 +++---
src/libtracker-miner/tracker-miner-fs.h | 2 +-
src/libtracker-miner/tracker-monitor.h | 2 +-
8 files changed, 153 insertions(+), 153 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 6da9904..259a073 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -130,8 +130,8 @@ crawler_check_file_cb (TrackerCrawler *crawler,
priv = TRACKER_FILE_NOTIFIER (user_data)->priv;
return tracker_indexing_tree_file_is_indexable (priv->indexing_tree,
- file,
- G_FILE_TYPE_REGULAR);
+ file,
+ G_FILE_TYPE_REGULAR);
}
static gboolean
@@ -155,8 +155,8 @@ crawler_check_directory_cb (TrackerCrawler *crawler,
}
return tracker_indexing_tree_file_is_indexable (priv->indexing_tree,
- directory,
- G_FILE_TYPE_DIRECTORY);
+ directory,
+ G_FILE_TYPE_DIRECTORY);
}
static gboolean
@@ -177,11 +177,11 @@ crawler_check_directory_contents_cb (TrackerCrawler *crawler,
gboolean add_monitor;
canonical = tracker_file_system_get_file (priv->file_system,
- parent,
- G_FILE_TYPE_DIRECTORY,
- NULL);
+ parent,
+ G_FILE_TYPE_DIRECTORY,
+ NULL);
tracker_indexing_tree_get_root (priv->indexing_tree,
- canonical, &parent_flags);
+ canonical, &parent_flags);
add_monitor = (parent_flags & TRACKER_DIRECTORY_FLAG_MONITOR) != 0;
@@ -210,11 +210,11 @@ file_notifier_traverse_tree_foreach (GFile *file,
store_mtime = tracker_file_system_get_property (priv->file_system, file,
quark_property_store_mtime);
disk_mtime = tracker_file_system_get_property (priv->file_system, file,
- quark_property_filesystem_mtime);
+ quark_property_filesystem_mtime);
file_type =
GPOINTER_TO_UINT (tracker_file_system_get_property (priv->file_system,
- file,
- quark_property_file_type));
+ file,
+ quark_property_file_type));
if (store_mtime && !disk_mtime) {
/* In store but not in disk, delete */
g_signal_emit (notifier, signals[FILE_DELETED], 0, file);
@@ -225,7 +225,7 @@ file_notifier_traverse_tree_foreach (GFile *file,
/* In disk but not in store, create */
g_signal_emit (notifier, signals[FILE_CREATED], 0, file);
} else if (store_mtime && disk_mtime &&
- strcmp (store_mtime, disk_mtime) != 0) {
+ strcmp (store_mtime, disk_mtime) != 0) {
/* Mtime changed, update */
g_signal_emit (notifier, signals[FILE_UPDATED], 0, file, FALSE);
} else if (!store_mtime && !disk_mtime) {
@@ -281,7 +281,7 @@ typedef struct {
static gboolean
file_notifier_add_node_foreach (GNode *node,
- gpointer user_data)
+ gpointer user_data)
{
DirectoryCrawledData *data = user_data;
TrackerFileNotifierPrivate *priv;
@@ -295,7 +295,7 @@ file_notifier_add_node_foreach (GNode *node,
node->parent != data->cur_parent_node) {
data->cur_parent_node = node->parent;
data->cur_parent = tracker_file_system_peek_file (priv->file_system,
- node->parent->data);
+ node->parent->data);
} else {
data->cur_parent_node = NULL;
data->cur_parent = NULL;
@@ -309,9 +309,9 @@ file_notifier_add_node_foreach (GNode *node,
file_info = g_file_query_info (canonical,
G_FILE_ATTRIBUTE_TIME_MODIFIED ","
G_FILE_ATTRIBUTE_STANDARD_TYPE,
- G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
- NULL,
- NULL);
+ G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
+ NULL,
+ NULL);
if (file_info) {
GFileType file_type;
guint64 time;
@@ -320,26 +320,26 @@ file_notifier_add_node_foreach (GNode *node,
gchar *time_str;
time = g_file_info_get_attribute_uint64 (file_info,
- G_FILE_ATTRIBUTE_TIME_MODIFIED);
+ G_FILE_ATTRIBUTE_TIME_MODIFIED);
mtime = (time_t) time;
gmtime_r (&mtime, &t);
time_str = g_strdup_printf ("%04d-%02d-%02dT%02d:%02d:%02dZ",
- t.tm_year + 1900,
- t.tm_mon + 1,
- t.tm_mday,
- t.tm_hour,
- t.tm_min,
- t.tm_sec);
+ t.tm_year + 1900,
+ t.tm_mon + 1,
+ t.tm_mday,
+ t.tm_hour,
+ t.tm_min,
+ t.tm_sec);
tracker_file_system_set_property (priv->file_system, canonical,
- quark_property_filesystem_mtime,
- time_str);
+ quark_property_filesystem_mtime,
+ time_str);
file_type = g_file_info_get_file_type (file_info);
tracker_file_system_set_property (priv->file_system, canonical,
- quark_property_file_type,
- GUINT_TO_POINTER (file_type));
+ quark_property_file_type,
+ GUINT_TO_POINTER (file_type));
g_object_unref (file_info);
}
@@ -361,11 +361,11 @@ crawler_directory_crawled_cb (TrackerCrawler *crawler,
notifier = data.notifier = user_data;
g_node_traverse (tree,
- G_PRE_ORDER,
- G_TRAVERSE_ALL,
- -1,
- file_notifier_add_node_foreach,
- &data);
+ G_PRE_ORDER,
+ G_TRAVERSE_ALL,
+ -1,
+ file_notifier_add_node_foreach,
+ &data);
g_signal_emit (notifier, signals[DIRECTORY_FINISHED], 0,
directory,
@@ -415,21 +415,21 @@ sparql_file_query_populate (TrackerFileNotifier *notifier,
iri = tracker_sparql_cursor_get_string (cursor, 1, NULL);
tracker_file_system_set_property (priv->file_system, canonical,
- quark_property_iri,
- g_strdup (iri));
+ quark_property_iri,
+ g_strdup (iri));
mtime = tracker_sparql_cursor_get_string (cursor, 2, NULL);
tracker_file_system_set_property (priv->file_system, canonical,
- quark_property_store_mtime,
- g_strdup (mtime));
+ quark_property_store_mtime,
+ g_strdup (mtime));
g_object_unref (file);
}
}
static void
sparql_query_cb (GObject *object,
- GAsyncResult *result,
- gpointer user_data)
+ GAsyncResult *result,
+ gpointer user_data)
{
TrackerFileNotifierPrivate *priv;
TrackerFileNotifier *notifier;
@@ -439,7 +439,7 @@ sparql_query_cb (GObject *object,
notifier = user_data;
priv = notifier->priv;
cursor = tracker_sparql_connection_query_finish (TRACKER_SPARQL_CONNECTION (object),
- result, &error);
+ result, &error);
if (!cursor || error) {
g_warning ("Could not query directory elements: %s\n", error->message);
@@ -451,17 +451,17 @@ sparql_query_cb (GObject *object,
/* Mark the directory root as queried */
tracker_file_system_set_property (priv->file_system,
- priv->pending_index_roots->data,
- quark_property_queried,
- GUINT_TO_POINTER (TRUE));
+ priv->pending_index_roots->data,
+ quark_property_queried,
+ GUINT_TO_POINTER (TRUE));
tracker_info ("finished querying files after %2.2f seconds",
g_timer_elapsed (priv->timer, NULL));
/* If it's also been crawled, finish operation */
if (tracker_file_system_get_property (priv->file_system,
- priv->pending_index_roots->data,
- quark_property_crawled)) {
+ priv->pending_index_roots->data,
+ quark_property_crawled)) {
file_notifier_traverse_tree (notifier);
}
@@ -549,13 +549,13 @@ crawl_directories_start (TrackerFileNotifier *notifier)
while (priv->pending_index_roots) {
directory = priv->pending_index_roots->data;
tracker_indexing_tree_get_root (priv->indexing_tree,
- directory,
- &flags);
+ directory,
+ &flags);
if ((flags & TRACKER_DIRECTORY_FLAG_IGNORE) == 0 &&
tracker_crawler_start (priv->crawler,
- directory,
- (flags & TRACKER_DIRECTORY_FLAG_RECURSE) != 0)) {
+ directory,
+ (flags & TRACKER_DIRECTORY_FLAG_RECURSE) != 0)) {
gchar *uri;
sparql_file_query_start (notifier, directory,
@@ -612,13 +612,13 @@ crawler_finished_cb (TrackerCrawler *crawler,
/* Mark the directory root as crawled */
tracker_file_system_set_property (priv->file_system, directory,
- quark_property_crawled,
- GUINT_TO_POINTER (TRUE));
+ quark_property_crawled,
+ GUINT_TO_POINTER (TRUE));
/* If it's also been queried, finish operation */
if (tracker_file_system_get_property (priv->file_system,
- directory,
- quark_property_queried)) {
+ directory,
+ quark_property_queried)) {
file_notifier_traverse_tree (notifier);
}
}
@@ -654,8 +654,8 @@ monitor_item_created_cb (TrackerMonitor *monitor,
if (parent) {
children = g_list_prepend (NULL, file);
indexable = tracker_indexing_tree_parent_is_indexable (priv->indexing_tree,
- parent,
- children);
+ parent,
+ children);
g_list_free (children);
if (!indexable) {
@@ -680,12 +680,12 @@ monitor_item_created_cb (TrackerMonitor *monitor,
if (flags & TRACKER_DIRECTORY_FLAG_RECURSE) {
canonical = tracker_file_system_get_file (priv->file_system,
- file,
- file_type,
- NULL);
+ file,
+ file_type,
+ NULL);
priv->pending_index_roots =
g_list_append (priv->pending_index_roots,
- canonical);
+ canonical);
crawl_directories_start (notifier);
return;
@@ -1052,8 +1052,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerFileNotifierClass,
- file_created),
- NULL, NULL,
+ file_created),
+ NULL, NULL,
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE,
1, G_TYPE_FILE);
@@ -1062,8 +1062,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerFileNotifierClass,
- file_updated),
- NULL, NULL,
+ file_updated),
+ NULL, NULL,
tracker_marshal_VOID__OBJECT_BOOLEAN,
G_TYPE_NONE,
2, G_TYPE_FILE, G_TYPE_BOOLEAN);
@@ -1072,8 +1072,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerFileNotifierClass,
- file_deleted),
- NULL, NULL,
+ file_deleted),
+ NULL, NULL,
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE,
1, G_TYPE_FILE);
@@ -1082,8 +1082,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerFileNotifierClass,
- file_moved),
- NULL, NULL,
+ file_moved),
+ NULL, NULL,
tracker_marshal_VOID__OBJECT_OBJECT,
G_TYPE_NONE,
2, G_TYPE_FILE, G_TYPE_FILE);
@@ -1092,8 +1092,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerFileNotifierClass,
- directory_started),
- NULL, NULL,
+ directory_started),
+ NULL, NULL,
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE,
1, G_TYPE_FILE);
@@ -1102,8 +1102,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerFileNotifierClass,
- directory_finished),
- NULL, NULL,
+ directory_finished),
+ NULL, NULL,
tracker_marshal_VOID__OBJECT_UINT_UINT_UINT_UINT,
G_TYPE_NONE,
5, G_TYPE_FILE, G_TYPE_UINT,
@@ -1113,8 +1113,8 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerFileNotifierClass,
- finished),
- NULL, NULL,
+ finished),
+ NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0, G_TYPE_NONE);
@@ -1166,7 +1166,7 @@ tracker_file_notifier_init (TrackerFileNotifier *notifier)
if (error) {
g_critical ("Could not get SPARQL connection: %s\n",
- error->message);
+ error->message);
g_error_free (error);
g_assert_not_reached ();
diff --git a/src/libtracker-miner/tracker-file-notifier.h b/src/libtracker-miner/tracker-file-notifier.h
index 83a2b74..21b9299 100644
--- a/src/libtracker-miner/tracker-file-notifier.h
+++ b/src/libtracker-miner/tracker-file-notifier.h
@@ -50,15 +50,15 @@ struct _TrackerFileNotifierClass {
GObjectClass parent_class;
void (* file_created) (TrackerFileNotifier *notifier,
- GFile *file);
+ GFile *file);
void (* file_updated) (TrackerFileNotifier *notifier,
GFile *file,
gboolean attributes_only);
void (* file_deleted) (TrackerFileNotifier *notifier,
- GFile *file);
+ GFile *file);
void (* file_moved) (TrackerFileNotifier *notifier,
- GFile *from,
- GFile *to);
+ GFile *from,
+ GFile *to);
/* Directory notifications */
void (* directory_started) (TrackerFileNotifier *notifier,
diff --git a/src/libtracker-miner/tracker-file-system.c b/src/libtracker-miner/tracker-file-system.c
index b6168d9..dc7db57 100644
--- a/src/libtracker-miner/tracker-file-system.c
+++ b/src/libtracker-miner/tracker-file-system.c
@@ -87,10 +87,10 @@ file_node_data_free (FileNodeData *data,
GDestroyNotify destroy_notify;
property = &g_array_index (data->properties,
- FileNodeProperty, i);
+ FileNodeProperty, i);
destroy_notify = g_hash_table_lookup (properties,
- GUINT_TO_POINTER (property->prop_quark));
+ GUINT_TO_POINTER (property->prop_quark));
if (destroy_notify) {
(destroy_notify) (property->value);
@@ -156,8 +156,8 @@ file_node_data_equal_or_child (GNode *node,
if (uri_suffix[0] == '/') {
uri_suffix++;
} else if (uri_suffix[0] != '\0' &&
- (len < 4 ||
- strcmp (data->uri_suffix + len - 4, ":///") != 0)) {
+ (len < 4 ||
+ strcmp (data->uri_suffix + len - 4, ":///") != 0)) {
/* If the first char isn't an uri separator
* nor \0, node represents a similarly named
* file, but not a parent after all.
@@ -327,7 +327,7 @@ tracker_file_system_new (void)
static void
reparent_child_nodes (GNode *node,
- GNode *new_parent)
+ GNode *new_parent)
{
FileNodeData *parent_data;
GNode *child;
@@ -349,7 +349,7 @@ reparent_child_nodes (GNode *node,
}
data->uri_suffix = g_file_get_relative_path (parent_data->file,
- data->file);
+ data->file);
g_node_unlink (cur);
g_node_append (new_parent, cur);
@@ -452,7 +452,7 @@ tracker_file_system_get_file (TrackerFileSystem *file_system,
}
} else {
node = file_tree_lookup (priv->file_tree, file,
- &parent_node, &uri_suffix);
+ &parent_node, &uri_suffix);
}
if (!node) {
@@ -568,11 +568,11 @@ tracker_file_system_traverse (TrackerFileSystem *file_system,
data.user_data = user_data;
g_node_traverse (node,
- order,
- G_TRAVERSE_ALL,
- -1,
+ order,
+ G_TRAVERSE_ALL,
+ -1,
traverse_filesystem_func,
- &data);
+ &data);
}
void
@@ -753,7 +753,7 @@ tracker_file_system_unset_property (TrackerFileSystem *file_system,
/* Find out the index from memory positions */
index = (guint) ((FileNodeProperty *) match -
- (FileNodeProperty *) data->properties->data);
+ (FileNodeProperty *) data->properties->data);
g_assert (index >= 0 && index < data->properties->len);
g_array_remove_index (data->properties, index);
diff --git a/src/libtracker-miner/tracker-indexing-tree.c b/src/libtracker-miner/tracker-indexing-tree.c
index d758ef4..d41ba22 100644
--- a/src/libtracker-miner/tracker-indexing-tree.c
+++ b/src/libtracker-miner/tracker-indexing-tree.c
@@ -123,9 +123,9 @@ pattern_data_free (PatternData *data)
static void
tracker_indexing_tree_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec)
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
TrackerIndexingTreePrivate *priv;
@@ -143,9 +143,9 @@ tracker_indexing_tree_get_property (GObject *object,
static void
tracker_indexing_tree_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
TrackerIndexingTree *tree;
@@ -154,7 +154,7 @@ tracker_indexing_tree_set_property (GObject *object,
switch (prop_id) {
case PROP_FILTER_HIDDEN:
tracker_indexing_tree_set_filter_hidden (tree,
- g_value_get_boolean (value));
+ g_value_get_boolean (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -197,36 +197,36 @@ tracker_indexing_tree_class_init (TrackerIndexingTreeClass *klass)
g_object_class_install_property (object_class,
PROP_FILTER_HIDDEN,
g_param_spec_boolean ("filter-hidden",
- "Filter hidden",
- "Whether hidden resources are filtered",
- FALSE,
- G_PARAM_READWRITE));
+ "Filter hidden",
+ "Whether hidden resources are filtered",
+ FALSE,
+ G_PARAM_READWRITE));
signals[DIRECTORY_ADDED] =
g_signal_new ("directory-added",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerIndexingTreeClass,
- directory_added),
- NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT,
+ directory_added),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, G_TYPE_FILE);
signals[DIRECTORY_REMOVED] =
g_signal_new ("directory-removed",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerIndexingTreeClass,
- directory_removed),
- NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT,
+ directory_removed),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, G_TYPE_FILE);
signals[DIRECTORY_UPDATED] =
g_signal_new ("directory-updated",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (TrackerIndexingTreeClass,
- directory_updated),
- NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT,
+ directory_updated),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, G_TYPE_FILE);
g_type_class_add_private (object_class,
@@ -392,7 +392,7 @@ tracker_indexing_tree_add (TrackerIndexingTree *tree,
data->flags = flags;
g_signal_emit (tree, signals[DIRECTORY_UPDATED], 0,
- directory);
+ directory);
}
return;
}
@@ -581,8 +581,8 @@ parent_or_equals (GFile *file1,
static gboolean
indexing_tree_file_is_filtered (TrackerIndexingTree *tree,
- TrackerFilterType filter,
- GFile *file)
+ TrackerFilterType filter,
+ GFile *file)
{
TrackerIndexingTreePrivate *priv;
@@ -692,8 +692,8 @@ tracker_indexing_tree_parent_is_indexable (TrackerIndexingTree *tree,
while (children) {
if (indexing_tree_file_is_filtered (tree,
- TRACKER_FILTER_PARENT_DIRECTORY,
- children->data)) {
+ TRACKER_FILTER_PARENT_DIRECTORY,
+ children->data)) {
return FALSE;
}
@@ -716,7 +716,7 @@ tracker_indexing_tree_get_filter_hidden (TrackerIndexingTree *tree)
void
tracker_indexing_tree_set_filter_hidden (TrackerIndexingTree *tree,
- gboolean filter_hidden)
+ gboolean filter_hidden)
{
TrackerIndexingTreePrivate *priv;
@@ -730,8 +730,8 @@ tracker_indexing_tree_set_filter_hidden (TrackerIndexingTree *tree,
void
tracker_indexing_tree_set_default_policy (TrackerIndexingTree *tree,
- TrackerFilterType filter,
- TrackerFilterPolicy policy)
+ TrackerFilterType filter,
+ TrackerFilterPolicy policy)
{
TrackerIndexingTreePrivate *priv;
@@ -744,15 +744,15 @@ tracker_indexing_tree_set_default_policy (TrackerIndexingTree *tree,
TrackerFilterPolicy
tracker_indexing_tree_get_default_policy (TrackerIndexingTree *tree,
- TrackerFilterType filter)
+ TrackerFilterType filter)
{
TrackerIndexingTreePrivate *priv;
g_return_val_if_fail (TRACKER_IS_INDEXING_TREE (tree),
- TRACKER_FILTER_POLICY_DENY);
+ TRACKER_FILTER_POLICY_DENY);
g_return_val_if_fail (filter >= TRACKER_FILTER_FILE &&
- filter <= TRACKER_FILTER_PARENT_DIRECTORY,
- TRACKER_FILTER_POLICY_DENY);
+ filter <= TRACKER_FILTER_PARENT_DIRECTORY,
+ TRACKER_FILTER_POLICY_DENY);
priv = tree->priv;
return priv->policies[filter];
@@ -774,8 +774,8 @@ tracker_indexing_tree_get_default_policy (TrackerIndexingTree *tree,
**/
GFile *
tracker_indexing_tree_get_root (TrackerIndexingTree *tree,
- GFile *file,
- TrackerDirectoryFlags *directory_flags)
+ GFile *file,
+ TrackerDirectoryFlags *directory_flags)
{
TrackerIndexingTreePrivate *priv;
NodeData *data;
@@ -825,7 +825,7 @@ tracker_indexing_tree_file_is_root (TrackerIndexingTree *tree,
static gboolean
prepend_config_root (GNode *node,
- gpointer user_data)
+ gpointer user_data)
{
GList **list = user_data;
NodeData *data = node->data;
@@ -844,10 +844,10 @@ tracker_indexing_tree_list_roots (TrackerIndexingTree *tree)
priv = tree->priv;
g_node_traverse (priv->config_tree,
- G_POST_ORDER,
- G_TRAVERSE_ALL,
- -1,
- prepend_config_root,
- &nodes);
+ G_POST_ORDER,
+ G_TRAVERSE_ALL,
+ -1,
+ prepend_config_root,
+ &nodes);
return nodes;
}
diff --git a/src/libtracker-miner/tracker-indexing-tree.h b/src/libtracker-miner/tracker-indexing-tree.h
index f004dcd..107cc0d 100644
--- a/src/libtracker-miner/tracker-indexing-tree.h
+++ b/src/libtracker-miner/tracker-indexing-tree.h
@@ -52,11 +52,11 @@ struct _TrackerIndexingTreeClass
GObjectClass parent_class;
void (* directory_added) (TrackerIndexingTree *indexing_tree,
- GFile *directory);
+ GFile *directory);
void (* directory_removed) (TrackerIndexingTree *indexing_tree,
- GFile *directory);
+ GFile *directory);
void (* directory_updated) (TrackerIndexingTree *indexing_tree,
- GFile *directory);
+ GFile *directory);
};
GType tracker_indexing_tree_get_type (void) G_GNUC_CONST;
@@ -87,13 +87,13 @@ gboolean tracker_indexing_tree_parent_is_indexable (TrackerIndexingTree *tree
gboolean tracker_indexing_tree_get_filter_hidden (TrackerIndexingTree *tree);
void tracker_indexing_tree_set_filter_hidden (TrackerIndexingTree *tree,
- gboolean filter_hidden);
+ gboolean filter_hidden);
TrackerFilterPolicy tracker_indexing_tree_get_default_policy (TrackerIndexingTree *tree,
- TrackerFilterType filter);
+ TrackerFilterType filter);
void tracker_indexing_tree_set_default_policy (TrackerIndexingTree *tree,
- TrackerFilterType filter,
- TrackerFilterPolicy policy);
+ TrackerFilterType filter,
+ TrackerFilterPolicy policy);
GFile * tracker_indexing_tree_get_root (TrackerIndexingTree *tree,
GFile *file,
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 975b94f..ef346a3 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -259,18 +259,18 @@ static void item_moved_data_free (ItemMovedData
static void item_writeback_data_free (ItemWritebackData *data);
static void indexing_tree_directory_removed (TrackerIndexingTree *indexing_tree,
- GFile *directory,
- gpointer user_data);
+ GFile *directory,
+ gpointer user_data);
static void file_notifier_file_created (TrackerFileNotifier *notifier,
- GFile *file,
- gpointer user_data);
+ GFile *file,
+ gpointer user_data);
static void file_notifier_file_deleted (TrackerFileNotifier *notifier,
- GFile *file,
- gpointer user_data);
+ GFile *file,
+ gpointer user_data);
static void file_notifier_file_updated (TrackerFileNotifier *notifier,
- GFile *file,
+ GFile *file,
gboolean attributes_only,
- gpointer user_data);
+ gpointer user_data);
static void file_notifier_file_moved (TrackerFileNotifier *notifier,
GFile *source,
GFile *dest,
@@ -560,8 +560,8 @@ tracker_miner_fs_init (TrackerMinerFS *object)
/* Create the indexing tree */
priv->indexing_tree = tracker_indexing_tree_new ();
g_signal_connect (priv->indexing_tree, "directory-removed",
- G_CALLBACK (indexing_tree_directory_removed),
- object);
+ G_CALLBACK (indexing_tree_directory_removed),
+ object);
/* Create the file notifier */
priv->file_notifier = tracker_file_notifier_new (priv->indexing_tree);
@@ -2770,8 +2770,8 @@ writeback_pool_cancel_foreach (gpointer data,
static void
indexing_tree_directory_removed (TrackerIndexingTree *indexing_tree,
- GFile *directory,
- gpointer user_data)
+ GFile *directory,
+ gpointer user_data)
{
TrackerMinerFS *fs = user_data;
TrackerMinerFSPrivate *priv = fs->priv;
@@ -2876,8 +2876,8 @@ tracker_miner_fs_directory_remove_full (TrackerMinerFS *fs,
*/
trace_eq_push_tail ("DELETED", file, "on remove full");
tracker_priority_queue_add (fs->priv->items_deleted,
- g_object_ref (file),
- G_PRIORITY_DEFAULT);
+ g_object_ref (file),
+ G_PRIORITY_DEFAULT);
item_queue_handlers_set_up (fs);
}
diff --git a/src/libtracker-miner/tracker-miner-fs.h b/src/libtracker-miner/tracker-miner-fs.h
index 40ee876..9e300df 100644
--- a/src/libtracker-miner/tracker-miner-fs.h
+++ b/src/libtracker-miner/tracker-miner-fs.h
@@ -117,7 +117,7 @@ void tracker_miner_fs_check_file_with_priority (TrackerMinerFS
gboolean check_parents);
void tracker_miner_fs_check_directory_with_priority (TrackerMinerFS *fs,
GFile *file,
- gint priority,
+ gint priority,
gboolean check_parents);
void tracker_miner_fs_check_file (TrackerMinerFS *fs,
GFile *file,
diff --git a/src/libtracker-miner/tracker-monitor.h b/src/libtracker-miner/tracker-monitor.h
index 93b30ad..132a530 100644
--- a/src/libtracker-miner/tracker-monitor.h
+++ b/src/libtracker-miner/tracker-monitor.h
@@ -55,7 +55,7 @@ TrackerMonitor *tracker_monitor_new (void);
TrackerIndexingTree * tracker_monitor_get_indexing_tree (TrackerMonitor *monitor);
void tracker_monitor_set_indexing_tree (TrackerMonitor *monitor,
- TrackerIndexingTree *tree);
+ TrackerIndexingTree *tree);
gboolean tracker_monitor_get_enabled (TrackerMonitor *monitor);
void tracker_monitor_set_enabled (TrackerMonitor *monitor,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]