Ultralight C API 1.3.0
Loading...
Searching...
No Matches
CAPI_Logger.h
Go to the documentation of this file.
1/******************************************************************************
2 * This file is a part of Ultralight, an ultra-portable web-browser engine. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2023 Ultralight, Inc. *
7 *****************************************************************************/
8#ifndef ULTRALIGHT_CAPI_LOGGER_H
9#define ULTRALIGHT_CAPI_LOGGER_H
10
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/******************************************************************************
18 * Logger
19 *****************************************************************************/
20
22
23///
24/// The callback invoked when the library wants to print a message to the log.
25///
26typedef void (*ULLoggerLogMessageCallback)(ULLogLevel log_level, ULString message);
27
28typedef struct {
30} ULLogger;
31
32#ifdef __cplusplus
33} // extern "C"
34#endif
35
36#endif // ULTRALIGHT_CAPI_LOGGER_H
struct C_String * ULString
Definition CAPI_Defines.h:54
ULLogLevel
Definition CAPI_Logger.h:21
@ kLogLevel_Info
Definition CAPI_Logger.h:21
@ kLogLevel_Error
Definition CAPI_Logger.h:21
@ kLogLevel_Warning
Definition CAPI_Logger.h:21
void(* ULLoggerLogMessageCallback)(ULLogLevel log_level, ULString message)
The callback invoked when the library wants to print a message to the log.
Definition CAPI_Logger.h:26
Definition CAPI_Logger.h:28
ULLoggerLogMessageCallback log_message
Definition CAPI_Logger.h:29