KAPI void console_consumer_register(void *inst, PFN_console_consumer_write callback, u8 *out_consumer_id)
Registers a console consumer with the console system.
struct console_command_argument console_command_argument
Represents a single console command argument's value. Always represented as a string,...
void console_shutdown(void *state)
Shuts down the console system.
struct console_command_context console_command_context
Context to be passed along with an executing console command (i.e. arguments to the command).
KAPI b8 console_command_unregister(const char *command)
Unregisters the given command.
void console_write_line(log_level level, const char *message)
Called internally by the logging system to write a new line to the console.
void(* PFN_console_command)(console_command_context context)
A typedef for a function pointer which represents a registered console command, and is called when tr...
Definition: console.h:52
KAPI void console_consumer_update(u8 consumer_id, void *inst, PFN_console_consumer_write callback)
Updates the instance and callback for the consumer with the given identifier.
KAPI b8 console_command_register(const char *command, u8 arg_count, PFN_console_command func)
Registers a console command with the console system.
b8(* PFN_console_consumer_write)(void *inst, log_level level, const char *message)
Typedef for a console consumer write function, which is invoked every time a logging event occurs....
Definition: console.h:23
KAPI b8 console_command_execute(const char *command)
Executes a console command.
b8 console_initialize(u64 *memory_requirement, void *memory, void *config)
Initializes the console system. As with other systems, must be called twice; once to get the memory r...
This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:177
_Bool b8
8-bit boolean type
Definition: defines.h:58
unsigned long long u64
Unsigned 64-bit integer.
Definition: defines.h:28
unsigned char u8
Unsigned 8-bit integer.
Definition: defines.h:19
This file contains structures and logic pertaining to the logging system.
log_level
Represents levels of logging.
Definition: logger.h:32
Represents a single console command argument's value. Always represented as a string,...
Definition: console.h:31
const char * value
The argument's value.
Definition: console.h:33
Context to be passed along with an executing console command (i.e. arguments to the command).
Definition: console.h:40
u8 argument_count
The number of arguments passed.
Definition: console.h:42
console_command_argument * arguments
The arguments array.
Definition: console.h:44