Project

General

Profile

Actions

Task #3166

open

src code file reorg

Added by Victor Julien over 5 years ago. Updated 25 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

Reorg code files to not have a single src dir containing all files.


Related issues 3 (3 open0 closed)

Related to Suricata - Task #3836: Formatting rust codeIn ProgressJason IshActions
Related to Suricata - Bug #6754: libsuricata: restructure directory and files to allow for include files to be name spacedNewOISF DevActions
Blocks Suricata - Feature #1025: seperate #ifdef UNITTEST code into their own filesNewOISF DevActions
Actions #1

Updated by Victor Julien about 5 years ago

  • Blocks Feature #1025: seperate #ifdef UNITTEST code into their own files added
Actions #2

Updated by Jason Ish almost 5 years ago

  • Status changed from Assigned to In Review
Actions #3

Updated by Victor Julien over 4 years ago

  • Target version changed from 6.0.0beta1 to 7.0.0-beta1
Actions #4

Updated by Victor Julien over 3 years ago

  • Target version changed from 7.0.0-beta1 to 8.0.0-beta1
Actions #5

Updated by Jason Ish 12 months ago

  • Status changed from In Review to In Progress

Moving back to in-progress.

Actions #6

Updated by Jason Ish 12 months ago

  • Related to Task #3836: Formatting rust code added
Actions #7

Updated by Jason Ish 25 days ago

  • Related to Bug #6754: libsuricata: restructure directory and files to allow for include files to be name spaced added
Actions #8

Updated by Jason Ish 25 days ago

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.

Actions

Also available in: Atom PDF