diff options
Diffstat (limited to 'src/main/extractor_plugins.c')
-rw-r--r-- | src/main/extractor_plugins.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/main/extractor_plugins.c b/src/main/extractor_plugins.c index 444c051..290d511 100644 --- a/src/main/extractor_plugins.c +++ b/src/main/extractor_plugins.c | |||
@@ -120,14 +120,6 @@ get_symbol_with_prefix (void *lib_handle, | |||
120 | int | 120 | int |
121 | EXTRACTOR_plugin_load_ (struct EXTRACTOR_PluginList *plugin) | 121 | EXTRACTOR_plugin_load_ (struct EXTRACTOR_PluginList *plugin) |
122 | { | 122 | { |
123 | |||
124 | LOG ("In EXTRACTOR_plugin_load_"); | ||
125 | |||
126 | FILE *f; | ||
127 | f = fopen("debug.txt", "a+"); | ||
128 | fprintf(f, "EXTRACTOR_plugin_load_\n"); | ||
129 | fclose(f); | ||
130 | |||
131 | #if WINDOWS | 123 | #if WINDOWS |
132 | wchar_t wlibname[4097]; | 124 | wchar_t wlibname[4097]; |
133 | char llibname[4097]; | 125 | char llibname[4097]; |
@@ -145,11 +137,6 @@ LOG ("In EXTRACTOR_plugin_load_"); | |||
145 | plugin->flags = EXTRACTOR_OPTION_DISABLED; | 137 | plugin->flags = EXTRACTOR_OPTION_DISABLED; |
146 | return -1; | 138 | return -1; |
147 | } | 139 | } |
148 | |||
149 | LOG ("Loading plugin `%s' \n", plugin->short_libname); | ||
150 | lt_dlclose (plugin->libraryHandle); | ||
151 | |||
152 | |||
153 | lt_dladvise_init (&advise); | 140 | lt_dladvise_init (&advise); |
154 | lt_dladvise_ext (&advise); | 141 | lt_dladvise_ext (&advise); |
155 | lt_dladvise_local (&advise); | 142 | lt_dladvise_local (&advise); |
@@ -164,11 +151,6 @@ LOG ("In EXTRACTOR_plugin_load_"); | |||
164 | LOG ("Loading `%s' plugin failed: %s\n", | 151 | LOG ("Loading `%s' plugin failed: %s\n", |
165 | plugin->short_libname, | 152 | plugin->short_libname, |
166 | "can't convert plugin name to local encoding"); | 153 | "can't convert plugin name to local encoding"); |
167 | FILE *f; | ||
168 | f = fopen("debug.txt", "a+"); | ||
169 | fprintf(f, "Loading `%s' plugin failed!\n", | ||
170 | plugin->short_libname); | ||
171 | fclose(f); | ||
172 | free (plugin->libname); | 154 | free (plugin->libname); |
173 | plugin->libname = NULL; | 155 | plugin->libname = NULL; |
174 | plugin->flags = EXTRACTOR_OPTION_DISABLED; | 156 | plugin->flags = EXTRACTOR_OPTION_DISABLED; |
@@ -207,15 +189,6 @@ LOG ("In EXTRACTOR_plugin_load_"); | |||
207 | plugin->flags = EXTRACTOR_OPTION_DISABLED; | 189 | plugin->flags = EXTRACTOR_OPTION_DISABLED; |
208 | return -1; | 190 | return -1; |
209 | } | 191 | } |
210 | |||
211 | LOG ("Loaded plugin `%s' \n", plugin->short_libname); | ||
212 | |||
213 | |||
214 | f = fopen("debug.txt", "a+"); | ||
215 | fprintf(f, "Loaded plugin `%s' \n", plugin->short_libname); | ||
216 | fclose(f); | ||
217 | |||
218 | |||
219 | return 0; | 192 | return 0; |
220 | } | 193 | } |
221 | 194 | ||
@@ -238,12 +211,6 @@ EXTRACTOR_plugin_add (struct EXTRACTOR_PluginList *prev, | |||
238 | struct EXTRACTOR_PluginList *plugin; | 211 | struct EXTRACTOR_PluginList *plugin; |
239 | struct EXTRACTOR_PluginList *pos; | 212 | struct EXTRACTOR_PluginList *pos; |
240 | char *libname; | 213 | char *libname; |
241 | |||
242 | FILE *f; | ||
243 | f = fopen("debug.txt", "a+"); | ||
244 | fprintf(f, "EXTRACTOR_plugin_add\n"); | ||
245 | fclose(f); | ||
246 | |||
247 | 214 | ||
248 | for (pos = prev; NULL != pos; pos = pos->next) | 215 | for (pos = prev; NULL != pos; pos = pos->next) |
249 | if (0 == strcmp (pos->short_libname, library)) | 216 | if (0 == strcmp (pos->short_libname, library)) |
@@ -377,9 +344,6 @@ EXTRACTOR_plugin_remove (struct EXTRACTOR_PluginList *prev, | |||
377 | struct EXTRACTOR_PluginList *pos; | 344 | struct EXTRACTOR_PluginList *pos; |
378 | struct EXTRACTOR_PluginList *first; | 345 | struct EXTRACTOR_PluginList *first; |
379 | 346 | ||
380 | |||
381 | |||
382 | |||
383 | pos = prev; | 347 | pos = prev; |
384 | first = prev; | 348 | first = prev; |
385 | while ( (NULL != pos) && | 349 | while ( (NULL != pos) && |
@@ -394,13 +358,6 @@ EXTRACTOR_plugin_remove (struct EXTRACTOR_PluginList *prev, | |||
394 | library); | 358 | library); |
395 | return first; | 359 | return first; |
396 | } | 360 | } |
397 | |||
398 | FILE *f; | ||
399 | f = fopen("debug.txt", "a+"); | ||
400 | fprintf(f, "Closoing %s\n",pos->short_libname); | ||
401 | fclose(f); | ||
402 | |||
403 | |||
404 | /* found, close library */ | 361 | /* found, close library */ |
405 | if (first == pos) | 362 | if (first == pos) |
406 | first = pos->next; | 363 | first = pos->next; |