]>
Commit | Line | Data |
---|---|---|
1 | /* proxyscanalloc.c */ | |
2 | ||
3 | #include "proxyscan.h" | |
4 | #include "../core/nsmalloc.h" | |
5 | ||
6 | scan *getscan() { | |
7 | return nsmalloc(POOL_PROXYSCAN, sizeof(scan)); | |
8 | } | |
9 | ||
10 | void freescan(scan *sp) { | |
11 | nsfree(POOL_PROXYSCAN, sp); | |
12 | } | |
13 | ||
14 | cachehost *getcachehost() { | |
15 | return nsmalloc(POOL_PROXYSCAN, sizeof(cachehost)); | |
16 | } | |
17 | ||
18 | void freecachehost(cachehost *chp) { | |
19 | nsfree(POOL_PROXYSCAN, chp); | |
20 | } | |
21 | ||
22 | pendingscan *getpendingscan() { | |
23 | return nsmalloc(POOL_PROXYSCAN, sizeof(pendingscan)); | |
24 | } | |
25 | ||
26 | void freependingscan(pendingscan *psp) { | |
27 | nsfree(POOL_PROXYSCAN, psp); | |
28 | } | |
29 | ||
30 | foundproxy *getfoundproxy() { | |
31 | return nsmalloc(POOL_PROXYSCAN, sizeof(foundproxy)); | |
32 | } | |
33 | ||
34 | void freefoundproxy(foundproxy *fpp) { | |
35 | nsfree(POOL_PROXYSCAN, fpp); | |
36 | } | |
37 | ||
38 | extrascan *getextrascan() { | |
39 | return nsmalloc(POOL_PROXYSCAN, sizeof(extrascan)); | |
40 | } | |
41 | ||
42 | void freeextrascan(extrascan *esp) { | |
43 | nsfree(POOL_PROXYSCAN, esp); | |
44 | } | |
45 |