Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(src): remove useless declaration in stream #71

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 1 addition & 70 deletions stream/src/ngx_stream_lua_kong_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,77 +24,8 @@ typedef struct {
ngx_flag_t
ngx_stream_lua_kong_get_proxy_ssl_disable(ngx_stream_session_t *s);


// macOS with M1 fixes, see: https://github.com/LuaJIT/LuaJIT/issues/205

int ngx_stream_lua_ffi_shdict_get(ngx_shm_zone_t *zone, const unsigned char *key,
size_t key_len, int *value_type, unsigned char **str_value_buf,
size_t *str_value_len, double *num_value, int *user_flags,
int get_stale, int *is_stale, char **errmsg);

typedef struct {
ngx_shm_zone_t *zone;
const unsigned char *key;
size_t key_len;
int *value_type;
unsigned char **str_value_buf;
size_t *str_value_len;
double *num_value;
int *user_flags;
int get_stale;
int *is_stale;
char **errmsg;
} ngx_shdict_get_t;

int ngx_stream_lua_ffi_shdict_get_m1(ngx_shdict_get_t *s);


int ngx_stream_lua_ffi_shdict_store(ngx_shm_zone_t *zone, int op,
const unsigned char *key, size_t key_len, int value_type,
const unsigned char *str_value_buf, size_t str_value_len,
double num_value, long exptime, int user_flags, char **errmsg,
int *forcible);

typedef struct {
ngx_shm_zone_t *zone;
int op;
const unsigned char *key;
size_t key_len;
int value_type;
const unsigned char *str_value_buf;
size_t str_value_len;
double num_value;
long exptime;
int user_flags;
char **errmsg;
int *forcible;
} ngx_shdict_store_t;

int ngx_stream_lua_ffi_shdict_store_m1(ngx_shdict_store_t *s);


int ngx_stream_lua_ffi_shdict_incr(ngx_shm_zone_t *zone, const unsigned char *key,
size_t key_len, double *num_value, char **errmsg, int has_init,
double init, long init_ttl, int *forcible);

typedef struct {
ngx_shm_zone_t *zone;
const unsigned char *key;
size_t key_len;
double *num_value;
char **errmsg;
int has_init;
double init;
long init_ttl;
int *forcible;
} ngx_shdict_incr_t;

int ngx_stream_lua_ffi_shdict_incr_m1(ngx_shdict_incr_t *s);

// macOS with M1 fixes end

void
ngx_stream_lua_kong_set_upstream_ssl(ngx_stream_session_t *s,
ngx_stream_lua_kong_set_upstream_ssl(ngx_stream_session_t *s,
ngx_connection_t *c);

ngx_flag_t
Expand Down
Loading