146typedef struct typ_userdef_t_ {
176 const xmlChar *typname,
status_t
global error return code
Definition: status_enum.h:210
status_t typ_userdef_register(const xmlChar *modname, const xmlChar *typname, typ_validate_fn_t validate_fn, typ_canonical_fn_t canonical_fn, typ_compare_fn_t compare_fn, void *cookie)
Register the callback functions for a user defined type.
Definition: typ_userdef.c:116
status_t typ_userdef_validate(val_value_t *val)
Invoke the validate callback function for a user defined type if it exists.
Definition: typ_userdef.c:200
status_t(* typ_validate_fn_t)(typ_def_t *typdef, val_value_t *val, void *cookie)
userdef validate callback function user validation callback for a userdef type
Definition: typ_userdef.h:102
status_t(* typ_compare_fn_t)(const typ_def_t *typdef, const val_value_t *val1, const val_value_t *val2, void *cookie, int *retval)
userdef compare callback function compare 2 val_value_t nodes of the same user defined type
Definition: typ_userdef.h:136
void typ_userdef_clean_typdef(typ_def_t *typdef)
Clean the user typedef fields.
Definition: typ_userdef.c:178
status_t(* typ_canonical_fn_t)(typ_def_t *typdef, val_value_t *val, void *cookie)
userdef canonical callback function convert the inval to the canonical format for the type
Definition: typ_userdef.h:118
status_t typ_userdef_canonical(val_value_t *val)
Invoke the canonical callback function for a user defined type if it exists.
Definition: typ_userdef.c:244
status_t typ_userdef_compare(const val_value_t *val1, const val_value_t *val2, int32 *ret)
Invoke the compare callback function for a user defined type if it exists.
Definition: typ_userdef.c:303
global error status code enumerations
Discriminated union for all data typedefs.
Definition: typ.h:458
one userdef control block The CB will exist if one or more callbacks are registered
Definition: typ_userdef.h:146
typ_canonical_fn_t canonical_fn
canonical callback
Definition: typ_userdef.h:148
typ_compare_fn_t compare_fn
compare callback
Definition: typ_userdef.h:149
void * cookie
registration cookie
Definition: typ_userdef.h:150
typ_validate_fn_t validate_fn
validate callback
Definition: typ_userdef.h:147
one value to match one type
Definition: val.h:912
Value Node Basic Support.