|
suricata
|
#include "suricata-common.h"#include "threads.h"#include "host-queue.h"#include "util-error.h"#include "util-debug.h"#include "util-print.h"
Go to the source code of this file.
Functions | |
| HostQueue * | HostQueueInit (HostQueue *q) |
| HostQueue * | HostQueueNew (void) |
| void | HostQueueDestroy (HostQueue *q) |
| Destroy a host queue. More... | |
| void | HostEnqueue (HostQueue *q, Host *h) |
| add a host to a queue More... | |
| Host * | HostDequeue (HostQueue *q) |
| remove a host from the queue More... | |
Host queue handler functions
Definition in file host-queue.c.
remove a host from the queue
| q | queue |
| h | host or NULL if empty list. |
Definition at line 102 of file host-queue.c.
References HostQueue_::bot, BUG_ON, HQLOCK_LOCK, HQLOCK_UNLOCK, HostQueue_::len, Host_::lnext, Host_::lprev, and HostQueue_::top.
Referenced by HostShutdown().

add a host to a queue
| q | queue |
| h | host |
Definition at line 69 of file host-queue.c.
References HostQueue_::bot, BUG_ON, HQLOCK_LOCK, HQLOCK_UNLOCK, HostQueue_::len, Host_::lnext, Host_::lprev, and HostQueue_::top.
Referenced by HostMoveToSpare().

| void HostQueueDestroy | ( | HostQueue * | q | ) |
Destroy a host queue.
| q | the host queue to destroy |
Definition at line 58 of file host-queue.c.
References HQLOCK_DESTROY.
Definition at line 33 of file host-queue.c.
References HQLOCK_INIT.
Referenced by HostQueueNew().

| HostQueue* HostQueueNew | ( | void | ) |
Definition at line 42 of file host-queue.c.
References HostQueueInit(), SCLogError, and SCMalloc.
