typedef ompd_rc_t (*ompd_callback_print_string_fn_t) (
const char *string,
int category
);
Summary The ompd_callback_print_string_fn_t type is the type signature of the callback that the third-party tool provides so that the OMPD library can emit output.
Description The OMPD library may call the ompd_callback_print_string_fn_t callback function to emit output, such as logging or debug information. The third-party tool may set the ompd_callback_print_string_fn_t callback function to NULL to prevent the OMPD library from emitting output. The OMPD library may not write to file descriptors that it did not open.
Description of Arguments The string argument is the null-terminated string to be printed. No conversion or formatting is performed on the string.
The category argument is the implementation-defined category of the string to be printed.
Description of Return Codes Routines that use the ompd_callback_print_string_fn_t type may return the general return codes listed at the beginning of Section 5.4.