diff options
author | 2010-01-10 10:40:57 -0500 | |
---|---|---|
committer | 2010-01-10 10:40:57 -0500 | |
commit | e5358b34831d7a333c5883873af65d0cbacf5524 (patch) | |
tree | d909370696f5b261372fb59f1a17589605ceb6b7 /src/c/http.c | |
parent | a9f87e669faf36223c24f98f945616ab05aab8d5 (diff) |
Support for protocol-specific expunger dispatch
Diffstat (limited to 'src/c/http.c')
-rw-r--r-- | src/c/http.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/c/http.c b/src/c/http.c index b070ef0f..3ba00a6d 100644 --- a/src/c/http.c +++ b/src/c/http.c @@ -336,3 +336,24 @@ int main(int argc, char *argv[]) { uw_enqueue(new_fd); } } + +void *uw_init_client_data() { + return NULL; +} + +void uw_free_client_data(void *data) { +} + +void uw_copy_client_data(void *dst, void *src) { +} + +void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) { + if (uw_get_app(ctx)->db_begin(ctx)) + uw_error(ctx, FATAL, "Error running SQL BEGIN"); + uw_get_app(ctx)->expunger(ctx, cli); + if (uw_get_app(ctx)->db_commit(ctx)) + uw_error(ctx, FATAL, "Error running SQL COMMIT"); +} + +void uw_post_expunge(uw_context ctx, void *data) { +} |