aboutsummaryrefslogtreecommitdiffstats
path: root/c_src/esdl2.h
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-04-19 14:48:57 +0200
committerLoïc Hoguin <[email protected]>2017-04-19 14:48:57 +0200
commit1947c4d7f32272ec0c5b9295808cde4c9138995c (patch)
tree18afdcdfc3ea21167d84f7d57f09eb8542dc0fb9 /c_src/esdl2.h
parent3d3a8dcdc9a2f45888059e69587dd07c45aa856a (diff)
downloadesdl2-1947c4d7f32272ec0c5b9295808cde4c9138995c.tar.gz
esdl2-1947c4d7f32272ec0c5b9295808cde4c9138995c.tar.bz2
esdl2-1947c4d7f32272ec0c5b9295808cde4c9138995c.zip
Fix warnings in preparation for splitting nif_helpers out
Diffstat (limited to 'c_src/esdl2.h')
-rw-r--r--c_src/esdl2.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/c_src/esdl2.h b/c_src/esdl2.h
index df16664..10508ff 100644
--- a/c_src/esdl2.h
+++ b/c_src/esdl2.h
@@ -257,9 +257,15 @@ NIF_ATOMS(NIF_ATOM_H_DECL)
NIF_RESOURCES(NIF_RES_H_DECL)
NIF_FUNCTIONS(NIF_FUNCTION_H_DECL)
+// Utility functions used across different files.
+
+NIF_ATOM_TO_ENUM_FUNCTION_DECL(atom_to_bool, SDL_bool)
+NIF_ATOM_TO_ENUM_FUNCTION_DECL(atom_to_blend_mode, SDL_BlendMode)
+NIF_ENUM_TO_ATOM_FUNCTION_DECL(blend_mode_to_atom, SDL_BlendMode)
+
// --
-ErlNifPid* get_callback_process();
+ErlNifPid* get_callback_process(void);
#define sdl_error_tuple(env) \
enif_make_tuple2(env, \