Skip to content

Commit 086e954

Browse files
committed
Core: new handling of termination requests
1 parent d652fe3 commit 086e954

File tree

15 files changed

+162
-662
lines changed

15 files changed

+162
-662
lines changed

include/ipfixcol2/plugins.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ ipx_plugin_get(ipx_ctx_t *ctx, void *cfg);
264264
* \return #IPX_OK on success
265265
* \return #IPX_ERR_DENIED if a fatal memory allocation error has occurred and/or the plugin cannot
266266
* continue to work properly (the collector will exit).
267+
* \return #IPX_ERR_EOF if the plugin has reached expected goal (e.g. number of processed records).
268+
* This function will not be called anymore and the collector will shut down.
267269
*/
268270
IPX_API int
269271
ipx_plugin_process(ipx_ctx_t *ctx, void *cfg, ipx_msg_t *msg);

src/core/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Core source files
22
set(CORE_SOURCE
3-
configurator/config_file.cpp
4-
configurator/config_file.hpp
53
configurator/configurator.cpp
64
configurator/configurator.hpp
5+
configurator/controller_file.cpp
6+
configurator/controller_file.hpp
7+
configurator/cpipe.c
8+
configurator/cpipe.h
79
configurator/extensions.cpp
810
configurator/extensions.hpp
911
configurator/instance.hpp

0 commit comments

Comments
 (0)