diff src/c/http.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 951fced704d6
children b08b73591d2c
line wrap: on
line diff
--- a/src/c/http.c	Thu Jan 07 14:02:58 2010 -0500
+++ b/src/c/http.c	Sun Jan 10 10:40:57 2010 -0500
@@ -336,3 +336,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) {
+}