aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/extractor.c')
-rw-r--r--src/main/extractor.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/main/extractor.c b/src/main/extractor.c
index 210308c..e012753 100644
--- a/src/main/extractor.c
+++ b/src/main/extractor.c
@@ -44,30 +44,6 @@
44 44
45 45
46/** 46/**
47 * Client provided a memory buffer, analyze it. Creates a shm, copies
48 * buffer contents into it. Does not support seeking (all data comes
49 * in one [big] chunk.
50 */
51#define OPMODE_MEMORY 1
52
53/**
54 * Client provided a memory buffer or a file, which contains compressed data.
55 * Creates a shm of limited size and repeatedly fills it with uncompressed
56 * data. Never skips data (has to uncompress every byte, discards unwanted bytes),
57 * can't efficiently seek backwards. Uses MESSAGE_UPDATED_SHM and MESSAGE_SEEK.
58 */
59#define OPMODE_DECOMPRESS 2
60
61/**
62 * Client provided a filename. Creates a file-backed shm (on W32) or just
63 * communicates the file name to each plugin, and plugin opens its own file
64 * descriptor of the file (POSIX). Each plugin maps different parts of the
65 * file into its memory independently.
66 */
67#define OPMODE_FILE 3
68
69
70/**
71 * Writes 'size' bytes from 'buf' to 'fd', returns only when 47 * Writes 'size' bytes from 'buf' to 'fd', returns only when
72 * writing is not possible, or when all 'size' bytes were written 48 * writing is not possible, or when all 'size' bytes were written
73 * (never does partial writes). 49 * (never does partial writes).