#ifndef XBOX_REF_LOG_H
#define XBOX_REF_LOG_H

#include <stddef.h>
#include <stdint.h>
#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

int xbox_ref_log_open_for_target(const char *target_filename, char drive_letter);
int xbox_ref_log_retarget(const char *target_filename);
void xbox_ref_log_close(void);
int xbox_ref_log_is_open(void);
const char *xbox_ref_log_path(void);
int xbox_ref_printf(const char *fmt, ...);
int xbox_ref_log_fprintf(FILE *stream, const char *fmt, ...);
int xbox_ref_console_printf(const char *fmt, ...);
void xbox_ref_log_hexdump(const char *prefix, const uint8_t *data, size_t length, size_t console_limit);

#ifdef __cplusplus
}
#endif

#endif
