summaryrefslogtreecommitdiff
path: root/modules/gdnative/include/arvr
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2018-05-26 10:03:25 +1000
committerBastiaan Olij <mux213@gmail.com>2018-05-27 20:31:41 +1000
commit8901b3cf0050b107edc68a46005e67fd9aaf2999 (patch)
treeb130394b4402e6c64d7b5b6e22fd3c1c50aa575c /modules/gdnative/include/arvr
parent6c649bd785b0901b0fcba37673f5256626d3f92d (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.h8
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 *);