[#ASYNC_WAIT_CTX_get_callback]
= ASYNC&lowbar;WAIT&lowbar;CTX&lowbar;get&lowbar;callback
:mrdocs:

Retrieve the completion callback previously set on an async wait context&period;

== Synopsis

Declared in `&lt;openssl&sol;async&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASYNC&lowbar;WAIT&lowbar;CTX&lowbar;get&lowbar;callback(
    xref:ASYNC_WAIT_CTX.adoc[ASYNC&lowbar;WAIT&lowbar;CTX]* ctx,
    xref:ASYNC_callback_fn.adoc[ASYNC&lowbar;callback&lowbar;fn]* callback,
    void** callback&lowbar;arg);
----

== Return Value

1 if a callback is set, or 0 if none was registered&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Wait context to query&period;
| *callback*
| Receives the registered callback function pointer&period;
| *callback&lowbar;arg*
| Receives the callback user argument&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
