83 nmsg_msgmod_ft_string,
89 nmsg_msgmod_ft_mlstring,
98 nmsg_msgmod_ft_uint16,
101 nmsg_msgmod_ft_uint32,
104 nmsg_msgmod_ft_uint64,
107 nmsg_msgmod_ft_int16,
110 nmsg_msgmod_ft_int32,
113 nmsg_msgmod_ft_int64,
116 nmsg_msgmod_ft_double,
120} nmsg_msgmod_field_type;
122#define NMSG_MSGMOD_FIELD_REPEATED 0x01
123#define NMSG_MSGMOD_FIELD_REQUIRED 0x02
124#define NMSG_MSGMOD_FIELD_HIDDEN 0x04
125#define NMSG_MSGMOD_FIELD_NOPRINT 0x08
126#define NMSG_MSGMOD_FIELD_FORMAT_RAW 0x10
143nmsg_msgmod_init(nmsg_msgmod_t mod,
void **clos);
158nmsg_msgmod_fini(nmsg_msgmod_t mod,
void **clos);
186nmsg_msgmod_pres_to_payload(nmsg_msgmod_t mod,
void *clos,
const char *pres);
208nmsg_msgmod_pres_to_payload_finalize(nmsg_msgmod_t mod,
void *clos, uint8_t **pbuf,
233nmsg_msgmod_ipdg_to_payload(nmsg_msgmod_t mod,
void *clos,
234 const struct nmsg_ipdg *dg,
235 uint8_t **pbuf,
size_t *sz);
259nmsg_msgmod_pkt_to_payload(
struct nmsg_msgmod *mod,
void *clos,
260 nmsg_pcap_t pcap, nmsg_message_t *m);
274nmsg_msgmod_lookup(
unsigned vid,
unsigned msgtype);
288nmsg_msgmod_lookup_byname(
const char *vname,
const char *mname);
301nmsg_msgmod_mname_to_msgtype(
unsigned vid,
const char *mname);
315nmsg_msgmod_msgtype_to_mname(
unsigned vid,
unsigned msgtype);
326nmsg_msgmod_vid_to_vname(
unsigned vid);
337nmsg_msgmod_vname_to_vid(
const char *vname);
343nmsg_msgmod_get_max_vid(
void);
351nmsg_msgmod_get_max_msgtype(
unsigned vid);