Skip to content

Commit

Permalink
Modules: added js_shared_dict_zone support in QuickJS engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeioex committed Oct 30, 2024
1 parent 0ed2de6 commit 352c2e5
Show file tree
Hide file tree
Showing 5 changed files with 1,352 additions and 6 deletions.
1 change: 1 addition & 0 deletions nginx/ngx_http_js_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,7 @@ static JSClassDef ngx_http_qjs_headers_out_class = {

qjs_module_t *njs_http_qjs_addon_modules[] = {
&ngx_qjs_ngx_module,
&ngx_qjs_ngx_shared_dict_module,
/*
* Shared addons should be in the same order and the same positions
* in all nginx modules.
Expand Down
4 changes: 4 additions & 0 deletions nginx/ngx_js.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
#define NGX_QJS_CLASS_ID_STREAM_PERIODIC (NGX_QJS_CLASS_ID_OFFSET + 8)
#define NGX_QJS_CLASS_ID_STREAM_FLAGS (NGX_QJS_CLASS_ID_OFFSET + 9)
#define NGX_QJS_CLASS_ID_STREAM_VARS (NGX_QJS_CLASS_ID_OFFSET + 10)
#define NGX_QJS_CLASS_ID_SHARED (NGX_QJS_CLASS_ID_OFFSET + 11)
#define NGX_QJS_CLASS_ID_SHARED_DICT (NGX_QJS_CLASS_ID_OFFSET + 12)
#define NGX_QJS_CLASS_ID_SHARED_DICT_ERROR (NGX_QJS_CLASS_ID_OFFSET + 13)


typedef struct ngx_js_loc_conf_s ngx_js_loc_conf_t;
Expand Down Expand Up @@ -377,6 +380,7 @@ ngx_int_t ngx_qjs_string(ngx_engine_t *e, JSValueConst val, ngx_str_t *str);

extern qjs_module_t qjs_zlib_module;
extern qjs_module_t ngx_qjs_ngx_module;
extern qjs_module_t ngx_qjs_ngx_shared_dict_module;

#endif

Expand Down
Loading

0 comments on commit 352c2e5

Please sign in to comment.