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