51 #define STR(x) vstring_str(x)
52 #define LEN(x) VSTRING_LEN(x)
76 if (
LEN(buf) ==
sizeof(*stats)) {
77 memcpy((
void *) stats,
STR(buf),
sizeof(*stats));
79 msg_warn(
"msg_stats_scan: size mis-match: %u != %u",
80 (
unsigned)
LEN(buf), (
unsigned)
sizeof(*stats));
int(* ATTR_SCAN_MASTER_FN)(VSTREAM *, int,...)
void msg_warn(const char *fmt,...)
#define RECV_ATTR_DATA(name, val)
VSTRING * vstring_alloc(ssize_t len)
int msg_stats_scan(ATTR_SCAN_MASTER_FN scan_fn, VSTREAM *fp, int flags, void *ptr)
VSTRING * vstring_free(VSTRING *vp)