Actions
Task #3166
opensrc code file reorg
Effort:
Difficulty:
Label:
Description
Reorg code files to not have a single src dir containing all files.
Actions
Added by Victor Julien about 6 years ago. Updated 9 months ago.
Description
Reorg code files to not have a single src dir containing all files.
Moving back to in-progress.
A few ideas of code reorganization have happened, but we haven't settled on one.
1. Modular re-org without consideration for the library
- PR: https://github.com/OISF/suricata/pull/10041
- Moves "detect-*" into "detect/" and so.
2. Re-organize to be a first class library (#6754)
- PR: https://github.com/OISF/suricata/pull/10421
- The idea here is that almost all C source files are moved into a directory named suricata or libsuricata.
- Brings a natural include pattern of "suricata/filename.h"
- Executables, including suricata would live in the src/ directory or some other directory like tools/. Curl is an example of another project where its developed as a library, and the popular command is just one of the executables generated from it.
Both of these have gone kind of stale, just adding PRs to the existing work in case we pick them up.