summaryrefslogtreecommitdiffstats
path: root/var.h
diff options
context:
space:
mode:
Diffstat (limited to 'var.h')
-rw-r--r--var.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/var.h b/var.h
index 9f3e7d82..b497e410 100644
--- a/var.h
+++ b/var.h
@@ -22,9 +22,11 @@
#ifndef INCLUDED_VAR_H
#define INCLUDED_VAR_H
+#include "stringbuf.h"
/* data types */
-typedef enum { /* do NOT start at 0 to detect uninitialized types after calloc() */
+typedef enum {
+ VARTYPE_NONE = 0, /* currently no value set */
VARTYPE_PSZ = 1,
VARTYPE_SHORT = 2,
VARTYPE_INT = 3,
@@ -53,6 +55,8 @@ typedef struct var_s {
rsRetVal varConstruct(var_t **ppThis);
rsRetVal varConstructFinalize(var_t __attribute__((unused)) *pThis);
rsRetVal varDestruct(var_t **ppThis);
+rsRetVal varSetString(var_t *pThis, rsCStrObj *pCStr);
PROTOTYPEObjClassInit(var);
+PROTOTYPEObjDebugPrint(var);
#endif /* #ifndef INCLUDED_VAR_H */