mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Move the contents of SuricataMain into the `main()` function found in main.c. This forces the Suricata application to bootstrap and run Suricata through the same interfaces as a library user might do. Required exposing StartInternalRunMode as SCStartInternalRunmode. Its arguable whether those "actions" belong in the library or just the application, but I think that is separation we can look at later. For now the lib example and Suricata's own main are the same, however the example will probably extend more into programmatically configuring Suricata or dynamically registering a runmode, which doesn't really belong the main Suricata application. |
2 years ago | |
|---|---|---|
| .. | ||
| lib/simple | 2 years ago | |
| plugins | ||