Lines Matching refs:ctx
20 void ASYNC_WAIT_CTX_free(ASYNC_WAIT_CTX *ctx)
25 if (ctx == NULL)
28 curr = ctx->fds;
33 curr->cleanup(ctx, curr->key, curr->fd, curr->custom_data);
41 OPENSSL_free(ctx);
43 int ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key,
60 fdlookup->next = ctx->fds;
61 ctx->fds = fdlookup;
62 ctx->numadd++;
66 int ASYNC_WAIT_CTX_get_fd(ASYNC_WAIT_CTX *ctx, const void *key,
71 curr = ctx->fds;
88 int ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd,
93 curr = ctx->fds;
111 int ASYNC_WAIT_CTX_get_changed_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *addfd,
117 *numaddfds = ctx->numadd;
118 *numdelfds = ctx->numdel;
122 curr = ctx->fds;
140 int ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key)
144 curr = ctx->fds;
156 if (ctx->fds == curr) {
157 ctx->fds = curr->next;
166 ctx->numadd--;
176 ctx->numdel++;
185 int ASYNC_WAIT_CTX_set_callback(ASYNC_WAIT_CTX *ctx,
189 if (ctx == NULL)
192 ctx->callback = callback;
193 ctx->callback_arg = callback_arg;
197 int ASYNC_WAIT_CTX_get_callback(ASYNC_WAIT_CTX *ctx,
201 if (ctx->callback == NULL)
204 *callback = ctx->callback;
205 *callback_arg = ctx->callback_arg;
209 int ASYNC_WAIT_CTX_set_status(ASYNC_WAIT_CTX *ctx, int status)
211 ctx->status = status;
215 int ASYNC_WAIT_CTX_get_status(ASYNC_WAIT_CTX *ctx)
217 return ctx->status;
220 void async_wait_ctx_reset_counts(ASYNC_WAIT_CTX *ctx)
224 ctx->numadd = 0;
225 ctx->numdel = 0;
227 curr = ctx->fds;
232 ctx->fds = curr->next;
237 curr = ctx->fds;