summaryrefslogtreecommitdiff
path: root/proto_proxy.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-09-01 22:44:44 -0700
committerdormando <dormando@rydia.net>2022-09-15 11:35:19 -0700
commit725954d3a37ff0596f4a8e53c5746eec3a30166d (patch)
treee6efdda62ce6a12921e4c7df9a8ac0b997e9501d /proto_proxy.h
parentd855e7ed9394d3c8ed110f22694930a22894de10 (diff)
downloadmemcached-725954d3a37ff0596f4a8e53c5746eec3a30166d.tar.gz
proxy: remove most references to settings global
should make isolation/testing earlier.
Diffstat (limited to 'proto_proxy.h')
-rw-r--r--proto_proxy.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto_proxy.h b/proto_proxy.h
index 6d42e24..0b3d240 100644
--- a/proto_proxy.h
+++ b/proto_proxy.h
@@ -1,15 +1,15 @@
#ifndef PROTO_PROXY_H
#define PROTO_PROXY_H
-void proxy_stats(ADD_STAT add_stats, conn *c);
-void process_proxy_stats(ADD_STAT add_stats, conn *c);
+void proxy_stats(void *arg, ADD_STAT add_stats, conn *c);
+void process_proxy_stats(void *arg, ADD_STAT add_stats, conn *c);
/* proxy mode handlers */
int try_read_command_proxy(conn *c);
void complete_nread_proxy(conn *c);
void proxy_cleanup_conn(conn *c);
-void proxy_thread_init(LIBEVENT_THREAD *thr);
-void proxy_init(bool proxy_uring);
+void proxy_thread_init(void *ctx, LIBEVENT_THREAD *thr);
+void *proxy_init(bool proxy_uring);
// TODO: need better names or a better interface for these. can be confusing
// to reason about the order.
void proxy_start_reload(void *arg);
@@ -22,6 +22,6 @@ void proxy_return_cb(io_pending_t *pending);
void proxy_finalize_cb(io_pending_t *pending);
/* lua */
-int proxy_register_libs(LIBEVENT_THREAD *t, void *ctx);
+int proxy_register_libs(void *ctx, LIBEVENT_THREAD *t, void *state);
#endif