|
#define | FLDFILL NULL |
|
#define | UAT_END_FIELDS {NULL,NULL,PT_TXTMOD_NONE,{0,0,0},{0,0,0},0,0,FLDFILL} |
|
#define | UAT_AFFECTS_DISSECTION 0x00000001 /* affects packet dissection */ |
|
#define | UAT_AFFECTS_FIELDS 0x00000002 /* affects what named fields exist */ |
|
#define | UNUSED_PARAMETER(n) n _U_ |
|
#define | UAT_CSTRING_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_CSTRING(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{uat_fld_chk_str,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_FLD_CSTRING_ISPRINT(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{uat_fld_chk_str_isprint,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_FLD_CSTRING_OTHER(basename, field_name, title, chk, desc) {#field_name, title, PT_TXTMOD_STRING,{ chk ,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_FILENAME_CB_DEF(basename, field_name, rec_t) UAT_CSTRING_CB_DEF(basename,field_name,rec_t) |
|
#define | UAT_FLD_FILENAME(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_FILENAME,{uat_fld_chk_str,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_FLD_FILENAME_OTHER(basename, field_name, title, chk, desc) {#field_name, title, PT_TXTMOD_FILENAME,{chk,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_DIRECTORYNAME_CB_DEF(basename, field_name, rec_t) UAT_CSTRING_CB_DEF(basename,field_name,rec_t) |
|
#define | UAT_FLD_DIRECTORYNAME(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_DIRECTORYNAME,{uat_fld_chk_str,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_DISPLAY_FILTER_CB_DEF(basename, field_name, rec_t) UAT_CSTRING_CB_DEF(basename,field_name,rec_t) |
|
#define | UAT_FLD_DISPLAY_FILTER(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_DISPLAY_FILTER, {uat_fld_chk_str,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_PROTO_FIELD_CB_DEF(basename, field_name, rec_t) UAT_CSTRING_CB_DEF(basename,field_name,rec_t) |
|
#define | UAT_FLD_PROTO_FIELD(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_PROTO_FIELD, {uat_fld_chk_str,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_FLD_OID(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{uat_fld_chk_oid,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_LSTRING_CB_DEF(basename, field_name, rec_t, ptr_element, len_element) |
|
#define | UAT_FLD_LSTRING(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{0,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_BUFFER_CB_DEF(basename, field_name, rec_t, ptr_element, len_element) |
|
#define | UAT_FLD_BUFFER(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_HEXBYTES,{0,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_DEC_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_DEC(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{uat_fld_chk_num_dec,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_DEC64_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_DEC64(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{uat_fld_chk_num_dec64,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_SIGNED_DEC_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_SIGNED_DEC(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{uat_fld_chk_num_signed_dec,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_SIGNED_DEC64_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_SIGNED_DEC64(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{uat_fld_chk_num_signed_dec64,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_FLD_NONE(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_NONE,{uat_fld_chk_num_dec,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_HEX_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_HEX(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{uat_fld_chk_num_hex,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_HEX64_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_HEX64(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_STRING,{uat_fld_chk_num_hex64,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_BOOL_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_BOOL(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_BOOL,{uat_fld_chk_bool,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_VS_DEF(basename, field_name, rec_t, default_t, default_val, default_str) |
|
#define | UAT_VS_CSTRING_DEF(basename, field_name, rec_t, default_val, default_str) |
|
#define | UAT_FLD_VS(basename, field_name, title, enum, desc) {#field_name, title, PT_TXTMOD_ENUM,{uat_fld_chk_enum,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{&(enum),&(enum),&(enum)},&(enum),desc,FLDFILL} |
|
#define | UAT_COLOR_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_COLOR(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_COLOR,{uat_fld_chk_color,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_DISSECTOR_DEF(basename, field_name, dissector_field, name_field, rec_t) |
|
#define | UAT_FLD_DISSECTOR(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_DISSECTOR,{uat_fld_chk_proto,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_FLD_DISSECTOR_OTHER(basename, field_name, title, chk, desc) {#field_name, title, PT_TXTMOD_DISSECTOR,{chk,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
|
#define | UAT_RANGE_CB_DEF(basename, field_name, rec_t) |
|
#define | UAT_FLD_RANGE(basename, field_name, title, max, desc) |
|
|
WS_DLL_PUBLIC uat_t * | uat_new (const char *name, size_t size, const char *filename, bool from_profile, void *data_ptr, unsigned *num_items_ptr, unsigned flags, const char *help, uat_copy_cb_t copy_cb, uat_update_cb_t update_cb, uat_free_cb_t free_cb, uat_post_update_cb_t post_update_cb, uat_reset_cb_t reset_cb, uat_field_t *flds_array) |
|
WS_DLL_PUBLIC void | uat_destroy (uat_t *uat) |
|
void | uat_cleanup (void) |
|
WS_DLL_PUBLIC bool | uat_load (uat_t *uat_in, const char *filename, char **err) |
|
bool | uat_load_str (uat_t *uat_in, const char *entry, char **err) |
|
uat_t * | uat_find (char *name) |
|
WS_DLL_PUBLIC uat_t * | uat_get_table_by_name (const char *name) |
|
WS_DLL_PUBLIC void | uat_set_default_values (uat_t *uat_in, const char *default_values[]) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_str (void *, const char *, unsigned, const void *, const void *, char **err) |
|
bool | uat_fld_chk_oid (void *, const char *, unsigned, const void *, const void *, char **err) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_proto (void *, const char *, unsigned, const void *, const void *, char **err) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_num_dec (void *, const char *, unsigned, const void *, const void *, char **err) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_num_dec64 (void *, const char *, unsigned, const void *, const void *, char **err) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_num_hex (void *, const char *, unsigned, const void *, const void *, char **err) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_num_hex64 (void *, const char *, unsigned, const void *, const void *, char **err) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_num_signed_dec (void *, const char *, unsigned, const void *, const void *, char **err) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_num_signed_dec64 (void *, const char *, unsigned, const void *, const void *, char **err) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_bool (void *, const char *, unsigned, const void *, const void *, char **err) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_enum (void *, const char *, unsigned, const void *, const void *, char **) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_range (void *, const char *, unsigned, const void *, const void *, char **) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_color (void *, const char *, unsigned, const void *, const void *, char **) |
|
WS_DLL_PUBLIC void | uat_foreach_table (uat_cb_t cb, void *user_data) |
|
void | uat_unload_all (void) |
|
char * | uat_undquote (const char *si, unsigned in_len, unsigned *len_p) |
|
char * | uat_unbinstring (const char *si, unsigned in_len, unsigned *len_p) |
|
char * | uat_unesc (const char *si, unsigned in_len, unsigned *len_p) |
|
char * | uat_esc (const char *buf, unsigned len) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_str_isprint (void *, const char *, unsigned, const void *, const void *, char **) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_str_isalpha (void *, const char *, unsigned, const void *, const void *, char **) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_str_isalnum (void *, const char *, unsigned, const void *, const void *, char **) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_str_isdigit (void *, const char *, unsigned, const void *, const void *, char **) |
|
WS_DLL_PUBLIC bool | uat_fld_chk_str_isxdigit (void *, const char *, unsigned, const void *, const void *, char **) |
|