From 0cbc5c01edc461f7ac0e40768a6a3a4f35938e66 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Wed, 10 Oct 2018 13:18:33 +0000 Subject: [PATCH] Update: Added comments --- src/refobject.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/refobject.h b/src/refobject.h index 9ba4d331..21fcb594 100644 --- a/src/refobject.h +++ b/src/refobject.h @@ -78,13 +78,20 @@ typedef void (*refobject_free_t)(refobject_t self, void **userdata); /* Meta type used to defined types. + * DO NOT use any of the members in here directly! */ typedef struct { + /* Size of this control structure */ size_t control_length; + /* ABI version of this structure */ int control_version; + + /* Total length of the objects to be created */ size_t type_length; + /* Name of type */ const char * type_name; + /* Callback to be called on final free() */ refobject_free_t type_freecb; } refobject_type_t;