Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

added marco ngx_tcp_cycle_get_module_main_conf #86

Merged
merged 1 commit into from Feb 15, 2014

Conversation

Projects
None yet
2 participants
Contributor

chobits commented Jan 24, 2014

If developer writes a tcp module and defines ngx_module_t:init_module field,
this macro will be useful to get main conf of his tcp module from cycle.

struct nginx_module_s {
  ...
  ngx_int_t (*init_module)(ngx_cycle_t *cycle);
  ...
}

Note that http module has a similar macro (ngx_http_cycle_get_module_main_conf).

added marco ngx_tcp_cycle_get_module_main_conf
If developer writes a tcp module and defines ngx_module_t:init_module field,
this macro will be useful to get main conf of his tcp module from cycle.

    nginx_module_t {
      ngx_int_t (*init_module)(ngx_cycle_t *cycle);
    }

Note that http module has a similar macro (ngx_http_cycle_get_module_main_conf).
Owner

yaoweibin commented Feb 15, 2014

LGTM

yaoweibin added a commit that referenced this pull request Feb 15, 2014

Merge pull request #86 from chobits/new_macro
added marco ngx_tcp_cycle_get_module_main_conf

@yaoweibin yaoweibin merged commit 776a6a5 into yaoweibin:master Feb 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment