DungeonCrawl
|
Exposes functions for the IO-Handler. More...
#include "../common.h"
#include "input/input_handler.h"
#include "input/input_types.h"
#include "output/common/output_handler.h"
#include "output/media/media_output.h"
#include <notcurses/notcurses.h>
#include <stdbool.h>
Go to the source code of this file.
Functions | |
int | init_io_handler (void) |
Initialize the IO handler. | |
bool | run_background_task (void(*callback)(void)) |
Execute a function in a background thread. | |
void | shutdown_io_handler (void) |
Shutdown the IO handler. |
Variables | |
volatile int | init_done |
struct notcurses * | nc |
struct ncplane * | stdplane |
Exposes functions for the IO-Handler.
Definition in file io_handler.h.
int init_io_handler | ( | void | ) |
Initialize the IO handler.
Sets up all input and output subsystems.
Definition at line 29 of file io_handler.c.
bool run_background_task | ( | void(* | callback )(void) | ) |
Execute a function in a background thread.
This function executes the provided callback in a background thread.
callback | Function to execute in the background |
Definition at line 73 of file io_handler.c.
void shutdown_io_handler | ( | void | ) |
Shutdown the IO handler.
Cleans up all input and output subsystems.
Definition at line 84 of file io_handler.c.
|
extern |
Definition at line 26 of file io_handler.c.
|
extern |
Definition at line 27 of file io_handler.c.