summaryrefslogtreecommitdiffstats
path: root/slv2
diff options
context:
space:
mode:
Diffstat (limited to 'slv2')
-rw-r--r--slv2/value.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/slv2/value.h b/slv2/value.h
index 53bad8c..db447dd 100644
--- a/slv2/value.h
+++ b/slv2/value.h
@@ -33,12 +33,36 @@ extern "C" {
/** Create a new URI value.
*
- * Returned value must be freed by called with slv2_value_free.
+ * Returned value must be freed by caller with slv2_value_free.
*/
SLV2Value
slv2_value_new_uri(SLV2World world, const char* uri);
+/** Create a new string value (with no language).
+ *
+ * Returned value must be freed by caller with slv2_value_free.
+ */
+SLV2Value
+slv2_value_new_string(SLV2World world, const char* str);
+
+
+/** Create a new integer value.
+ *
+ * Returned value must be freed by caller with slv2_value_free.
+ */
+SLV2Value
+slv2_value_new_int(SLV2World world, int val);
+
+
+/** Create a new floating point value.
+ *
+ * Returned value must be freed by caller with slv2_value_free.
+ */
+SLV2Value
+slv2_value_new_float(SLV2World world, float val);
+
+
/** Free an SLV2Value.
*/
void