MONGOC_OIDC_CALLBACK_NEW_WITH_USER_DATA(3)

SYNOPSIS

    mongoc_oidc_callback_t *
    mongoc_oidc_callback_new_with_user_data (mongoc_oidc_callback_fn_t fn, void *user_data)

Create a new mongoc_oidc_callback_t object which stores the provided OIDC callback function and pointer to user data.

WARNING: The lifetime of the object pointed to by user_data is managed the user, not by mongoc_oidc_callback_t!

PARAMETERS

•   fn: a mongoc_oidc_callback_fn_t. Must not be NULL.

•   user_data: a pointer to user data or NULL.

RETURNS

A new mongoc_oidc_callback_t that must be freed with mongoc_oidc_callback_destroy(), or NULL when an invalid argument was given.

SEE ALSO:

•   mongoc_oidc_callback_t

•   mongoc_oidc_callback_new()

AUTHOR
MongoDB, Inc

COPYRIGHT
2009-present, MongoDB, Inc.