Lines Matching refs:resolv_ctx
72 struct resolv_ctx *ctx;
76 struct resolv_ctx {
98 struct resolv_ctx *ctx;
154 add_timeout_timer(struct tevent_context *ev, struct resolv_ctx *ctx)
187 struct resolv_ctx *ctx = talloc_get_type(private_data, struct resolv_ctx);
234 schedule_request_timeout(struct tevent_context *ev, struct resolv_ctx *ctx,
275 schedule_timeout_watcher(struct tevent_context *ev, struct resolv_ctx *ctx,
291 unschedule_timeout_watcher(struct resolv_ctx *ctx, struct resolv_request *rreq)
311 static void fd_event_add(struct resolv_ctx *ctx, int s, int flags);
312 static void fd_event_close(struct resolv_ctx *ctx, int s);
323 struct resolv_ctx *ctx = talloc_get_type(data, struct resolv_ctx);
350 fd_event_add(struct resolv_ctx *ctx, int s, int flags)
377 fd_event_close(struct resolv_ctx *ctx, int s)
393 resolv_ctx_destructor(struct resolv_ctx *ctx)
412 recreate_ares_channel(struct resolv_ctx *ctx)
453 int timeout, struct resolv_ctx **ctxp)
456 struct resolv_ctx *ctx;
464 ctx = talloc_zero(mem_ctx, struct resolv_ctx);
487 resolv_reread_configuration(struct resolv_ctx *ctx)
666 struct resolv_ctx *resolv_ctx;
684 struct resolv_ctx *ctx,
698 state->resolv_ctx = ctx;
707 state->status = ares_gethostbyname_file(state->resolv_ctx->channel,
758 struct resolv_ctx *resolv_ctx;
788 struct resolv_ctx *ctx, const char *name,
806 state->resolv_ctx = ctx;
844 if (state->resolv_ctx->channel == NULL) {
863 rreq = schedule_timeout_watcher(state->ev, state->resolv_ctx, req);
869 ares_search(state->resolv_ctx->channel,
904 && state->resolv_ctx->channel != NULL) {
1036 struct resolv_ctx *resolv_ctx;
1068 struct resolv_ctx *ctx, const char *name,
1087 state->resolv_ctx = ctx;
1285 state->resolv_ctx,
1292 state->resolv_ctx,
1559 struct resolv_ctx *resolv_ctx;
1579 struct resolv_ctx *ctx, const char *query)
1598 state->resolv_ctx = ctx;
1727 && state->resolv_ctx->channel != NULL) {
1803 if (state->resolv_ctx->channel == NULL) {
1819 rreq = schedule_timeout_watcher(state->ev, state->resolv_ctx, req);
1825 ares_query(state->resolv_ctx->channel, state->query,
1899 struct resolv_ctx *resolv_ctx;
1918 struct resolv_ctx *ctx, const char *query)
1937 state->resolv_ctx = ctx;
1978 && state->resolv_ctx->channel != NULL) {
1980 ares_query(state->resolv_ctx->channel, state->query,
2045 if (state->resolv_ctx->channel == NULL) {
2061 rreq = schedule_timeout_watcher(state->ev, state->resolv_ctx, req);
2067 ares_query(state->resolv_ctx->channel, state->query,