aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor_plugin_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/extractor_plugin_main.c')
-rw-r--r--src/main/extractor_plugin_main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/extractor_plugin_main.c b/src/main/extractor_plugin_main.c
index 76f8dd9..3164864 100644
--- a/src/main/extractor_plugin_main.c
+++ b/src/main/extractor_plugin_main.c
@@ -39,6 +39,13 @@
39#include <signal.h> 39#include <signal.h>
40#endif 40#endif
41 41
42#if WINDOWS
43#define SHM_ID HANDLE
44#define INVALID_SHM_ID NULL
45#else
46#define SHM_ID int
47#define INVALID_SHM_ID -1
48#endif
42 49
43/** 50/**
44 * Closure we use for processing requests inside the helper process. 51 * Closure we use for processing requests inside the helper process.
@@ -73,7 +80,7 @@ struct ProcessingContext
73 /** 80 /**
74 * Handle to the shared memory. 81 * Handle to the shared memory.
75 */ 82 */
76 int shm_id; 83 SHM_ID shm_id;
77 84
78 /** 85 /**
79 * Size of the shared memory map. 86 * Size of the shared memory map.
@@ -619,7 +626,7 @@ EXTRACTOR_plugin_main_ (struct EXTRACTOR_PluginList *plugin,
619 pc.plugin = plugin; 626 pc.plugin = plugin;
620 pc.in = in; 627 pc.in = in;
621 pc.out = out; 628 pc.out = out;
622 pc.shm_id = -1; 629 pc.shm_id = INVALID_SHM_ID;
623 pc.shm = NULL; 630 pc.shm = NULL;
624 pc.shm_map_size = 0; 631 pc.shm_map_size = 0;
625 process_requests (&pc); 632 process_requests (&pc);