From c9cbeced5b3f2bdd7407e29c0811e65954132540 Mon Sep 17 00:00:00 2001 From: Root THC Date: Tue, 24 Feb 2026 12:42:47 +0000 Subject: initial --- other/b-scan/tmp/include/bscan/module.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 other/b-scan/tmp/include/bscan/module.h (limited to 'other/b-scan/tmp/include/bscan/module.h') 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 @@ + +#define MAX_MODULES 8 + +#define MOD_FIRSTPKG 0x00 +#define MOD_RCV 0x01 + +#define RMOD_OK 0x00 +#define RMOD_SKIP 0x01 +#define RMOD_ERROR 0x02 +#define RMOD_ABRT 0x04 + +struct _mods +{ + int (*init) (char **, int, char **, void *); /* init the module stuff */ + int (*fini) (); /* finish the module */ + void (*musage) (); /* print out usage informations */ + int (*callmdl) (int, void *); /* call a function */ + const char *modname; /* name of the module after init */ + int modid; /* id of the module. who needs this ? */ + char *modarg; /* arg to module */ +}; + +int add_module (char *, char *); +void split_margs (const char *, char ***, int *); +int loadinit_mod (char *); + -- cgit v1.3