aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor_plugpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/extractor_plugpath.c')
-rw-r--r--src/main/extractor_plugpath.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/main/extractor_plugpath.c b/src/main/extractor_plugpath.c
index 47cb67e..af3c94a 100644
--- a/src/main/extractor_plugpath.c
+++ b/src/main/extractor_plugpath.c
@@ -28,15 +28,22 @@
28#include "extractor.h" 28#include "extractor.h"
29#include <dirent.h> 29#include <dirent.h>
30#include <sys/types.h> 30#include <sys/types.h>
31#ifndef WINDOWS
32#include <sys/wait.h>
33#include <sys/shm.h>
34#endif
35#include <signal.h> 31#include <signal.h>
36#include <ltdl.h> 32#include <ltdl.h>
37 33
38#include "extractor_plugpath.h" 34#include "extractor_plugpath.h"
39 35
36
37/**
38 * Function to call on paths.
39 *
40 * @param cls closure
41 * @param path a directory path
42 */
43typedef void (*EXTRACTOR_PathProcessor) (void *cls,
44 const char *path);
45
46
40/** 47/**
41 * Remove a trailing '/bin/' from 'in' (if present). 48 * Remove a trailing '/bin/' from 'in' (if present).
42 * 49 *
@@ -392,9 +399,9 @@ append_to_dir (const char *path,
392 * @param pp function to call for each path 399 * @param pp function to call for each path
393 * @param pp_cls cls argument for pp. 400 * @param pp_cls cls argument for pp.
394 */ 401 */
395void 402static void
396EXTRACTOR_get_installation_paths_ (EXTRACTOR_PathProcessor pp, 403get_installation_paths (EXTRACTOR_PathProcessor pp,
397 void *pp_cls) 404 void *pp_cls)
398{ 405{
399 const char *p; 406 const char *p;
400 char *path; 407 char *path;