| tracker-data-provider.h | | tracker-data-provider.h | |
| | | | |
| skipping to change at line 52 | | skipping to change at line 52 | |
| * TrackerDataProvider: | | * TrackerDataProvider: | |
| * | | * | |
| * An interface to enumerate URIs and feed the data to Tracker. | | * An interface to enumerate URIs and feed the data to Tracker. | |
| **/ | | **/ | |
| typedef struct _TrackerDataProvider TrackerDataProvider; | | typedef struct _TrackerDataProvider TrackerDataProvider; | |
| typedef struct _TrackerDataProviderIface TrackerDataProviderIface; | | typedef struct _TrackerDataProviderIface TrackerDataProviderIface; | |
| | | | |
| /** | | /** | |
| * TrackerDataProviderIface: | | * TrackerDataProviderIface: | |
| * @g_iface: Parent interface type. | | * @g_iface: Parent interface type. | |
|
| * @get_crawl_flags: Called when before data_provider starts to know how | | | |
| * to enumerate. | | | |
| * @set_crawl_flags: Called when setting the flags an data_provider | | | |
| * should use. | | | |
| * @begin: Called when the data_provider is synchronously | | * @begin: Called when the data_provider is synchronously | |
| * opening and starting the iteration of a given location. | | * opening and starting the iteration of a given location. | |
| * @begin_async: Called when the data_provider is synchronously | | * @begin_async: Called when the data_provider is synchronously | |
| * opening and starting the iteration of a given location. Completed | | * opening and starting the iteration of a given location. Completed | |
| * using @begin_finish. | | * using @begin_finish. | |
| * @begin_finish: Called when the data_provider is completing the | | * @begin_finish: Called when the data_provider is completing the | |
| * asynchronous operation provided by @begin_async. | | * asynchronous operation provided by @begin_async. | |
| * @end: Called when the data_provider is synchronously | | * @end: Called when the data_provider is synchronously | |
| * closing and cleaning up the iteration of a given location. | | * closing and cleaning up the iteration of a given location. | |
| * @end_async: Called when the data_provider is asynchronously | | * @end_async: Called when the data_provider is asynchronously | |
| | | | |
| skipping to change at line 77 | | skipping to change at line 73 | |
| * Completed using @end_finish. | | * Completed using @end_finish. | |
| * @end_finish: Called when the data_provider is completing the | | * @end_finish: Called when the data_provider is completing the | |
| * asynchronous operation provided by @end_async. | | * asynchronous operation provided by @end_async. | |
| * | | * | |
| * Virtual methods left to implement. | | * Virtual methods left to implement. | |
| **/ | | **/ | |
| struct _TrackerDataProviderIface { | | struct _TrackerDataProviderIface { | |
| GTypeInterface g_iface; | | GTypeInterface g_iface; | |
| | | | |
| /* Virtual Table */ | | /* Virtual Table */ | |
|
| TrackerCrawlFlags (* get_crawl_flags) (TrackerDataProvider *da | | | |
| ta_provider); | | | |
| void (* set_crawl_flags) (TrackerDataProvider *da | | | |
| ta_provider, | | | |
| TrackerCrawlFlags fl | | | |
| ags); | | | |
| | | | |
| /* Start the data_provider for a given location, attributes and flag
s */ | | /* Start the data_provider for a given location, attributes and flag
s */ | |
|
| TrackerEnumerator * (* begin) (TrackerDataProvider *da | | TrackerEnumerator * (* begin) (TrackerDataProvider | |
| ta_provider, | | *data_provider, | |
| GFile *ur | | GFile | |
| l, | | *url, | |
| const gchar *at | | const gchar | |
| tributes, | | *attributes, | |
| GFileQueryInfoFlags fl | | TrackerDirectoryFlags | |
| ags, | | flags, | |
| GCancellable *ca | | GCancellable | |
| ncellable, | | *cancellable, | |
| GError **er | | GError | |
| ror); | | **error); | |
| void (* begin_async) (TrackerDataProvider *da | | void (* begin_async) (TrackerDataProvider | |
| ta_provider, | | *data_provider, | |
| GFile *ur | | GFile | |
| l, | | *url, | |
| const gchar *at | | const gchar | |
| tributes, | | *attributes, | |
| GFileQueryInfoFlags fl | | TrackerDirectoryFlags | |
| ags, | | flags, | |
| gint io | | gint | |
| _priority, | | io_priority, | |
| GCancellable *ca | | GCancellable | |
| ncellable, | | *cancellable, | |
| GAsyncReadyCallback ca | | GAsyncReadyCallback | |
| llback, | | callback, | |
| gpointer us | | gpointer | |
| er_data); | | user_data); | |
| TrackerEnumerator * (* begin_finish) (TrackerDataProvider *da | | TrackerEnumerator * (* begin_finish) (TrackerDataProvider | |
| ta_provider, | | *data_provider, | |
| GAsyncResult *re | | GAsyncResult | |
| sult, | | *result, | |
| GError **er | | GError | |
| ror); | | **error); | |
| | | | |
| /* Close the given location */ | | /* Close the given location */ | |
|
| gboolean (* end) (TrackerDataProvider *da | | gboolean (* end) (TrackerDataProvider | |
| ta_provider, | | *data_provider, | |
| TrackerEnumerator *en | | TrackerEnumerator | |
| umerator, | | *enumerator, | |
| GCancellable *ca | | GCancellable | |
| ncellable, | | *cancellable, | |
| GError **er | | GError | |
| ror); | | **error); | |
| void (* end_async) (TrackerDataProvider *da | | void (* end_async) (TrackerDataProvider | |
| ta_provider, | | *data_provider, | |
| TrackerEnumerator *en | | TrackerEnumerator | |
| umerator, | | *enumerator, | |
| gint io | | gint | |
| _priority, | | io_priority, | |
| GCancellable *ca | | GCancellable | |
| ncellable, | | *cancellable, | |
| GAsyncReadyCallback ca | | GAsyncReadyCallback | |
| llback, | | callback, | |
| gpointer us | | gpointer | |
| er_data); | | user_data); | |
| gboolean (* end_finish) (TrackerDataProvider *da | | gboolean (* end_finish) (TrackerDataProvider | |
| ta_provider, | | *data_provider, | |
| GAsyncResult *re | | GAsyncResult | |
| sult, | | *result, | |
| GError **er | | GError | |
| ror); | | **error); | |
| | | | |
| /*< private >*/ | | /*< private >*/ | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| void (*_tracker_reserved1) (void); | | void (*_tracker_reserved1) (void); | |
| void (*_tracker_reserved2) (void); | | void (*_tracker_reserved2) (void); | |
| void (*_tracker_reserved3) (void); | | void (*_tracker_reserved3) (void); | |
| void (*_tracker_reserved4) (void); | | void (*_tracker_reserved4) (void); | |
| void (*_tracker_reserved5) (void); | | void (*_tracker_reserved5) (void); | |
| void (*_tracker_reserved6) (void); | | void (*_tracker_reserved6) (void); | |
| void (*_tracker_reserved7) (void); | | void (*_tracker_reserved7) (void); | |
| void (*_tracker_reserved8) (void); | | void (*_tracker_reserved8) (void); | |
| }; | | }; | |
| | | | |
| GType tracker_data_provider_get_type (void) G_GNUC_CONS
T; | | GType tracker_data_provider_get_type (void) G_GNUC_CONS
T; | |
|
| | | TrackerEnumerator *tracker_data_provider_begin (TrackerDataProvid | |
| TrackerCrawlFlags tracker_data_provider_get_crawl_flags (TrackerDataProvid | | er *data_provider, | |
| er *data_provider); | | GFile | |
| void tracker_data_provider_set_crawl_flags (TrackerDataProvid | | *url, | |
| er *data_provider, | | const gchar | |
| TrackerCrawlFlags | | *attributes, | |
| flags); | | TrackerDirectoryF | |
| TrackerEnumerator *tracker_data_provider_begin (TrackerDataProvid | | lags flags, | |
| er *data_provider, | | GCancellable | |
| GFile | | *cancellable, | |
| *url, | | GError | |
| const gchar | | **error); | |
| *attributes, | | void tracker_data_provider_begin_async (TrackerDataProvid | |
| GFileQueryInfoFla | | er *data_provider, | |
| gs flags, | | GFile | |
| GCancellable | | *url, | |
| *cancellable, | | const gchar | |
| GError | | *attributes, | |
| **error); | | TrackerDirectoryF | |
| void tracker_data_provider_begin_async (TrackerDataProvid | | lags flags, | |
| er *data_provider, | | gint | |
| GFile | | io_priority, | |
| *url, | | GCancellable | |
| const gchar | | *cancellable, | |
| *attributes, | | GAsyncReadyCallba | |
| GFileQueryInfoFla | | ck callback, | |
| gs flags, | | gpointer | |
| gint | | user_data); | |
| io_priority, | | TrackerEnumerator *tracker_data_provider_begin_finish (TrackerDataProvid | |
| GCancellable | | er *data_provider, | |
| *cancellable, | | GAsyncResult | |
| GAsyncReadyCallba | | *result, | |
| ck callback, | | GError | |
| gpointer | | **error); | |
| user_data); | | gboolean tracker_data_provider_end (TrackerDataProvid | |
| TrackerEnumerator *tracker_data_provider_begin_finish (TrackerDataProvid | | er *data_provider, | |
| er *data_provider, | | TrackerEnumerator | |
| GAsyncResult | | *enumerator, | |
| *result, | | GCancellable | |
| GError | | *cancellable, | |
| **error); | | GError | |
| gboolean tracker_data_provider_end (TrackerDataProvid | | **error); | |
| er *data_provider, | | void tracker_data_provider_end_async (TrackerDataProvid | |
| TrackerEnumerator | | er *data_provider, | |
| *enumerator, | | TrackerEnumerator | |
| GCancellable | | *enumerator, | |
| *cancellable, | | gint | |
| GError | | io_priority, | |
| **error); | | GCancellable | |
| void tracker_data_provider_end_async (TrackerDataProvid | | *cancellable, | |
| er *data_provider, | | GAsyncReadyCallba | |
| TrackerEnumerator | | ck callback, | |
| *enumerator, | | gpointer | |
| gint | | user_data); | |
| io_priority, | | gboolean tracker_data_provider_end_finish (TrackerDataProvid | |
| GCancellable | | er *data_provider, | |
| *cancellable, | | GAsyncResult | |
| GAsyncReadyCallba | | *result, | |
| ck callback, | | GError | |
| gpointer | | **error); | |
| user_data); | | | |
| gboolean tracker_data_provider_end_finish (TrackerDataProvid | | | |
| er *data_provider, | | | |
| GAsyncResult | | | |
| *result, | | | |
| GError | | | |
| **error); | | | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __LIBTRACKER_MINER_DATA_PROVIDER_H__ */ | | #endif /* __LIBTRACKER_MINER_DATA_PROVIDER_H__ */ | |
| | | | |
End of changes. 5 change blocks. |
| 137 lines changed or deleted | | 120 lines changed or added | |
|
| tracker-miner-enum-types.h | | tracker-miner-enum-types.h | |
| | | | |
| skipping to change at line 21 | | skipping to change at line 21 | |
| | | | |
| /* enumerations from "tracker-miner-enums.h" */ | | /* enumerations from "tracker-miner-enums.h" */ | |
| GType tracker_directory_flags_get_type (void) G_GNUC_CONST; | | GType tracker_directory_flags_get_type (void) G_GNUC_CONST; | |
| #define TRACKER_TYPE_DIRECTORY_FLAGS (tracker_directory_flags_get_type ()) | | #define TRACKER_TYPE_DIRECTORY_FLAGS (tracker_directory_flags_get_type ()) | |
| GType tracker_filter_type_get_type (void) G_GNUC_CONST; | | GType tracker_filter_type_get_type (void) G_GNUC_CONST; | |
| #define TRACKER_TYPE_FILTER_TYPE (tracker_filter_type_get_type ()) | | #define TRACKER_TYPE_FILTER_TYPE (tracker_filter_type_get_type ()) | |
| GType tracker_filter_policy_get_type (void) G_GNUC_CONST; | | GType tracker_filter_policy_get_type (void) G_GNUC_CONST; | |
| #define TRACKER_TYPE_FILTER_POLICY (tracker_filter_policy_get_type ()) | | #define TRACKER_TYPE_FILTER_POLICY (tracker_filter_policy_get_type ()) | |
| GType tracker_network_type_get_type (void) G_GNUC_CONST; | | GType tracker_network_type_get_type (void) G_GNUC_CONST; | |
| #define TRACKER_TYPE_NETWORK_TYPE (tracker_network_type_get_type ()) | | #define TRACKER_TYPE_NETWORK_TYPE (tracker_network_type_get_type ()) | |
|
| GType tracker_crawl_flags_get_type (void) G_GNUC_CONST; | | | |
| #define TRACKER_TYPE_CRAWL_FLAGS (tracker_crawl_flags_get_type ()) | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __TRACKER_ENUMS_TYPES_H__ */ | | #endif /* __TRACKER_ENUMS_TYPES_H__ */ | |
| | | | |
| /* Generated data ends here */ | | /* Generated data ends here */ | |
| | | | |
End of changes. 1 change blocks. |
| 2 lines changed or deleted | | 0 lines changed or added | |
|
| tracker-miner-enums.h | | tracker-miner-enums.h | |
| | | | |
| skipping to change at line 40 | | skipping to change at line 40 | |
| * @short_description: Common enumerations | | * @short_description: Common enumerations | |
| * @include: libtracker-miner/tracker-miner-enums.h | | * @include: libtracker-miner/tracker-miner-enums.h | |
| * | | * | |
| * Common enumeration types used in libtracker-miner. | | * Common enumeration types used in libtracker-miner. | |
| **/ | | **/ | |
| | | | |
| /** | | /** | |
| * TrackerDirectoryFlags: | | * TrackerDirectoryFlags: | |
| * @TRACKER_DIRECTORY_FLAG_NONE: No flags. | | * @TRACKER_DIRECTORY_FLAG_NONE: No flags. | |
| * @TRACKER_DIRECTORY_FLAG_RECURSE: Should recurse in the directory. | | * @TRACKER_DIRECTORY_FLAG_RECURSE: Should recurse in the directory. | |
|
| * @TRACKER_DIRECTORY_FLAG_CHECK_MTIME: Should check mtimes of items in the | | * @TRACKER_DIRECTORY_FLAG_CHECK_MTIME: Should check mtimes of items | |
| directory. | | * in the directory. | |
| * @TRACKER_DIRECTORY_FLAG_MONITOR: Should setup monitors in the items foun | | * @TRACKER_DIRECTORY_FLAG_MONITOR: Should setup monitors in the items | |
| d in the directory. | | * found in the directory. | |
| * @TRACKER_DIRECTORY_FLAG_IGNORE: Should ignore the directory contents. | | * @TRACKER_DIRECTORY_FLAG_IGNORE: Should ignore the directory | |
| * @TRACKER_DIRECTORY_FLAG_PRESERVE: Should preserve items in the directory | | * contents. | |
| even if the directory gets removed. | | * @TRACKER_DIRECTORY_FLAG_PRESERVE: Should preserve items in the | |
| * @TRACKER_DIRECTORY_FLAG_PRIORITY: Internally a priority queue is used an | | * directory even if the directory gets removed. | |
| d this flag makes sure the directory is given a priority over other directo | | * @TRACKER_DIRECTORY_FLAG_PRIORITY: Internally a priority queue is | |
| ries queued. | | * used and this flag makes sure the directory is given a priority | |
| | | * over other directories queued. | |
| | | * @TRACKER_DIRECTORY_FLAG_NO_STAT: For cases where the content being | |
| | | * crawled by the #TrackerEnumerator is not local (e.g. it's on a | |
| | | * server somewhere), use the #TRACKER_DIRECTORY_FLAG_NO_STAT flag. | |
| | | * The default is to use stat() and assume we're mining a local or | |
| | | * mounted file system. | |
| * | | * | |
|
| * Flags used when adding a new directory to be indexed in the #TrackerInde | | * Flags used when adding a new directory to be indexed in the | |
| xingTree. | | * #TrackerIndexingTree, #TrackerDataProvider and #TrackerEnumerator. | |
| */ | | */ | |
| typedef enum { | | typedef enum { | |
|
| TRACKER_DIRECTORY_FLAG_NONE = 0, | | TRACKER_DIRECTORY_FLAG_NONE = 0, | |
| TRACKER_DIRECTORY_FLAG_RECURSE = 1 << 1, | | TRACKER_DIRECTORY_FLAG_RECURSE = 1 << 1, | |
| TRACKER_DIRECTORY_FLAG_CHECK_MTIME = 1 << 2, | | TRACKER_DIRECTORY_FLAG_CHECK_MTIME = 1 << 2, | |
| TRACKER_DIRECTORY_FLAG_MONITOR = 1 << 3, | | TRACKER_DIRECTORY_FLAG_MONITOR = 1 << 3, | |
| TRACKER_DIRECTORY_FLAG_IGNORE = 1 << 4, | | TRACKER_DIRECTORY_FLAG_IGNORE = 1 << 4, | |
| TRACKER_DIRECTORY_FLAG_PRESERVE = 1 << 5, | | TRACKER_DIRECTORY_FLAG_PRESERVE = 1 << 5, | |
| TRACKER_DIRECTORY_FLAG_PRIORITY = 1 << 6 | | TRACKER_DIRECTORY_FLAG_PRIORITY = 1 << 6, | |
| | | TRACKER_DIRECTORY_FLAG_NO_STAT = 1 << 7 | |
| } TrackerDirectoryFlags; | | } TrackerDirectoryFlags; | |
| | | | |
| /** | | /** | |
| * TrackerFilterType: | | * TrackerFilterType: | |
| * @TRACKER_FILTER_FILE: All files matching this filter will be filtered ou
t. | | * @TRACKER_FILTER_FILE: All files matching this filter will be filtered ou
t. | |
| * @TRACKER_FILTER_DIRECTORY: All directories matching this filter will be
filtered out. | | * @TRACKER_FILTER_DIRECTORY: All directories matching this filter will be
filtered out. | |
| * @TRACKER_FILTER_PARENT_DIRECTORY: All files in directories matching this
filter will be filtered out. | | * @TRACKER_FILTER_PARENT_DIRECTORY: All files in directories matching this
filter will be filtered out. | |
| * | | * | |
| * Flags used when adding a new filter in the #TrackerIndexingTree. | | * Flags used when adding a new filter in the #TrackerIndexingTree. | |
| */ | | */ | |
| | | | |
| skipping to change at line 112 | | skipping to change at line 125 | |
| **/ | | **/ | |
| typedef enum { | | typedef enum { | |
| TRACKER_NETWORK_TYPE_NONE, | | TRACKER_NETWORK_TYPE_NONE, | |
| TRACKER_NETWORK_TYPE_UNKNOWN, | | TRACKER_NETWORK_TYPE_UNKNOWN, | |
| TRACKER_NETWORK_TYPE_GPRS, | | TRACKER_NETWORK_TYPE_GPRS, | |
| TRACKER_NETWORK_TYPE_EDGE, | | TRACKER_NETWORK_TYPE_EDGE, | |
| TRACKER_NETWORK_TYPE_3G, | | TRACKER_NETWORK_TYPE_3G, | |
| TRACKER_NETWORK_TYPE_LAN | | TRACKER_NETWORK_TYPE_LAN | |
| } TrackerNetworkType; | | } TrackerNetworkType; | |
| | | | |
|
| /** | | | |
| * TrackerCrawlFlags: | | | |
| * @TRACKER_CRAWL_FLAG_NONE: No flags. | | | |
| * @TRACKER_CRAWL_FLAG_NO_STAT: For cases where the content being crawled b | | | |
| y the | | | |
| * #TrackerEnumerator is not local (e.g. it's on a server somewhere), | | | |
| * use the #TRACKER_CRAWL_FLAG_NO_STAT flag. The default is to use | | | |
| * stat() and assume we're mining a local or mounted file system. | | | |
| * @TRACKER_CRAWL_FLAG_FOLLOW_SYMLINKS: The enumerator should follow | | | |
| * symlinks. This is disabled by default because it's easy for Tracker | | | |
| * to get into recursive loop situations with symlinks. For those | | | |
| * using interesting scenarios like git-annex or software heavily | | | |
| * using symlinks (and properly) this is for you. | | | |
| * | | | |
| * Flags used when crawling directory structures. This can be | | | |
| * dependent on the #TrackerEnumerator employed at the time of course. | | | |
| */ | | | |
| typedef enum { | | | |
| TRACKER_CRAWL_FLAG_NONE = 0, | | | |
| TRACKER_CRAWL_FLAG_NO_STAT = 1 << 1, | | | |
| TRACKER_CRAWL_FLAG_FOLLOW_SYMLINKS = 1 << 2, | | | |
| } TrackerCrawlFlags; | | | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __TRACKER_MINER_ENUMS_H__ */ | | #endif /* __TRACKER_MINER_ENUMS_H__ */ | |
| | | | |
End of changes. 4 change blocks. |
| 42 lines changed or deleted | | 26 lines changed or added | |
|