@ -38,8 +38,7 @@ typedef struct PluginListNode_ {
*/
*/
static TAILQ_HEAD ( , PluginListNode_ ) plugins = TAILQ_HEAD_INITIALIZER ( plugins ) ;
static TAILQ_HEAD ( , PluginListNode_ ) plugins = TAILQ_HEAD_INITIALIZER ( plugins ) ;
static TAILQ_HEAD ( , SCPluginFileType_ ) output_types =
static TAILQ_HEAD ( , SCEveFileType_ ) output_types = TAILQ_HEAD_INITIALIZER ( output_types ) ;
TAILQ_HEAD_INITIALIZER ( output_types ) ;
static TAILQ_HEAD ( , SCCapturePlugin_ ) capture_plugins = TAILQ_HEAD_INITIALIZER ( capture_plugins ) ;
static TAILQ_HEAD ( , SCCapturePlugin_ ) capture_plugins = TAILQ_HEAD_INITIALIZER ( capture_plugins ) ;
@ -142,9 +141,9 @@ void SCPluginsLoad(const char *capture_plugin_name, const char *capture_plugin_a
}
}
}
}
bool SCRegisterEveFileType ( SC Plugin FileType * plugin )
bool SCRegisterEveFileType ( SC Eve FileType * plugin )
{
{
SC Plugin FileType * existing = NULL ;
SC Eve FileType * existing = NULL ;
TAILQ_FOREACH ( existing , & output_types , entries ) {
TAILQ_FOREACH ( existing , & output_types , entries ) {
if ( strcmp ( existing - > name , plugin - > name ) = = 0 ) {
if ( strcmp ( existing - > name , plugin - > name ) = = 0 ) {
SCLogNotice ( " EVE file type plugin name conflicts with previously "
SCLogNotice ( " EVE file type plugin name conflicts with previously "
@ -167,7 +166,7 @@ bool SCRegisterEveFileType(SCPluginFileType *plugin)
* plugin file type .
* plugin file type .
*
*
*/
*/
bool SCPluginRegisterEveFileType ( SC Plugin FileType * plugin )
bool SCPluginRegisterEveFileType ( SC Eve FileType * plugin )
{
{
const char * builtin [ ] = {
const char * builtin [ ] = {
" regular " ,
" regular " ,
@ -191,9 +190,9 @@ bool SCPluginRegisterEveFileType(SCPluginFileType *plugin)
return SCRegisterEveFileType ( plugin ) ;
return SCRegisterEveFileType ( plugin ) ;
}
}
SC Plugin FileType * SCPluginFindFileType ( const char * name )
SC Eve FileType * SCPluginFindFileType ( const char * name )
{
{
SC Plugin FileType * plugin = NULL ;
SC Eve FileType * plugin = NULL ;
TAILQ_FOREACH ( plugin , & output_types , entries ) {
TAILQ_FOREACH ( plugin , & output_types , entries ) {
if ( strcmp ( name , plugin - > name ) = = 0 ) {
if ( strcmp ( name , plugin - > name ) = = 0 ) {
return plugin ;
return plugin ;