comparison 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
comparison
equal deleted inserted replaced
1120:74f2eb3b0606 1121:0cee0c8d8c37
334 printf("Accepted connection.\n"); 334 printf("Accepted connection.\n");
335 335
336 uw_enqueue(new_fd); 336 uw_enqueue(new_fd);
337 } 337 }
338 } 338 }
339
340 void *uw_init_client_data() {
341 return NULL;
342 }
343
344 void uw_free_client_data(void *data) {
345 }
346
347 void uw_copy_client_data(void *dst, void *src) {
348 }
349
350 void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) {
351 if (uw_get_app(ctx)->db_begin(ctx))
352 uw_error(ctx, FATAL, "Error running SQL BEGIN");
353 uw_get_app(ctx)->expunger(ctx, cli);
354 if (uw_get_app(ctx)->db_commit(ctx))
355 uw_error(ctx, FATAL, "Error running SQL COMMIT");
356 }
357
358 void uw_post_expunge(uw_context ctx, void *data) {
359 }