From 8901b3cf0050b107edc68a46005e67fd9aaf2999 Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Sat, 26 May 2018 10:03:25 +1000 Subject: [WIP] Adding version info to GDNative ARVR interfaces --- modules/gdnative/include/arvr/godot_arvr.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/gdnative/include') 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 *); -- cgit v1.2.3