summaryrefslogtreecommitdiff
path: root/src/js.h
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2014-01-19 02:02:36 +0100
committerDaniel Carl <danielcarl@gmx.de>2014-01-19 02:02:36 +0100
commitafcdae37b3184eac69de8f0871bae12131769608 (patch)
tree8d7fa3553bf4f991a3be0f1cd6183409a7fc3d38 /src/js.h
parentd877e3ccf04d2fd4e8dd3304bf4855328c69c8e6 (diff)
Fixed nextpattern to js value conversion (#62).
The prev- and nextpatterns can't be given to JavaScript as strings that are split on the ',' to be interpreted as regular expression. So the patterns have to be given as array of RegExp objects instead.
Diffstat (limited to 'src/js.h')
-rw-r--r--src/js.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js.h b/src/js.h
index 7ab81c8..491fc50 100644
--- a/src/js.h
+++ b/src/js.h
@@ -30,5 +30,6 @@ char* js_object_call_function(JSContextRef ctx, JSObjectRef obj,
const char *func, int count, JSValueRef params[]);
char *js_ref_to_string(JSContextRef ctx, JSValueRef ref);
JSValueRef js_string_to_ref(JSContextRef ctx, const char *string);
+JSValueRef js_object_to_ref(JSContextRef ctx, const char *json);
#endif /* end of include guard: _JS_H */