Lines Matching defs:ctx
69 static lwres_context_t *ctx;
87 ret = lwres_nooprequest_render(ctx, &nooprequest, &pkt, &b);
102 ret = lwres_nooprequest_parse(ctx, &b, &pkt2, &nooprequest2);
109 lwres_nooprequest_free(ctx, &nooprequest2);
111 lwres_context_freemem(ctx, b.base, b.length);
123 ret = lwres_noopresponse_render(ctx, &noopresponse, &pkt, &b);
138 ret = lwres_noopresponse_parse(ctx, &b, &pkt2, &noopresponse2);
145 lwres_noopresponse_free(ctx, &noopresponse2);
147 lwres_context_freemem(ctx, b.base, b.length);
161 ret = lwres_getaddrsbyname(ctx, target,
168 lwres_gabnresponse_free(ctx, &res);
193 lwres_gabnresponse_free(ctx, &res);
215 ret = lwres_getnamebyaddr(ctx, af, len, addrbuf, &res);
226 lwres_gnbaresponse_free(ctx, &res);
261 ctx = NULL;
263 ret = lwres_context_create(&ctx, mem, mem_alloc, mem_free, 0);
265 ret = lwres_context_create(&ctx, NULL, NULL, NULL, 0);
270 ret = lwres_conf_parse(ctx, "/etc/resolv.conf");
273 lwres_conf_print(ctx, stdout);
295 lwres_conf_clear(ctx);
296 lwres_context_destroy(&ctx);