Commit 98488d5588f1562b0a9c78c22bb5eb463fcc3054
1 parent
de7e390c
oops commit...forgot to add request_queue.c
Showing
1 changed file
with
27 additions
and
0 deletions
src/http/request_queue.c
0 → 100644
1 | +#include <stdarg.h> | ||
2 | + | ||
3 | +#include "class.h" | ||
4 | +#include "interface/class.h" | ||
5 | + | ||
6 | +#include "http/request_queue.h" | ||
7 | + | ||
8 | +static | ||
9 | +void | ||
10 | +ctor(void * _this, va_list * params) {} | ||
11 | + | ||
12 | +static | ||
13 | +void | ||
14 | +dtor(void * _this) | ||
15 | +{ | ||
16 | + HttpRequestQueue this = _this; | ||
17 | + int i; | ||
18 | + | ||
19 | + for (i=0; i<this->nrequests; i++) { | ||
20 | + delete(&(this->requests)[i]); | ||
21 | + } | ||
22 | +} | ||
23 | + | ||
24 | +INIT_IFACE(Class, ctor, dtor, NULL); | ||
25 | +CREATE_CLASS(HttpRequestQueue, NULL, IFACE(Class)); | ||
26 | + | ||
27 | +// vim: set ts=4 sw=4: |
Please
register
or
login
to post a comment