summaryrefslogtreecommitdiff
path: root/src/bindings/luajit
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-05-26 18:35:48 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-05-26 18:35:48 +0200
commit223c0a0fdce07cd2c8c81d71f905e40834ae9486 (patch)
tree11575b0362b2a90865f3bab8dbc638d1e5b45b42 /src/bindings/luajit
parent21790b055b37fb8949d33d60ebec9bb5d800a633 (diff)
eolian: add runtime API to get file format version
This is useful for FFI based bindings (like the Lua or Python ones) and so on.
Diffstat (limited to 'src/bindings/luajit')
-rw-r--r--src/bindings/luajit/eolian.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index 5e60c89771..07959789ea 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -290,6 +290,7 @@ ffi.cdef [[
290 290
291 int eolian_init(void); 291 int eolian_init(void);
292 int eolian_shutdown(void); 292 int eolian_shutdown(void);
293 unsigned short eolian_file_format_version_get(void);
293 Eolian_State *eolian_state_new(void); 294 Eolian_State *eolian_state_new(void);
294 void eolian_state_free(Eolian_State *state); 295 void eolian_state_free(Eolian_State *state);
295 Eolian_Panic_Cb eolian_state_panic_cb_set(Eolian_State *state, Eolian_Panic_Cb cb); 296 Eolian_Panic_Cb eolian_state_panic_cb_set(Eolian_State *state, Eolian_Panic_Cb cb);
@@ -491,6 +492,7 @@ local init = function()
491 eolian = util.lib_load("eolian") 492 eolian = util.lib_load("eolian")
492 eina = util.lib_load("eina") 493 eina = util.lib_load("eina")
493 eolian.eolian_init() 494 eolian.eolian_init()
495 M.file_format_version = eolian.eolian_file_format_version_get()
494end 496end
495 497
496local shutdown = function() 498local shutdown = function()