libjulius/src/useropt.c File Reference

User-defined option handling. More...

#include <julius/juliuslib.h>

Go to the source code of this file.

Functions

static USEROPTuseropt_new ()
 Generate a new option data.
static void useropt_free (USEROPT *x)
 ユーザオプションデータを解放.
void useropt_free_all ()
 Release all user option data.
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.
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.

Variables

static USEROPTuseropt_root = NULL
 List of user option data.


Detailed Description

User-defined option handling.

Author:
Akinobu Lee
Date:
Sun Sep 02 19:44:37 2007
Revision
1.1.1.1

Definition in file useropt.c.


Function Documentation

static USEROPT* useropt_new (  )  [static]

Generate a new option data.

Returns:
a new user option data.

Definition at line 45 of file useropt.c.

Referenced by j_add_option().

static void useropt_free ( USEROPT x  )  [static]

ユーザオプションデータを解放.

Parameters:
x [in] a user option data to release

Definition at line 71 of file useropt.c.

Referenced by useropt_free_all().

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:01:30 2007 for Julius by  doxygen 1.5.4