/usr/include/tracker-1.0/libtracker-miner/tracker-indexing-tree.h is in libtracker-miner-1.0-dev 1.6.2-0ubuntu1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | /*
* Copyright (C) 2011, Nokia <ivan.frade@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* Author: Carlos Garnacho <carlos@lanedo.com>
*/
#ifndef __TRACKER_INDEXING_TREE_H__
#define __TRACKER_INDEXING_TREE_H__
#if !defined (__LIBTRACKER_MINER_H_INSIDE__) && !defined (TRACKER_COMPILATION)
#error "Only <libtracker-miner/tracker-miner.h> can be included directly."
#endif
#include <gio/gio.h>
#include "tracker-miner-enums.h"
G_BEGIN_DECLS
#define TRACKER_TYPE_INDEXING_TREE (tracker_indexing_tree_get_type())
#define TRACKER_INDEXING_TREE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TRACKER_TYPE_INDEXING_TREE, TrackerIndexingTree))
#define TRACKER_INDEXING_TREE_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), TRACKER_TYPE_INDEXING_TREE, TrackerIndexingTreeClass))
#define TRACKER_IS_INDEXING_TREE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TRACKER_TYPE_INDEXING_TREE))
#define TRACKER_IS_INDEXING_TREE_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), TRACKER_TYPE_INDEXING_TREE))
#define TRACKER_INDEXING_TREE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TRACKER_TYPE_INDEXING_TREE, TrackerIndexingTreeClass))
/**
* TrackerIndexingTree:
*
* Base object used to configure indexing within #TrackerMinerFS items.
*/
typedef struct _TrackerIndexingTree TrackerIndexingTree;
struct _TrackerIndexingTree {
GObject parent_instance;
gpointer priv;
};
/**
* TrackerIndexingTreeClass:
* @parent_class: parent object class
* @directory_added: Called when a directory is added.
* @directory_removed: Called when a directory is removed.
* @directory_updated: Called when a directory is updated.
* @padding: Reserved for future API improvements.
*
* Class for the #TrackerIndexingTree.
*/
typedef struct {
GObjectClass parent_class;
void (* directory_added) (TrackerIndexingTree *indexing_tree,
GFile *directory);
void (* directory_removed) (TrackerIndexingTree *indexing_tree,
GFile *directory);
void (* directory_updated) (TrackerIndexingTree *indexing_tree,
GFile *directory);
/* <Private> */
gpointer padding[10];
} TrackerIndexingTreeClass;
GType tracker_indexing_tree_get_type (void) G_GNUC_CONST;
TrackerIndexingTree * tracker_indexing_tree_new (void);
TrackerIndexingTree * tracker_indexing_tree_new_with_root (GFile *root);
void tracker_indexing_tree_add (TrackerIndexingTree *tree,
GFile *directory,
TrackerDirectoryFlags flags);
void tracker_indexing_tree_remove (TrackerIndexingTree *tree,
GFile *directory);
void tracker_indexing_tree_add_filter (TrackerIndexingTree *tree,
TrackerFilterType filter,
const gchar *glob_string);
void tracker_indexing_tree_clear_filters (TrackerIndexingTree *tree,
TrackerFilterType type);
gboolean tracker_indexing_tree_file_matches_filter (TrackerIndexingTree *tree,
TrackerFilterType type,
GFile *file);
gboolean tracker_indexing_tree_file_is_indexable (TrackerIndexingTree *tree,
GFile *file,
GFileType file_type);
gboolean tracker_indexing_tree_parent_is_indexable (TrackerIndexingTree *tree,
GFile *parent,
GList *children);
gboolean tracker_indexing_tree_get_filter_hidden (TrackerIndexingTree *tree);
void tracker_indexing_tree_set_filter_hidden (TrackerIndexingTree *tree,
gboolean filter_hidden);
TrackerFilterPolicy tracker_indexing_tree_get_default_policy (TrackerIndexingTree *tree,
TrackerFilterType filter);
void tracker_indexing_tree_set_default_policy (TrackerIndexingTree *tree,
TrackerFilterType filter,
TrackerFilterPolicy policy);
GFile * tracker_indexing_tree_get_root (TrackerIndexingTree *tree,
GFile *file,
TrackerDirectoryFlags *directory_flags);
GFile * tracker_indexing_tree_get_master_root (TrackerIndexingTree *tree);
gboolean tracker_indexing_tree_file_is_root (TrackerIndexingTree *tree,
GFile *file);
GList * tracker_indexing_tree_list_roots (TrackerIndexingTree *tree);
G_END_DECLS
#endif /* __TRACKER_INDEXING_TREE_H__ */
|