VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifndef VLCB_NOLOGGING
6
7typedef enum {
10#ifdef DEBUG
11 VLCB_LOG_DEBUG,
12#endif // DEBUG
14
19
20void VlcbLogInfo(vlcb_error message);
21void VlcbLogError(vlcb_error message);
22#ifdef DEBUG
23void VlcbLogDebug(vlcb_error message);
24#endif // DEBUG
25
27
29
30#define VLCBLOG_INFO(msg) VlcbLogInfo(msg);
31#define VLCBLOG_ERROR(msg) VlcbLogError(msg);
32#ifdef DEBUG
33#define VLCBLOG_DEBUG(msg) VlcbLogDebug(msg);
34#else
35#define VLCBLOG_DEBUG(msg) ;
36#endif // DEBUG
37
38#else
39
40#define VLCBLOG_INFO(msg) ;
41#define VLCBLOG_ERROR(msg) ;
42#define VLCBLOG_DEBUG(msg) ;
43
44#endif // !VLCB_NOLOGGING
const char *const vlcb_error
Definition error.h:3
void VlcbLogInfo(vlcb_error message)
Definition log.c:15
VlcbLogMessageType
Definition log.h:7
@ VLCB_LOG_ERROR
Definition log.h:9
@ VLCB_LOG_INFO
Definition log.h:8
void VlcbLogError(vlcb_error message)
Definition log.c:19
void vlcb_log_RegisterMessageHandler(VlcbLogMessageHandler handler)
Definition log.c:29
void VlcbLogMessageHandler(VlcbLogMessage msg)
Definition log.h:26
vlcb_error message
Definition log.h:17
VlcbLogMessageType type
Definition log.h:16