summaryrefslogtreecommitdiffstats
path: root/libhb/hb_json.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-12-16 16:50:50 +0000
committerjstebbins <[email protected]>2014-12-16 16:50:50 +0000
commitf56efd7b52c89da8cac55b4d4a187f2c87fdfee6 (patch)
tree24eacb856704fa8e4b8b8f0edc76568916f70255 /libhb/hb_json.h
parentd0a975e42dcab93e1d2eead350fb1ba3951d977c (diff)
json: add json APIs
There are several changes to job and title structs that break current windows interop code. The interop code should be changed such that it only uses json APIs. So if there is any missing features (or bugs) in these APIs, please let me know. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6602 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb_json.h')
-rw-r--r--libhb/hb_json.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/libhb/hb_json.h b/libhb/hb_json.h
new file mode 100644
index 000000000..c67566cb1
--- /dev/null
+++ b/libhb/hb_json.h
@@ -0,0 +1,32 @@
+/* hb_json.h
+
+ Copyright (c) 2003-2014 HandBrake Team
+ This file is part of the HandBrake source code
+ Homepage: <http://handbrake.fr/>.
+ It may be used under the terms of the GNU General Public License v2.
+ For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
+ */
+
+#ifndef HB_JSON_H
+#define HB_JSON_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "hb.h"
+
+char * hb_get_title_set_json(hb_handle_t * h);
+char * hb_title_to_json(const hb_title_t * title);
+char * hb_job_init_json(hb_handle_t *h, int title_index);
+char * hb_job_to_json(const hb_job_t * job);
+hb_job_t * hb_json_to_job(hb_handle_t * h, const char * json_job);
+int hb_add_json(hb_handle_t *h, const char * json_job);
+char * hb_set_anamorphic_size_json(const char * json_param);
+char * hb_get_state_json(hb_handle_t * h);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HB_JSON_H