diff options
Diffstat (limited to 'sbin/atm/atmconfig/atmconfig.h')
-rw-r--r-- | sbin/atm/atmconfig/atmconfig.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sbin/atm/atmconfig/atmconfig.h b/sbin/atm/atmconfig/atmconfig.h index bbc7a1c..5e5b041 100644 --- a/sbin/atm/atmconfig/atmconfig.h +++ b/sbin/atm/atmconfig/atmconfig.h @@ -48,12 +48,14 @@ struct cmdtab { * client configuration info */ struct amodule { - struct cmdtab cmd; - const char *help; + const struct cmdtab *cmd; }; -#define DEF_MODULE(CMDTAB, HELP) \ -struct amodule amodule_1 = { CMDTAB, HELP }; +#define DEF_MODULE(CMDTAB) \ +struct amodule amodule_1 = { CMDTAB } + +/* for compiled-in modules */ +void register_module(const struct amodule *); /* print a message if we are verbose */ void verb(const char *, ...) __printflike(1, 2); @@ -70,6 +72,7 @@ struct penum { const char *str; }; const char *penum(int32_t value, const struct penum *strtab, char *buf); +int pparse(int32_t *, const struct penum *, const char *); enum { OPT_NONE, @@ -93,4 +96,7 @@ struct option { int parse_options(int *_pargc, char ***_pargv, const struct option *_opts); +/* XXX while this is compiled in */ +void device_register(void); + #endif /* _ATMCONFIG_H */ |