[MINOR] stick_table: export the stick_table_key

This one is huge and will be needed by other portions of code for various
data lookups. Let's not have them allocate it in the stack.
This commit is contained in:
Willy Tarreau 2010-06-06 17:39:30 +02:00
parent c00cdc2eb0
commit 41883e2041
2 changed files with 4 additions and 2 deletions

View File

@ -28,6 +28,8 @@
#define stktable_data_size(type) (sizeof(((union stktable_data*)0)->type))
#define stktable_data_cast(ptr, type) ((union stktable_data*)(ptr))->type
extern struct stktable_key static_table_key;
struct stksess *stksess_new(struct stktable *t, struct stktable_key *key);
void stksess_setkey(struct stktable *t, struct stksess *ts, struct stktable_key *key);
void stksess_free(struct stktable *t, struct stksess *ts);

View File

@ -29,8 +29,8 @@
#include <proto/task.h>
/* static structure used to return a table key built from a pattern */
static struct stktable_key static_table_key;
/* structure used to return a table key built from a pattern */
struct stktable_key static_table_key;
/*
* Free an allocated sticky session <ts>, and decrease sticky sessions counter