Julius 4.2
libjulius/include/julius/useropt.h
説明を見る。
00001 
00018 /*
00019  * Copyright (c) 1991-2011 Kawahara Lab., Kyoto University
00020  * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
00021  * Copyright (c) 2005-2011 Julius project team, Nagoya Institute of Technology
00022  * All rights reserved
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 /* __J_USEROPT_H__ */