aboutsummaryrefslogtreecommitdiffstats
path: root/c_src/esdl2.h
diff options
context:
space:
mode:
Diffstat (limited to 'c_src/esdl2.h')
-rw-r--r--c_src/esdl2.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/c_src/esdl2.h b/c_src/esdl2.h
index 530abc4..df16664 100644
--- a/c_src/esdl2.h
+++ b/c_src/esdl2.h
@@ -27,6 +27,7 @@
A(blend) \
A(borderless) \
A(button) \
+ A(callback) \
A(caps) \
A(centered) \
A(charged) \
@@ -133,6 +134,8 @@
#define NIF_FUNCTION_NAME(f) esdl2_ ## f
#define NIF_FUNCTIONS(F) \
+ /* internal */ \
+ F(register_callback_process, 0) \
/* sdl */ \
F(init, 1) \
F(init_subsystem, 1) \
@@ -166,6 +169,8 @@
/* sdl_gl */ \
F(gl_create_context, 1) \
F(gl_swap_window, 1) \
+ /* sdl_hints */ \
+ F(add_hint_callback, 3) \
/* sdl_keyboard */ \
F(is_text_input_active, 0) \
F(start_text_input, 0) \
@@ -254,6 +259,8 @@ NIF_FUNCTIONS(NIF_FUNCTION_H_DECL)
// --
+ErlNifPid* get_callback_process();
+
#define sdl_error_tuple(env) \
enif_make_tuple2(env, \
atom_error, \