libobs: Add obs_data_create_from_json_file func

Just a little helper function that allows you to create an obs_data_t
object from a json file (rather than having to manually open it each
time and then call obs_data_create_from_json on the file data)
This commit is contained in:
jp9000
2015-08-16 03:49:53 -07:00
parent 1ca065b0f2
commit d53cef47ac
2 changed files with 15 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ enum obs_data_number_type {
EXPORT obs_data_t *obs_data_create();
EXPORT obs_data_t *obs_data_create_from_json(const char *json_string);
EXPORT obs_data_t *obs_data_create_from_json_file(const char *json_file);
EXPORT void obs_data_addref(obs_data_t *data);
EXPORT void obs_data_release(obs_data_t *data);