]> FriiDump Source - friidump.git/blob - libfriidump/xbox_ref/xbox_ref_log.h
FriiDump 0.5.3.15: close XGD1 geometry and lead-in capture
[friidump.git] / libfriidump / xbox_ref / xbox_ref_log.h
1 #ifndef XBOX_REF_LOG_H
2 #define XBOX_REF_LOG_H
3
4 #include <stddef.h>
5 #include <stdint.h>
6 #include <stdio.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 int xbox_ref_log_open_for_target(const char *target_filename, char drive_letter);
13 int xbox_ref_log_retarget(const char *target_filename);
14 void xbox_ref_log_close(void);
15 int xbox_ref_log_is_open(void);
16 const char *xbox_ref_log_path(void);
17 int xbox_ref_printf(const char *fmt, ...);
18 int xbox_ref_log_fprintf(FILE *stream, const char *fmt, ...);
19 int xbox_ref_console_printf(const char *fmt, ...);
20 void xbox_ref_log_hexdump(const char *prefix, const uint8_t *data, size_t length, size_t console_limit);
21
22 #ifdef __cplusplus
23 }
24 #endif
25
26 #endif