Revert "Implementation of HTTPD protocol, gwbuf properties and a dmeo web application"
This reverts commit 6fd5dff34902051f38932947493280e1e62dbeb1.
This commit is contained in:
@ -756,28 +756,3 @@ session_getUser(SESSION *session)
|
||||
{
|
||||
return (session && session->client) ? session->client->user : NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Iterate over the sessions, calling a function per call
|
||||
*
|
||||
* @param fcn The function to call
|
||||
* @param data The data to pass to each call
|
||||
*/
|
||||
void
|
||||
sessionIterate(void (*fcn)(SESSION *, void *), void *data)
|
||||
{
|
||||
SESSION *session, *next;
|
||||
|
||||
spinlock_acquire(&session_spin);
|
||||
session = allSessions;
|
||||
while (session)
|
||||
{
|
||||
next = session->next;
|
||||
spinlock_release(&session_spin);
|
||||
(*fcn)(session, data);
|
||||
spinlock_acquire(&session_spin);
|
||||
session = next;
|
||||
}
|
||||
spinlock_release(&session_spin);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user