diff options
Diffstat (limited to 'src/main/extractor_plugins.h')
-rw-r--r-- | src/main/extractor_plugins.h | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/src/main/extractor_plugins.h b/src/main/extractor_plugins.h index 2fd57d7..0903f55 100644 --- a/src/main/extractor_plugins.h +++ b/src/main/extractor_plugins.h | |||
@@ -34,8 +34,8 @@ | |||
34 | 34 | ||
35 | /** | 35 | /** |
36 | * Linked list of extractor plugins. An application builds this list | 36 | * Linked list of extractor plugins. An application builds this list |
37 | * by telling libextractor to load various keyword-extraction | 37 | * by telling libextractor to load various meta data extraction |
38 | * plugins. Libraries can also be unloaded (removed from this list, | 38 | * plugins. Plugins can also be unloaded (removed from this list, |
39 | * see EXTRACTOR_plugin_remove). | 39 | * see EXTRACTOR_plugin_remove). |
40 | */ | 40 | */ |
41 | struct EXTRACTOR_PluginList | 41 | struct EXTRACTOR_PluginList |
@@ -83,44 +83,22 @@ struct EXTRACTOR_PluginList | |||
83 | struct EXTRACTOR_Channel *channel; | 83 | struct EXTRACTOR_Channel *channel; |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * Flags to control how the plugin is executed. | 86 | * A position this plugin wants us to seek to. -1 if it's finished. |
87 | */ | 87 | * Starts at 0. |
88 | enum EXTRACTOR_Options flags; | ||
89 | |||
90 | #if WINDOWS | ||
91 | /** | ||
92 | * Page size. Mmap offset is a multiple of this number. | ||
93 | */ | ||
94 | DWORD allocation_granularity; | ||
95 | #else | ||
96 | /** | ||
97 | * Page size. Mmap offset is a multiple of this number. | ||
98 | */ | 88 | */ |
99 | long allocation_granularity; | 89 | int64_t seek_request; |
100 | #endif | ||
101 | 90 | ||
102 | /** | 91 | /** |
103 | * A position this plugin wants us to seek to. -1 if it's finished. | 92 | * Flags to control how the plugin is executed. |
104 | * Starts at 0; | ||
105 | */ | 93 | */ |
106 | int64_t seek_request; | 94 | enum EXTRACTOR_Options flags; |
107 | 95 | ||
108 | /** | 96 | /** |
109 | * Is this plugin finished extracting for this round? | 97 | * Is this plugin finished extracting for this round? |
110 | * 0: no, 1: yes | 98 | * 0: no, 1: yes |
111 | */ | 99 | */ |
112 | int round_finished; | 100 | int round_finished; |
113 | |||
114 | /** | ||
115 | * Mode of operation. One of the OPMODE_* constants | ||
116 | */ | ||
117 | uint8_t operation_mode; | ||
118 | 101 | ||
119 | /** | ||
120 | * 1 if plugin is currently in a recursive process_requests() call, | ||
121 | * 0 otherwise | ||
122 | */ | ||
123 | int waiting_for_update; | ||
124 | }; | 102 | }; |
125 | 103 | ||
126 | 104 | ||