Remove const qualifier from the json_t parameter in json_*_set() functions.
[jansson.git] / src / jansson.h
index 6751998..28401b4 100644 (file)
@@ -9,7 +9,10 @@
 #define JANSSON_H
 
 #include <stdio.h>
-#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /* types */
 
@@ -115,11 +118,15 @@ int json_array_insert(json_t *array, unsigned int index, json_t *value)
     return json_array_insert_new(array, index, json_incref(value));
 }
 
-const char *json_string_value(const json_t *json);
-int json_integer_value(const json_t *json);
-double json_real_value(const json_t *json);
+const char *json_string_value(const json_t *string);
+int json_integer_value(const json_t *integer);
+double json_real_value(const json_t *real);
 double json_number_value(const json_t *json);
 
+int json_string_set(json_t *string, const char *value);
+int json_integer_set(json_t *integer, int value);
+int json_real_set(json_t *real, double value);
+
 
 /* loading, printing */
 
@@ -140,4 +147,8 @@ char *json_dumps(const json_t *json, unsigned long flags);
 int json_dumpf(const json_t *json, FILE *output, unsigned long flags);
 int json_dump_file(const json_t *json, const char *path, unsigned long flags);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif