#ifndef LIBTIO_LOG_H # define LIBTIO_LOG_H # include "cdefs.h" # include "iter.h" TIO_BEGIN_NAMESPACE TIO_BEGIN_DECLS /* Get and set the log level at runtime. */ TIO_EXTERN(void) tio_setlog OF((char const *tio__level)); TIO_EXTERN(char const *) tio_getlog OF((void)); /* List log levels (deprecated interface) */ typedef TIO_HOOK_TYPE(void) tio_log_list_t OF((void *tio__cookie, char const *tio__str)); TIO_DEPRECATED TIO_EXTERN(void) tio_listlog OF((tio_log_list_t *tio__callback, void *tio__cookie)); /* List log levels (new interface). * This iterator yields strings (`char const *`). */ TIO_EXTERN(int) tio_iter_log OF((tio_iter_t **tio__iter)); # define tio_next_log(ITER, PTRP) (tio_next((ITER), \ (void **)(char const **)(PTRP))) TIO_END_DECLS TIO_END_NAMESPACE #endif /* LIBTIO_LOG_H */