comparison src/c/urweb.c @ 1118:87b0a9d08e73

uw_close()
author Adam Chlipala <adamc@hcoop.net>
date Tue, 05 Jan 2010 14:57:35 -0500
parents 31ef567fa772
children 951fced704d6
comparison
equal deleted inserted replaced
1117:31ef567fa772 1118:87b0a9d08e73
574 574
575 if (r == 0 && ctx->app) 575 if (r == 0 && ctx->app)
576 ctx->app->db_init(ctx); 576 ctx->app->db_init(ctx);
577 577
578 return r; 578 return r;
579 }
580
581 void uw_close(uw_context ctx) {
582 ctx->app->db_close(ctx);
579 } 583 }
580 584
581 void uw_set_headers(uw_context ctx, char *(*get_header)(void *, const char *), void *get_header_data) { 585 void uw_set_headers(uw_context ctx, char *(*get_header)(void *, const char *), void *get_header_data) {
582 ctx->get_header = get_header; 586 ctx->get_header = get_header;
583 ctx->get_header_data = get_header_data; 587 ctx->get_header_data = get_header_data;