summaryrefslogtreecommitdiff
path: root/modules/dlscript/godot/godot_rid.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dlscript/godot/godot_rid.h')
-rw-r--r--modules/dlscript/godot/godot_rid.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/dlscript/godot/godot_rid.h b/modules/dlscript/godot/godot_rid.h
new file mode 100644
index 0000000000..f20c0d4dae
--- /dev/null
+++ b/modules/dlscript/godot/godot_rid.h
@@ -0,0 +1,28 @@
+#ifndef GODOT_DLSCRIPT_RID_H
+#define GODOT_DLSCRIPT_RID_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+#ifndef GODOT_CORE_API_GODOT_RID_TYPE_DEFINED
+typedef struct godot_rid {
+ uint8_t _dont_touch_that[8];
+} godot_rid;
+#endif
+
+#include "../godot.h"
+
+void GDAPI godot_rid_new(godot_rid *p_rid, godot_object *p_from);
+
+uint32_t GDAPI godot_rid_get_rid(const godot_rid *p_rid);
+
+void GDAPI godot_rid_destroy(godot_rid *p_rid);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // GODOT_DLSCRIPT_RID_H