00001 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 #ifndef __J_USEROPT_H__
00026 #define __J_USEROPT_H__
00027 
00032 typedef struct __j_useropt__ {
00033   char *optstr;                 
00034   char *desc;                   
00035   int argnum;                   
00036   int reqargnum;                
00037   boolean (*func)(Jconf *jconf, char *arg[], int argnum); 
00038   struct __j_useropt__ *next;   
00039 } USEROPT;
00040 
00041 boolean j_add_option(char *fmt, int argnum, int reqargnum, char *desc, boolean (*func)(Jconf *jconf, char *arg[], int argnum));
00042 void useropt_free_all();
00043 int useropt_exec(Jconf *jconf, char *argv[], int argc, int *n);
00044 void useropt_show_desc(FILE *fp);
00045 
00046 
00047 #endif