Mercurial > urweb
diff src/c/fastcgi.c @ 1121:0cee0c8d8c37
Support for protocol-specific expunger dispatch
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 10 Jan 2010 10:40:57 -0500 |
parents | db52c32dbe42 |
children | b08b73591d2c |
line wrap: on
line diff
--- a/src/c/fastcgi.c Thu Jan 07 14:02:58 2010 -0500 +++ b/src/c/fastcgi.c Sun Jan 10 10:40:57 2010 -0500 @@ -599,3 +599,24 @@ 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) { +}