DungeonCrawl
|
Implementation of the handler for handling Input/Output. More...
#include "io_handler.h"
#include "../common.h"
#include "../logging/logger.h"
#include "../thread/thread_handler.h"
#include "input/input_handler.h"
#include "output/common/output_handler.h"
#include "output/media/media_output.h"
#include "output/media/media_output_handler.h"
#include "output/specific/wait_output.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <unistd.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 | |
struct notcurses * | nc = NULL |
struct ncplane * | stdplane = NULL |
Implementation of the handler for handling Input/Output.
Definition in file io_handler.c.
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.
struct notcurses* nc = NULL |
Definition at line 26 of file io_handler.c.
struct ncplane* stdplane = NULL |
Definition at line 27 of file io_handler.c.