1 #ifndef PROTO_PROXY_H 2 #define PROTO_PROXY_H 3 4 void proxy_stats(ADD_STAT add_stats, conn *c); 5 void process_proxy_stats(ADD_STAT add_stats, conn *c); 6 7 /* proxy mode handlers */ 8 int try_read_command_proxy(conn *c); 9 void complete_nread_proxy(conn *c); 10 void proxy_cleanup_conn(conn *c); 11 void proxy_thread_init(LIBEVENT_THREAD *thr); 12 void proxy_init(bool proxy_uring); 13 // TODO: need better names or a better interface for these. can be confusing 14 // to reason about the order. 15 void proxy_start_reload(void *arg); 16 int proxy_load_config(void *arg); 17 void proxy_worker_reload(void *arg, LIBEVENT_THREAD *thr); 18 19 void proxy_submit_cb(io_queue_t *q); 20 void proxy_complete_cb(io_queue_t *q); 21 void proxy_return_cb(io_pending_t *pending); 22 void proxy_finalize_cb(io_pending_t *pending); 23 24 /* lua */ 25 int proxy_register_libs(LIBEVENT_THREAD *t, void *ctx); 26 27 #endif