mirror of
https://github.com/k0kubun/xremap
synced 2024-11-08 01:10:28 +00:00
12 lines
455 B
C
12 lines
455 B
C
#include <mruby.h>
|
|
#include <X11/Xlib.h>
|
|
|
|
// config.c
|
|
mrb_value load_config(mrb_state *mrb, char *filename);
|
|
|
|
// event_handler.c
|
|
mrb_value new_event_handler(mrb_state *mrb, mrb_value config, Display *display);
|
|
void handle_key_press(mrb_state *mrb, mrb_value event_handler, unsigned int state, unsigned int keycode);
|
|
void handle_property_notify(mrb_state *mrb, mrb_value event_handler);
|
|
void handle_mapping_notify(mrb_state *mrb, mrb_value event_handler);
|