Commit 5ce87866 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Expose SES_GetReq()

parent d11b8531
......@@ -959,6 +959,7 @@ void SES_Charge(struct worker *, struct req *);
struct sesspool *SES_NewPool(struct pool *pp, unsigned pool_no);
void SES_DeletePool(struct sesspool *sp);
int SES_ScheduleReq(struct req *);
struct req *SES_GetReq(struct sess *sp);
void SES_Handle(struct sess *sp, double now);
void SES_ReleaseReq(struct req *);
pool_func_t SES_pool_accept_task;
......
......@@ -52,8 +52,6 @@
static unsigned ses_size = sizeof (struct sess);
static struct req * ses_GetReq(struct sess *sp);
/*--------------------------------------------------------------------*/
struct sesspool {
......@@ -162,7 +160,7 @@ ses_sess_pool_task(struct worker *wrk, void *arg)
CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC);
CAST_OBJ_NOTNULL(sp, arg, SESS_MAGIC);
req = ses_GetReq(sp);
req = SES_GetReq(sp);
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
req->vxid = VXID_Get(&wrk->vxid_pool);
......@@ -346,8 +344,8 @@ SES_Delete(struct sess *sp, enum sess_close reason, double now)
* Alloc/Free a request
*/
static struct req *
ses_GetReq(struct sess *sp)
struct req *
SES_GetReq(struct sess *sp)
{
struct sesspool *pp;
struct req *req;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment