44 typedef void (*apiproc)(void);
46 int load(
void *handle,
const std::vector<std::tuple<apiproc *, const char *>> &funcs,
bool strict =
true);
47 void *
handle(
const std::vector<const char *> &libs);
69 int open_drm_card_fd(
const std::filesystem::path &path,
int flags = O_RDWR);
int close(int __fd)
Release the native resource held by the RAII wrapper.
int load(void *handle, const std::vector< std::tuple< apiproc *, const char * > > &funcs, bool strict)
Load persisted state from its backing store.
Definition misc.cpp:135
void * handle(const std::vector< const char * > &libs)
Return the native handle owned by the wrapper.
Definition misc.cpp:109
window_system_e window_system
Window system.
Definition misc.cpp:103
window_system_e
Enumerates supported window system options.
Definition misc.h:32
util::safe_ptr_v2< FILE, int, fclose > file_t
Boost.Process pipe stream used for child-process I/O.
Definition process.h:38
Declarations for utility functions.
#define KITTY_USING_MOVE_T(move_t, t, init_val, z)
Define a move-only RAII wrapper with caller-provided initial value and destructor body.
Definition utility.h:48