Each dynamic preprocessor must define the following items. These must be defined in the global scope of a source file (e.g. spp_example.c).
This specifies the major version of the preprocessor.
This specifies the minor version of the preprocessor.
This specifies the build version of the preprocessor.
This specifies the display name of the preprocessor.
This function is called to register the preprocessor to be called with packets data.
The preprocessor must be built with the same macros defined as the Snort binary and linked with the dynamic preprocessor library that was created during the Snort build. A package configuration file is exported as part of the Snort build and can be accessed using the following commands with PKG_CONFIG_PATH=snort build prefix/lib/pkgconfig:
Returns the macros and include path needed to compile the dynamic preprocessor.
Returns the library and library path needed to link the dynamic preprocessor.