Lines Matching defs:handle
34 ns_newmsg_init(u_char *buffer, size_t bufsiz, ns_newmsg *handle) {
35 ns_msg *msg = &handle->msg;
37 memset(handle, 0, sizeof *handle);
43 handle->dnptrs[0] = msg->_msg;
44 handle->dnptrs[1] = NULL;
45 handle->lastdnptr = &handle->dnptrs[sizeof handle->dnptrs /
46 sizeof handle->dnptrs[0] - 1];
53 ns_newmsg_copy(ns_newmsg *handle, ns_msg *msg) {
57 ns_newmsg_id(handle, ns_msg_id(*msg));
59 ns_newmsg_flag(handle, flag, ns_msg_getflag(*msg, flag));
71 x = ns_newmsg_q(handle,
76 x = ns_newmsg_rr(handle, sect,
93 ns_newmsg_id(ns_newmsg *handle, u_int16_t id) {
94 ns_msg *msg = &handle->msg;
102 ns_newmsg_flag(ns_newmsg *handle, ns_flag flag, u_int value) {
105 ns_msg *msg = &handle->msg;
115 ns_newmsg_q(ns_newmsg *handle, ns_nname_ct qname,
118 ns_msg *msg = &handle->msg;
130 handle->dnptrs, handle->lastdnptr);
148 ns_newmsg_rr(ns_newmsg *handle, ns_sect sect,
153 ns_msg *msg = &handle->msg;
168 handle->dnptrs, handle->lastdnptr);
180 if (rdcpy(handle, type, rdata, rdlen) < 0)
190 ns_newmsg_done(ns_newmsg *handle) {
191 ns_msg *msg = &handle->msg;
212 rdcpy(ns_newmsg *handle, ns_type type, const u_char *rdata, size_t rdlen) {
213 ns_msg *msg = &handle->msg;
223 handle->dnptrs, handle->lastdnptr);
232 handle->dnptrs, handle->lastdnptr);
252 handle->dnptrs, handle->lastdnptr);