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.
35 lines
659 B
C
35 lines
659 B
C
17 years ago
|
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
|
||
|
|
||
|
#include "vips.h"
|
||
|
#include "tm-modules.h"
|
||
|
|
||
|
TmModule tmm_modules[TMM_SIZE];
|
||
|
|
||
|
void TmModuleDebugList(void) {
|
||
|
TmModule *t;
|
||
|
u_int16_t i;
|
||
|
|
||
|
printf("TmModuleDebugList: start\n");
|
||
|
for (i = 0; i < TMM_SIZE; i++) {
|
||
|
t = &tmm_modules[i];
|
||
|
|
||
|
printf("TmModuleDebugList: %s:%p\n", t->name, t->Func);
|
||
|
}
|
||
|
printf("TmModuleDebugList: end\n");
|
||
|
}
|
||
|
|
||
|
TmModule *TmModuleGetByName(char *name) {
|
||
|
TmModule *t;
|
||
|
u_int16_t i;
|
||
|
|
||
|
for (i = 0; i < TMM_SIZE; i++) {
|
||
|
t = &tmm_modules[i];
|
||
|
|
||
|
if (strcmp(t->name, name) == 0)
|
||
|
return t;
|
||
|
}
|
||
|
|
||
|
return NULL;
|
||
|
}
|
||
|
|