Lines Matching defs:handle
42 ns_newmsg_init(u_char *buffer, size_t bufsiz, ns_newmsg *handle) {
43 ns_msg *msg = &handle->msg;
45 memset(handle, 0, sizeof *handle);
51 handle->dnptrs[0] = msg->_msg;
52 handle->dnptrs[1] = NULL;
53 handle->lastdnptr = &handle->dnptrs[sizeof handle->dnptrs /
54 sizeof handle->dnptrs[0] - 1];
61 ns_newmsg_copy(ns_newmsg *handle, ns_msg *msg) {
65 ns_newmsg_id(handle, ns_msg_id(*msg));
67 ns_newmsg_flag(handle, flag, ns_msg_getflag(*msg, flag));
79 x = ns_newmsg_q(handle,
84 x = ns_newmsg_rr(handle, sect,
101 ns_newmsg_id(ns_newmsg *handle, u_int16_t id) {
102 ns_msg *msg = &handle->msg;
110 ns_newmsg_flag(ns_newmsg *handle, ns_flag flag, u_int value) {
113 ns_msg *msg = &handle->msg;
123 ns_newmsg_q(ns_newmsg *handle, ns_nname_ct qname,
126 ns_msg *msg = &handle->msg;
138 handle->dnptrs, handle->lastdnptr);
156 ns_newmsg_rr(ns_newmsg *handle, ns_sect sect,
161 ns_msg *msg = &handle->msg;
176 handle->dnptrs, handle->lastdnptr);
188 if (rdcpy(handle, type, rdata, rdlen) < 0)
198 ns_newmsg_done(ns_newmsg *handle) {
199 ns_msg *msg = &handle->msg;
220 rdcpy(ns_newmsg *handle, ns_type type, const u_char *rdata, size_t rdlen) {
221 ns_msg *msg = &handle->msg;
231 handle->dnptrs, handle->lastdnptr);
240 handle->dnptrs, handle->lastdnptr);
260 handle->dnptrs, handle->lastdnptr);