Willy Tarreau | b1ec8c4 | 2015-04-03 13:53:24 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 21 | struct pool_head *pool2_session; |
| 22 | |
| 23 | /* perform minimal intializations, report 0 in case of error, 1 if OK. */ |
| 24 | int 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 | */ |