engine: new FLB_ENGINE_FAILED signal
/* Engine events: all engine events set the left 32 bits to '1' */
#define FLB_ENGINE_EV_STARTED FLB_BITS_U64_SET(1, 1) /* Engine started */
-#define FLB_ENGINE_EV_STOP FLB_BITS_U64_SET(1, 2) /* Requested to stop */
-#define FLB_ENGINE_EV_SHUTDOWN FLB_BITS_U64_SET(1, 3) /* Engine shutdown */
-#define FLB_ENGINE_EV_STATS FLB_BITS_U64_SET(1, 4) /* Collect stats */
+#define FLB_ENGINE_EV_FAILED FLB_BITS_U64_SET(1, 2) /* Engine started */
+#define FLB_ENGINE_EV_STOP FLB_BITS_U64_SET(1, 3) /* Requested to stop */
+#define FLB_ENGINE_EV_SHUTDOWN FLB_BITS_U64_SET(1, 4) /* Engine shutdown */
+#define FLB_ENGINE_EV_STATS FLB_BITS_U64_SET(1, 5) /* Collect stats */
/* Similar to engine events, but used as return values */
#define FLB_ENGINE_STARTED FLB_BITS_U64_LOW(FLB_ENGINE_EV_STARTED)
+#define FLB_ENGINE_FAILED FLB_BITS_U64_LOW(FLB_ENGINE_EV_FAILED)
#define FLB_ENGINE_STOP FLB_BITS_U64_LOW(FLB_ENGINE_EV_STOP)
#define FLB_ENGINE_SHUTDOWN FLB_BITS_U64_LOW(FLB_ENGINE_EV_SHUTDOWN)
#define FLB_ENGINE_STATS FLB_BITS_U64_LOW(FLB_ENGINE_EV_STATS)
#endif
int flb_engine_start(struct flb_config *config);
+int flb_engine_failed(struct flb_config *config);
int flb_engine_flush(struct flb_config *config,
struct flb_input_plugin *in_force);
int flb_engine_exit(struct flb_config *config);
