diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/b-scan/tmp/include/bscan/module.h | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/b-scan/tmp/include/bscan/module.h')
| -rw-r--r-- | other/b-scan/tmp/include/bscan/module.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/other/b-scan/tmp/include/bscan/module.h b/other/b-scan/tmp/include/bscan/module.h new file mode 100644 index 0000000..3ad316b --- /dev/null +++ b/other/b-scan/tmp/include/bscan/module.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | |||
| 2 | #define MAX_MODULES 8 | ||
| 3 | |||
| 4 | #define MOD_FIRSTPKG 0x00 | ||
| 5 | #define MOD_RCV 0x01 | ||
| 6 | |||
| 7 | #define RMOD_OK 0x00 | ||
| 8 | #define RMOD_SKIP 0x01 | ||
| 9 | #define RMOD_ERROR 0x02 | ||
| 10 | #define RMOD_ABRT 0x04 | ||
| 11 | |||
| 12 | struct _mods | ||
| 13 | { | ||
| 14 | int (*init) (char **, int, char **, void *); /* init the module stuff */ | ||
| 15 | int (*fini) (); /* finish the module */ | ||
| 16 | void (*musage) (); /* print out usage informations */ | ||
| 17 | int (*callmdl) (int, void *); /* call a function */ | ||
| 18 | const char *modname; /* name of the module after init */ | ||
| 19 | int modid; /* id of the module. who needs this ? */ | ||
| 20 | char *modarg; /* arg to module */ | ||
| 21 | }; | ||
| 22 | |||
| 23 | int add_module (char *, char *); | ||
| 24 | void split_margs (const char *, char ***, int *); | ||
| 25 | int loadinit_mod (char *); | ||
| 26 | |||
