libjulius/include/julius/useropt.h File Reference

User-defined jconf options. More...

Go to the source code of this file.

Data Structures

struct  USEROPT
 User-defined option. More...

Functions

boolean j_add_option (char *fmt, int argnum, int reqargnum, char *desc, boolean(*func)(Jconf *jconf, char *arg[], int argnum))
 Add a user-defined option to Julius.
void useropt_free_all ()
 Release all user option data.
int useropt_exec (Jconf *jconf, char *argv[], int argc, int *n)
 Inspect for the user-specified options at option parsing.
void useropt_show_desc (FILE *fp)
 Output description of all the registered user options.


Detailed Description

User-defined jconf options.

Author:
Akinobu Lee
Date:
Sun Sep 02 03:09:12 2007
Revision
1.1.1.1

Definition in file useropt.h.


Function Documentation

int useropt_exec ( Jconf jconf,
char *  argv[],
int  argc,
int *  n 
)

Inspect for the user-specified options at option parsing.

Parameters:
jconf [in] global configuration variables
argv [in] argument array
argc [in] number of arguments in argv
n [i/o] current position in argv
Returns:
1 when the current argument was processed successfully by one of the user options, 0 when no user option matched for the current argument, or -1 on error.

Definition at line 187 of file useropt.c.

Referenced by opt_parse().

Here is the caller graph for this function:

void useropt_show_desc ( FILE *  fp  ) 

Output description of all the registered user options.

Parameters:
fp [in] file pointer to output for

Definition at line 233 of file useropt.c.

Referenced by j_output_argument_help().

Here is the caller graph for this function:


Generated on Tue Dec 18 16:00:50 2007 for Julius by  doxygen 1.5.4