|
|
1.1 ! root 1: /* structure corresponding to line of the config file */ ! 2: struct conf { ! 3: char *host; /* regexp */ ! 4: char *user; /* regexp */ ! 5: char *file; /* regexp */ ! 6: char *cmds; /* cmd+cmd+cmd... */ ! 7: }; ! 8: ! 9: extern struct conf *confread(FILE *fp, char *host, char *user, char *file); ! 10: ! 11: /* configuration command name and associated function to call */ ! 12: struct confcmds { ! 13: char *name; ! 14: int (*func)(char *); ! 15: }; ! 16: ! 17: extern int confexec(char *cmdstr, struct confcmds *cmdtab);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.