comparison 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
comparison
equal deleted inserted replaced
1120:74f2eb3b0606 1121:0cee0c8d8c37
597 } 597 }
598 598
599 uw_enqueue(new_fd); 599 uw_enqueue(new_fd);
600 } 600 }
601 } 601 }
602
603 void *uw_init_client_data() {
604 return NULL;
605 }
606
607 void uw_free_client_data(void *data) {
608 }
609
610 void uw_copy_client_data(void *dst, void *src) {
611 }
612
613 void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) {
614 if (uw_get_app(ctx)->db_begin(ctx))
615 uw_error(ctx, FATAL, "Error running SQL BEGIN");
616 uw_get_app(ctx)->expunger(ctx, cli);
617 if (uw_get_app(ctx)->db_commit(ctx))
618 uw_error(ctx, FATAL, "Error running SQL COMMIT");
619 }
620
621 void uw_post_expunge(uw_context ctx, void *data) {
622 }