summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-05-18 20:10:49 +0000
committerjstebbins <[email protected]>2015-05-18 20:10:49 +0000
commit64380ec082899fc3209dd9d10ad45889ac531e8f (patch)
tree493a5abe33530c2172c7cdbd0aac02ec7335e040 /libhb
parent525d9fae34a7981eb5f6de46135d909551480043 (diff)
dict: make hb_value_get_json param const
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7208 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/hb_dict.c2
-rw-r--r--libhb/hb_dict.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libhb/hb_dict.c b/libhb/hb_dict.c
index 634b25b09..1eb42b059 100644
--- a/libhb/hb_dict.c
+++ b/libhb/hb_dict.c
@@ -415,7 +415,7 @@ hb_value_get_string_xform(const hb_value_t *value)
return result;
}
-char * hb_value_get_json(hb_value_t *value)
+char * hb_value_get_json(const hb_value_t *value)
{
return json_dumps(value, JSON_INDENT(4) | JSON_SORT_KEYS);
}
diff --git a/libhb/hb_dict.h b/libhb/hb_dict.h
index 243d8885d..ac3a562b0 100644
--- a/libhb/hb_dict.h
+++ b/libhb/hb_dict.h
@@ -113,7 +113,7 @@ int hb_value_get_bool(const hb_value_t *value);
* caller must free the returned string */
char * hb_value_get_string_xform(const hb_value_t *value);
/* converts value to json string */
-char * hb_value_get_json(hb_value_t *value);
+char * hb_value_get_json(const hb_value_t *value);
/* write json representation to a file */
int hb_value_write_file_json(hb_value_t *value, FILE *file);
int hb_value_write_json(hb_value_t *value, const char *path);