Lines Matching refs:ctx

36                         struct ipa_options *ctx)
40 ctx->be_res = be_ctx->be_res;
41 if (ctx->be_res == NULL) {
47 ret = be_nsupdate_init_timer(ctx->dyndns_ctx, be_ctx->ev,
48 ipa_dyndns_timer, ctx);
56 ctx, NULL);
69 struct ipa_options *ctx;
76 struct ipa_options *ctx = talloc_get_type(pvt, struct ipa_options);
77 struct sdap_id_ctx *sdap_ctx = ctx->id_ctx->sdap_id_ctx;
80 req = sdap_dyndns_timer_conn_send(ctx, sdap_ctx->be->ev, sdap_ctx,
81 ctx->dyndns_ctx);
85 be_nsupdate_timer_schedule(sdap_ctx->be->ev, ctx->dyndns_ctx);
88 tevent_req_set_callback(req, ipa_dyndns_timer_connected, ctx);
94 struct ipa_options *ctx = tevent_req_callback_data(req,
106 return ipa_dyndns_update(ctx);
109 static struct tevent_req *ipa_dyndns_update_send(struct ipa_options *ctx);
116 struct ipa_options *ctx = talloc_get_type(pvt, struct ipa_options);
117 struct sdap_id_ctx *sdap_ctx = ctx->id_ctx->sdap_id_ctx;
120 be_nsupdate_timer_schedule(sdap_ctx->be->ev, ctx->dyndns_ctx);
122 struct tevent_req *req = ipa_dyndns_update_send(ctx);
150 ipa_dyndns_update_send(struct ipa_options *ctx)
155 struct sdap_id_ctx *sdap_ctx = ctx->id_ctx->sdap_id_ctx;
159 req = tevent_req_create(ctx, &state, struct ipa_dyndns_update_state);
163 state->ipa_ctx = ctx;
167 if (ctx->service == NULL) {
173 if (ctx->service->sdap == NULL) {
179 if (ctx->service->sdap->uri == NULL) {
185 if (ctx->dyndns_ctx->last_refresh + 60 > time(NULL) ||
186 ctx->dyndns_ctx->timer_in_progress) {
195 if (strncmp(ctx->service->sdap->uri,
204 ctx->dyndns_ctx->opts,
206 ctx->dyndns_ctx->auth_type,
207 dp_opt_get_string(ctx->dyndns_ctx->opts,
209 dp_opt_get_string(ctx->basic,
211 dp_opt_get_string(ctx->basic,
213 dp_opt_get_int(ctx->dyndns_ctx->opts,