#ifndef _SESSION_POOL_H
#define _SESSION_POOL_H

#ifdef __cplusplus
extern "C"
{
#endif

#include "session_priv.h"

struct session_pool;
struct session_pool *session_pool_new(uint64_t count);
void session_pool_free(struct session_pool *pool);

struct session *session_pool_pop(struct session_pool *pool);
void session_pool_push(struct session_pool *pool, struct session *sess);
uint64_t session_pool_get_count(struct session_pool *pool);

#ifdef __cplusplus
}
#endif

#endif
