jl_dic_add() ?Хåե??˼??????ɲä??롣
jl_dic_add_e() ?Ķ??˼??????ɲä??롣
#include "jllib.h"
int
jl_dic_add(buf,dic_name,hindo_name, rev, prio,rw, hrw, pwd_dic,
pwd_hindo, error_handler, message_handler)
struct wnn_buf *buf; /* ?Хåե? */
char *dic_name; /* ????̾ */
char *hindo_name; /* ???٥ե?????̾ */
int rev; /* ???Ѵ????ɤ???(̤????) */
int prio; /* ͥ???? */
int rw; /* ??????R/W */
int hrw; /* ???٥ե???????R/W */
char *pwd_dic; /* ?????Υѥ???ɥե?????̾ */
char *pwd_hindo; /* ???٥ե??????Υѥ???ɥե?????̾ */
int (*error_handler)(); /* ???顼???ϥ??ɥ? */
int (*message_handler)(); /* ???å????????ϥ??ɥ? */
int
jl_dic_add_e(env,dic_name,hindo_name, rev, prio,rw, hrw,pwd_dic,
pwd_hindo, error_handler, message_handler)
struct wnn_env *env; /* ?Ķ? */
char *dic_name; /* ????̾ */
char *hindo_name; /* ???٥ե?????̾ */
int rev; /* ???Ѵ????ɤ???(̤????) */
int prio; /* ͥ???? */
int rw; /* ??????R/W */
int hrw; /* ???٥ե???????R/W */
char *pwd_dic; /* ?????Υѥ???ɥե?????̾ */
char *pwd_hindo; /* ???٥ե??????Υѥ???ɥե?????̾ */
int (*error_handler)(); /* ???顼???ϥ??ɥ? */
int (*message_handler)(); /* ???å????????ϥ??ɥ? */
- jl_dic_add ?ϡ??Хåե? buf
???δĶ??ˡ?jl_dic_add_e ?ϡ??Ķ? env ??
dic_name, hindo_name
?μ????????٥ե????????ɲä??롣
???饤?????ȡ??????Ȥμ????????٥ե??????ϡ??ե?????̾????Ƭ
?? ! ???Ĥ???̾????dic_name, hindo_name
?˻??ꤹ?롣
prio ?ǡ???????ͥ???٤????ꤹ?롣
rw, hrw
?ǡ??????????٥ե????뤬?ɤ??????Ѥ??ݤ??????ꤹ?롣
WNN_DIC_RDONLY ?ɤ???????
WNN_DIC_RW ?ɤ???/???߲?ǽ
?Ƿ??????????ӡ??ɤ??????Ѽ????ˤϡ?ñ????Ͽ/???????Ǥ??ʤ???
rev
?ǡ????Ѵ????Ԥʤ????ɤ????????ꤹ?롣
WNN_DIC_ADD_REV ???Ѵ?
WNN_DIC_ADD_NOR ?̾????Ѵ?
???Ѵ????????????Ф??Ƥ????????Ѵ??ϹԤʤ????Ȥ??Ǥ??ʤ???
pwd_dic, pwd_hindo
?ǡ??????ڤ????٥ե??????Υѥ???ɤ????äƤ????ե?
????̾?????ꤹ?롣
?????ڤ????٥ե??????˥ѥ???ɤ??ݤ??äƤ??ʤ??????ϡ?NULL
?????ꤹ?롣
???顼???ϥ??ɥ? error_handler
?ǡ??????ڤ????٥ե????뤬¸?ߤ??ʤ?????
???????뤫?ݤ??????ꤹ?롣
WNN_NO_CREAT ?????Ϻ??餺???ιԤϥ????åפ??롣
WNN_CREATE ????????Ͽ??ǽ?????????Ȥ??ƺ??????ɤ߹??ࡣ
???٥ե??????Ϥ??μ??????Ф??????٥ե???????
???ƺ??????ɤ߹??ࡣ
????¾ (*error_handler)()???å??????Ȥʤ?ʸ????
???????Ȥ??ơ??????ʤɤ????????뤫?ݤ????֤?
?ؿ??ȸ??ʤ????δؿ????Ƥ֡?
?ؿ??????ͤ? 1 ?ʤ?????????0 ?ʤ????????ʤ???
???å????????ϥ??ɥ? message_handler ?? NULL
?Ǥʤ????С?ʸ??????ɽ????
???ؿ??ȸ??ʤ????????ʤɤ??????????Ȥ??????å???????ɽ?????Ԥʤ???
???????Υϥ??ɥ餬ɬ?פʤΤϡ?jl_open
?????ǡ??Хå?Ū?˼?????
?ɤ߹??ߤ??Ԥʤ??????Ǥ??롣
?????ե??????????????????ˤϡ??հ????????Ǻ??????롣
???ェλ???ˤϼ????ֹ????֤???
?۾ェλ???ˤ? -1 ???֤???