12#ifndef __COLUMN_UTILS_H__
13#define __COLUMN_UTILS_H__
16#include "ws_symbol_export.h"
22#define COL_MAX_LEN 2048
23#define COL_MAX_INFO_LEN 4096
42#define COL_CUSTOM_PRIME_REGEX "(?:^ *| *\\|\\| *| +or +| *$)(?![^(]*\\))"
190#define COL_ADD_LSTR_TERMINATOR (const char *) -1
192WS_DLL_PUBLIC
void col_add_lstr(
column_info *cinfo,
const int el,
const char *str, ...);
252WS_DLL_PUBLIC
void col_append_lstr(
column_info *cinfo, const
int el, const
char *str, ...);
321 const
char *format, ...)
335 const
nstime_t *ts, const
char *fieldname);
337WS_DLL_PUBLIC
void set_fd_time(const struct
epan_session *epan, frame_data *fd,
char *buf);
WS_DLL_PUBLIC const char * col_get_text(column_info *cinfo, const int col)
Definition column-utils.c:255
WS_DLL_PUBLIC void col_clear_fence(column_info *cinfo, const int col)
Definition column-utils.c:237
WS_DLL_PUBLIC void col_add_fstr(column_info *cinfo, const int col, const char *format,...) G_GNUC_PRINTF(3
WS_DLL_PUBLIC void col_append_ports(column_info *cinfo, const int col, port_type typ, uint16_t src, uint16_t dst)
Definition column-utils.c:523
WS_DLL_PUBLIC void col_set_fence(column_info *cinfo, const int col)
Definition column-utils.c:219
WS_DLL_PUBLIC void col_add_str(column_info *cinfo, const int col, const char *str)
Definition column-utils.c:739
WS_DLL_PUBLIC void WS_DLL_PUBLIC void col_append_str(column_info *cinfo, const int col, const char *str)
Definition column-utils.c:948
WS_DLL_PUBLIC void WS_DLL_PUBLIC void WS_DLL_PUBLIC void WS_DLL_PUBLIC void col_append_sep_str(column_info *cinfo, const int col, const char *sep, const char *str)
Definition column-utils.c:957
WS_DLL_PUBLIC void WS_DLL_PUBLIC void WS_DLL_PUBLIC void col_prepend_fence_fstr(column_info *cinfo, const int col, const char *format,...) G_GNUC_PRINTF(3
@ COL_ABS_TIME
Definition column-utils.h:65
@ COL_RES_DST
Definition column-utils.h:70
@ COL_NUMBER
Definition column-utils.h:95
@ COL_UNRES_NET_DST
Definition column-utils.h:90
@ COL_RES_SRC
Definition column-utils.h:102
@ COL_DEF_NET_SRC
Definition column-utils.h:94
@ COL_INFO
Definition column-utils.h:88
@ COL_DEF_DL_SRC
Definition column-utils.h:80
@ COL_UNRES_DL_SRC
Definition column-utils.h:84
@ COL_TX_RATE
Definition column-utils.h:86
@ COL_RES_DL_DST
Definition column-utils.h:81
@ COL_DEF_DST_PORT
Definition column-utils.h:75
@ COL_CUSTOM
Definition column-utils.h:67
@ COL_ABS_YMD_TIME
Definition column-utils.h:63
@ COL_RES_DL_SRC
Definition column-utils.h:83
@ COL_DELTA_TIME_DIS
Definition column-utils.h:69
@ COL_FREQ_CHAN
Definition column-utils.h:78
@ COL_DEF_DST
Definition column-utils.h:74
@ COL_RSSI
Definition column-utils.h:85
@ COL_DELTA_TIME
Definition column-utils.h:68
@ COL_CLS_TIME
Definition column-utils.h:109
@ COL_UTC_YMD_TIME
Definition column-utils.h:106
@ COL_UNRES_SRC_PORT
Definition column-utils.h:105
@ COL_PROTOCOL
Definition column-utils.h:98
@ COL_IF_DIR
Definition column-utils.h:77
@ COL_RES_NET_DST
Definition column-utils.h:89
@ COL_UNRES_DST_PORT
Definition column-utils.h:73
@ COL_UNRES_SRC
Definition column-utils.h:103
@ COL_DEF_SRC_PORT
Definition column-utils.h:101
@ COL_RES_NET_SRC
Definition column-utils.h:91
@ COL_DEF_SRC
Definition column-utils.h:100
@ COL_UNRES_DST
Definition column-utils.h:71
@ COL_UTC_TIME
Definition column-utils.h:108
@ NUM_COL_FMTS
Definition column-utils.h:110
@ COL_RES_SRC_PORT
Definition column-utils.h:104
@ COL_UNRES_DL_DST
Definition column-utils.h:82
@ COL_REL_TIME
Definition column-utils.h:99
@ COL_DEF_NET_DST
Definition column-utils.h:93
@ COL_UNRES_NET_SRC
Definition column-utils.h:92
@ COL_DSCP_VALUE
Definition column-utils.h:87
@ COL_NUMBER_DIS
Definition column-utils.h:96
@ COL_UTC_YDOY_TIME
Definition column-utils.h:107
@ COL_PACKET_LENGTH
Definition column-utils.h:97
@ COL_ABS_YDOY_TIME
Definition column-utils.h:64
@ COL_DEF_DL_DST
Definition column-utils.h:79
@ COL_EXPERT
Definition column-utils.h:76
@ COL_CUMULATIVE_BYTES
Definition column-utils.h:66
@ COL_RES_DST_PORT
Definition column-utils.h:72
WS_DLL_PUBLIC void col_set_writable(column_info *cinfo, const int col, const bool writable)
Definition column-utils.c:191
WS_DLL_PUBLIC void WS_DLL_PUBLIC void col_set_time(column_info *cinfo, const int col, const nstime_t *ts, const char *fieldname)
Definition column-utils.c:1660
WS_DLL_PUBLIC void col_append_frame_number(packet_info *pinfo, const int col, const char *fmt_str, unsigned frame_num)
Definition column-utils.c:536
WS_DLL_PUBLIC void col_clear(column_info *cinfo, const int col)
Definition column-utils.c:282
WS_DLL_PUBLIC void WS_DLL_PUBLIC void col_prepend_fstr(column_info *cinfo, const int col, const char *format,...) G_GNUC_PRINTF(3
WS_DLL_PUBLIC void col_append_sep_fstr(column_info *cinfo, const int col, const char *sep, const char *format,...) G_GNUC_PRINTF(4
WS_DLL_PUBLIC void col_append_str_uint(column_info *cinfo, const int col, const char *abbrev, uint32_t val, const char *sep)
Definition column-utils.c:498
WS_DLL_PUBLIC void col_append_fstr(column_info *cinfo, const int col, const char *format,...) G_GNUC_PRINTF(3
WS_DLL_PUBLIC bool col_get_writable(column_info *cinfo, const int col)
Definition column-utils.c:166
WS_DLL_PUBLIC void col_set_str(column_info *cinfo, const int col, const char *str)
Definition column-utils.c:777
Definition packet_info.h:43
Definition column-info.h:62
bool writable
Definition column-info.h:69
Definition epan_dissect.h:28