js

js

Synopsis

JSValueRef          gebr_js_eval_with_url               (JSContextRef ctx,
                                                         const gchar *script,
                                                         const gchar *url);
JSValueRef          gebr_js_evaluate                    (JSContextRef ctx,
                                                         const gchar *script);
JSValueRef          gebr_js_evaluate_file               (JSContextRef ctx,
                                                         const gchar *file);
gchar *             gebr_js_value_to_string             (JSContextRef ctx,
                                                         JSValueRef value);
GString *           gebr_js_value_get_string            (JSContextRef ctx,
                                                         JSValueRef val);
JSObjectRef         gebr_js_make_function               (JSContextRef ctx,
                                                         const gchar *name,
                                                         JSObjectCallAsFunctionCallback callback);
gboolean            gebr_js_include                     (JSContextRef ctx,
                                                         const gchar *file);

Description

Details

gebr_js_eval_with_url ()

JSValueRef          gebr_js_eval_with_url               (JSContextRef ctx,
                                                         const gchar *script,
                                                         const gchar *url);

gebr_js_evaluate ()

JSValueRef          gebr_js_evaluate                    (JSContextRef ctx,
                                                         const gchar *script);

gebr_js_evaluate_file ()

JSValueRef          gebr_js_evaluate_file               (JSContextRef ctx,
                                                         const gchar *file);

gebr_js_value_to_string ()

gchar *             gebr_js_value_to_string             (JSContextRef ctx,
                                                         JSValueRef value);

gebr_js_value_get_string ()

GString *           gebr_js_value_get_string            (JSContextRef ctx,
                                                         JSValueRef val);

gebr_js_make_function ()

JSObjectRef         gebr_js_make_function               (JSContextRef ctx,
                                                         const gchar *name,
                                                         JSObjectCallAsFunctionCallback callback);

gebr_js_include ()

gboolean            gebr_js_include                     (JSContextRef ctx,
                                                         const gchar *file);