summaryrefslogtreecommitdiffstats
path: root/var.h
diff options
context:
space:
mode:
Diffstat (limited to 'var.h')
-rw-r--r--var.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/var.h b/var.h
index c02b93b2..f400b109 100644
--- a/var.h
+++ b/var.h
@@ -51,12 +51,20 @@ typedef struct var_s {
} var_t;
+/* interfaces */
+typedef struct var_if_s {
+ ifBEGIN; /* This MUST always be the first interface member */
+ INTERFACEObjDebugPrint(var);
+ rsRetVal (*Construct)(var_t **ppThis);
+ rsRetVal (*ConstructFinalize)(var_t __attribute__((unused)) *pThis);
+ rsRetVal (*Destruct)(var_t **ppThis);
+ rsRetVal (*SetString)(var_t *pThis, cstr_t *pCStr);
+} var_if_t;
+#define varCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */
+
+
/* prototypes */
-rsRetVal varConstruct(var_t **ppThis);
-rsRetVal varConstructFinalize(var_t __attribute__((unused)) *pThis);
-rsRetVal varDestruct(var_t **ppThis);
-rsRetVal varSetString(var_t *pThis, cstr_t *pCStr);
PROTOTYPEObjClassInit(var);
-PROTOTYPEObjDebugPrint(var);
+PROTOTYPEObjQueryInterface(var);
#endif /* #ifndef INCLUDED_VAR_H */