libobs: Add obs_data_save_json function

We keep having to repeat code for saving the json data to a file, so add
a helper function to help clean up some of that code.
This commit is contained in:
jp9000
2015-08-21 17:47:13 -07:00
parent dd9107dbd8
commit 40988f7e1d
2 changed files with 13 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ EXPORT void obs_data_addref(obs_data_t *data);
EXPORT void obs_data_release(obs_data_t *data);
EXPORT const char *obs_data_get_json(obs_data_t *data);
EXPORT bool obs_data_save_json(obs_data_t *data, const char *file);
EXPORT void obs_data_apply(obs_data_t *target, obs_data_t *apply_data);