Julius 4.2
関数 | 変数
libjulius/src/useropt.c

ユーザ定義オプション [詳細]

#include <julius/juliuslib.h>

ソースコードを見る。

関数

static USEROPTuseropt_new ()
 新たなユーザオプションデータを生成.
static void useropt_free (USEROPT *x)
 Release a user option data.
void useropt_free_all ()
 全てのユーザオプションデータを解放する.
boolean j_add_option (char *fmt, int argnum, int reqargnum, char *desc, boolean(*func)(Jconf *jconf, char *arg[], int argnum))
 Julius にユーザ定義オプションを追加する.
int useropt_exec (Jconf *jconf, char *argv[], int argc, int *n)
 オプション設定においてユーザ定義オプション処理を行う.
void useropt_show_desc (FILE *fp)
 登録されている全てのユーザ定義オプションの説明を出力する.

変数

static USEROPTuseropt_root = NULL
 List of user option data.

説明

ユーザ定義オプション

作者:
Akinobu Lee
日付:
Sun Sep 02 19:44:37 2007
Revision:
1.4

useropt.c で定義されています。


関数

static USEROPT* useropt_new ( ) [static]

新たなユーザオプションデータを生成.

戻り値:
a new user option data.

useropt.c45 行で定義されています。

参照元 j_add_option().

static void useropt_free ( USEROPT x) [static]

Release a user option data.

引数:
x[in] a user option data to release

useropt.c71 行で定義されています。

参照元 useropt_free_all().

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

オプション設定においてユーザ定義オプション処理を行う.

引数:
jconf[in] global configuration variables
argv[in] argument array
argc[in] number of arguments in argv
n[i/o] current position in argv
戻り値:
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.

useropt.c190 行で定義されています。

参照元 opt_parse().

関数の呼び出しグラフ:

呼出しグラフ:

void useropt_show_desc ( FILE *  fp)

登録されている全てのユーザ定義オプションの説明を出力する.

引数:
fp[in] file pointer to output for

useropt.c236 行で定義されています。

参照元 j_output_argument_help().

呼出しグラフ:


変数

USEROPT* useropt_root = NULL [static]

List of user option data.

useropt.c31 行で定義されています。

参照元 j_add_option(), と useropt_free_all().