mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 07:18:22 -04:00
Implement dbg log interface
This commit is contained in:
parent
a65d380889
commit
d2b1febb43
11 changed files with 471 additions and 1 deletions
26
exosphere/src/dbg/log_device_null.c
Normal file
26
exosphere/src/dbg/log_device_null.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "log_device_null.h"
|
||||
|
||||
static void initialize(debug_log_device_null_t *this) {
|
||||
(void)this;
|
||||
/* Do nothing */
|
||||
}
|
||||
|
||||
static void write_string(debug_log_device_null_t *this, const char *str, size_t len) {
|
||||
(void)this;
|
||||
(void)str;
|
||||
(void)len;
|
||||
/* Do nothing */
|
||||
}
|
||||
|
||||
static void finalize(debug_log_device_null_t *this) {
|
||||
(void)this;
|
||||
/* Do nothing */
|
||||
}
|
||||
|
||||
debug_log_device_null_t g_debug_log_device_null = {
|
||||
.super = {
|
||||
.initialize = (void (*)(debug_log_device_t *, ...))initialize,
|
||||
.write_string = (void (*)(debug_log_device_t *, const char *, size_t))write_string,
|
||||
.finalize = (void (*)(debug_log_device_t *))finalize,
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue