mirror of
https://github.com/falcosecurity/falco.git
synced 2026-04-08 13:02:27 +00:00
Changes to the falco::app::application object to support actions: - All of the code that was in falco_init is now in methods of application. (A later commit actually moves the code from falco_init and into the split-up methods, this commit just declares them). - Methods return an application::run_result object, which is a tuple of success/errstr/proceed. proceed=false is used to short circuit calling methods (think --help, --list, --support, etc.) - application now has a run() method which runs the methods in an order that honors any implicit dependencies (e.g. you have to init an inspector before you open it, you have to do almost everything else before processing events, etc.) - There are a few methods devoted to teardown, they are always called after the group of run methods are called. - State that needs to be saved between methods, or saved between the run and teardown functions, is in a falco::app::application::state object. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>