blob: 116816fbddadb39f98cf0bd8fd7e5e3e680730fb [file] [log] [blame]
Willy Tarreaub1ec8c42015-04-03 13:53:24 +02001/*
2 * Stream management functions.
3 *
4 * Copyright 2000-2012 Willy Tarreau <w@1wt.eu>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 *
11 */
12
13#include <common/config.h>
14#include <common/buffer.h>
15#include <common/debug.h>
16#include <common/memory.h>
17
18#include <types/global.h>
19#include <types/session.h>
20
21struct pool_head *pool2_session;
22
23/* perform minimal intializations, report 0 in case of error, 1 if OK. */
24int init_session()
25{
26 pool2_session = create_pool("session", sizeof(struct session), MEM_F_SHARED);
27 return pool2_session != NULL;
28}
29
30/*
31 * Local variables:
32 * c-indent-level: 8
33 * c-basic-offset: 8
34 * End:
35 */