* If function returns 0, the caller should consider we were unable to encode this message (TODO:
* check size)
*/
-static int peer_prepare_updatemsg(char *msg, size_t size, struct peer_prep_params *p)
+int peer_prepare_updatemsg(char *msg, size_t size, struct peer_prep_params *p)
{
uint32_t netinteger;
unsigned short datalen;
* If it returns 0 or -1, this function leave <st> locked if already locked when entering this function
* unlocked if not already locked when entering this function.
*/
-static inline int peer_send_teachmsgs(struct appctx *appctx, struct peer *p,
- struct stksess *(*peer_stksess_lookup)(struct shared_table *),
- struct shared_table *st)
+int peer_send_teachmsgs(struct appctx *appctx, struct peer *p,
+ struct stksess *(*peer_stksess_lookup)(struct shared_table *),
+ struct shared_table *st)
{
int ret, new_pushed, use_timed;
int updates_sent = 0;
* update ID.
* <totl> is the length of the stick-table update message computed upon receipt.
*/
-static int peer_treat_updatemsg(struct appctx *appctx, struct peer *p, int updt, int exp,
- char **msg_cur, char *msg_end, int msg_len, int totl)
+int peer_treat_updatemsg(struct appctx *appctx, struct peer *p, int updt, int exp,
+ char **msg_cur, char *msg_end, int msg_len, int totl)
{
struct shared_table *st = p->remote_table;
struct stktable *table;
* only reset at the end. In the mean time, it always point on a table.
*/
-static inline int peer_send_msgs(struct appctx *appctx,
- struct peer *peer, struct peers *peers)
+int peer_send_msgs(struct appctx *appctx,
+ struct peer *peer, struct peers *peers)
{
int repl;
/*
* IO Handler to handle message exchange with a peer
*/
-static void peer_io_handler(struct appctx *appctx)
+void peer_io_handler(struct appctx *appctx)
{
struct peer *curpeer = NULL;
int reql = 0;