Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/include/secp256k1.h
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | |||||
* replaced at link time if the preprocessor macro | * replaced at link time if the preprocessor macro | ||||
* USE_EXTERNAL_DEFAULT_CALLBACKS is defined, which is the case if the build | * USE_EXTERNAL_DEFAULT_CALLBACKS is defined, which is the case if the build | ||||
* has been configured with --enable-external-default-callbacks. Then the | * has been configured with --enable-external-default-callbacks. Then the | ||||
* following two symbols must be provided to link against: | * following two symbols must be provided to link against: | ||||
* - void secp256k1_default_illegal_callback_fn(const char* message, void* data); | * - void secp256k1_default_illegal_callback_fn(const char* message, void* data); | ||||
* - void secp256k1_default_error_callback_fn(const char* message, void* data); | * - void secp256k1_default_error_callback_fn(const char* message, void* data); | ||||
* The library can call these default handlers even before a proper callback data | * The library can call these default handlers even before a proper callback data | ||||
* pointer could have been set using secp256k1_context_set_illegal_callback or | * pointer could have been set using secp256k1_context_set_illegal_callback or | ||||
* secp256k1_context_set_illegal_callback, e.g., when the creation of a context | * secp256k1_context_set_error_callback, e.g., when the creation of a context | ||||
* fails. In this case, the corresponding default handler will be called with | * fails. In this case, the corresponding default handler will be called with | ||||
* the data pointer argument set to NULL. | * the data pointer argument set to NULL. | ||||
* | * | ||||
* Args: ctx: an existing context object (cannot be NULL) | * Args: ctx: an existing context object (cannot be NULL) | ||||
* In: fun: a pointer to a function to call when an illegal argument is | * In: fun: a pointer to a function to call when an illegal argument is | ||||
* passed to the API, taking a message and an opaque pointer. | * passed to the API, taking a message and an opaque pointer. | ||||
* (NULL restores the default handler.) | * (NULL restores the default handler.) | ||||
* data: the opaque pointer to pass to fun above. | * data: the opaque pointer to pass to fun above. | ||||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |