commit 8bb8362db8fee5da97c180abe6dd5cd64c0ad2b0
parent c8d8ea6288be0d7b5117197f08739b3e85785367
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 30 Jul 2012 22:47:24 +0000
stuff
Diffstat:
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/main/extractor.c b/src/main/extractor.c
@@ -258,7 +258,10 @@ do_extract (struct EXTRACTOR_PluginList *plugins,
plugin_count = 0;
for (pos = plugins; NULL != pos; pos = pos->next)
{
- channels[plugin_count] = pos->channel;
+ if (-1 != pos->seek_request)
+ channels[plugin_count] = pos->channel;
+ else
+ channels[plugin_count] = NULL; /* not running this round, seeking! */
plugin_count++;
}
diff --git a/src/main/extractor_plugin_main.c b/src/main/extractor_plugin_main.c
@@ -96,7 +96,7 @@ struct ProcessingContext
/**
- * Moves current absolute buffer position to @pos in @whence mode.
+ * Moves current absolute buffer position to 'pos' in 'whence' mode.
* Will move logical position withouth shifting the buffer, if possible.
* Will not move beyond the end of file.
*
diff --git a/src/main/test_ipc.c b/src/main/test_ipc.c
@@ -94,6 +94,7 @@ process_replies (void *cls,
"Hello world!",
strlen ("Hello world!"))) )
{
+ fprintf (stderr, "Received 'hello world'\n");
ret = 1;
return 0;
}
@@ -103,6 +104,7 @@ process_replies (void *cls,
"Goodbyte!",
strlen ("Goodbye!"))) )
{
+ fprintf (stderr, "Received 'good bye'\n");
ret = 0;
return 1;
}