Vanilla.PDF  1.6.0
Cross-platform toolkit for creating and modifying PDF documents
c_logging.h
Go to the documentation of this file.
1#ifndef _C_LOGGING_H
2#define _C_LOGGING_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
39 typedef enum {
44
49
54
59
66
75 VANILLAPDF_API error_type CALLING_CONVENTION Logging_IsEnabled(boolean_type* result);
76
80 VANILLAPDF_API error_type CALLING_CONVENTION Logging_Enable(void);
81
85 VANILLAPDF_API error_type CALLING_CONVENTION Logging_Disable(void);
86
90 VANILLAPDF_API error_type CALLING_CONVENTION Logging_GetSeverity(LoggingSeverity* level);
91
95 VANILLAPDF_API error_type CALLING_CONVENTION Logging_SetSeverity(LoggingSeverity level);
96
99#ifdef __cplusplus
100};
101#endif
102
103#endif /* _C_LOGGING_H */
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
LoggingSeverity
Available severity settings.
Definition: c_logging.h:39
@ LoggingSeverity_Fatal
Include only fatal problems, that disallow program to continue operating and will be shut down.
Definition: c_logging.h:64
@ LoggingSeverity_Info
Include detailed, but much less verbose output.
Definition: c_logging.h:48
@ LoggingSeverity_Warning
Include only potentially dangerous informations.
Definition: c_logging.h:53
@ LoggingSeverity_Error
Include only program and input errors.
Definition: c_logging.h:58
@ LoggingSeverity_Debug
Most verbose setting includes all available informations.
Definition: c_logging.h:43
This file contains types and constants used as parameters or return values.
error_type CALLING_CONVENTION Logging_SetSeverity(LoggingSeverity level)
Set new logging severity.
error_type CALLING_CONVENTION Logging_Enable(void)
Enable logging for current library instance.
error_type CALLING_CONVENTION Logging_IsEnabled(boolean_type *result)
Determine if logging is enabled in current library instance.
error_type CALLING_CONVENTION Logging_GetSeverity(LoggingSeverity *level)
Get actual logging severity.
error_type CALLING_CONVENTION Logging_Disable(void)
Disable logging for current library instance.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
int8_t boolean_type
Boolean type supported in C.
Definition: c_types.h:31