diff options
author | Bastiaan Olij <mux213@gmail.com> | 2018-05-26 10:03:25 +1000 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2018-05-27 20:31:41 +1000 |
commit | 8901b3cf0050b107edc68a46005e67fd9aaf2999 (patch) | |
tree | b130394b4402e6c64d7b5b6e22fd3c1c50aa575c /modules/gdnative/include/arvr | |
parent | 6c649bd785b0901b0fcba37673f5256626d3f92d (diff) |
[WIP] Adding version info to GDNative ARVR interfaces
Diffstat (limited to 'modules/gdnative/include/arvr')
-rw-r--r-- | modules/gdnative/include/arvr/godot_arvr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/gdnative/include/arvr/godot_arvr.h b/modules/gdnative/include/arvr/godot_arvr.h index b9aedc0bef..63de62b507 100644 --- a/modules/gdnative/include/arvr/godot_arvr.h +++ b/modules/gdnative/include/arvr/godot_arvr.h @@ -37,7 +37,15 @@ extern "C" { #endif +// For future versions of the API we should only add new functions at the end of the structure and use the +// version info to detect whether a call is available + +// Use these to populate version in your plugin +#define GODOTVR_API_MAJOR 1 +#define GODOTVR_API_MINOR 0 + typedef struct { + godot_gdnative_api_version version; /* version of our API */ void *(*constructor)(godot_object *); void (*destructor)(void *); godot_string (*get_name)(const void *); |