nxt_js.h (2247:baa6b9879267) nxt_js.h (2248:67f848571b9f)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#ifndef _NXT_JS_H_INCLUDED_
7#define _NXT_JS_H_INCLUDED_
8

--- 8 unchanged lines hidden (view full) ---

17
18typedef struct {
19 njs_vm_t *vm;
20 njs_value_t array;
21} nxt_js_cache_t;
22
23
24nxt_js_conf_t *nxt_js_conf_new(nxt_mp_t *mp);
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#ifndef _NXT_JS_H_INCLUDED_
7#define _NXT_JS_H_INCLUDED_
8

--- 8 unchanged lines hidden (view full) ---

17
18typedef struct {
19 njs_vm_t *vm;
20 njs_value_t array;
21} nxt_js_cache_t;
22
23
24nxt_js_conf_t *nxt_js_conf_new(nxt_mp_t *mp);
25void nxt_js_set_proto(nxt_js_conf_t *jcf, njs_external_t *proto, nxt_uint_t n);
25nxt_js_t *nxt_js_add_tpl(nxt_js_conf_t *jcf, nxt_str_t *str, nxt_bool_t strz);
26nxt_int_t nxt_js_compile(nxt_js_conf_t *jcf);
27nxt_int_t nxt_js_test(nxt_js_conf_t *jcf, nxt_str_t *str, u_char *error);
28nxt_int_t nxt_js_call(nxt_task_t *task, nxt_js_cache_t *cache, nxt_js_t *js,
29 nxt_str_t *str, void *ctx);
30
31
26nxt_js_t *nxt_js_add_tpl(nxt_js_conf_t *jcf, nxt_str_t *str, nxt_bool_t strz);
27nxt_int_t nxt_js_compile(nxt_js_conf_t *jcf);
28nxt_int_t nxt_js_test(nxt_js_conf_t *jcf, nxt_str_t *str, u_char *error);
29nxt_int_t nxt_js_call(nxt_task_t *task, nxt_js_cache_t *cache, nxt_js_t *js,
30 nxt_str_t *str, void *ctx);
31
32
33extern njs_int_t nxt_js_proto_id;
34
35
32#endif /* NXT_HAVE_NJS */
33
34#endif /* _NXT_JS_H_INCLUDED_ */
36#endif /* NXT_HAVE_NJS */
37
38#endif /* _NXT_JS_H_INCLUDED_ */