comparison src/c/cgi.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
112 if (rr == SERVED) 112 if (rr == SERVED)
113 return 0; 113 return 0;
114 else 114 else
115 return 1; 115 return 1;
116 } 116 }
117
118 void *uw_init_client_data() {
119 return NULL;
120 }
121
122 void uw_free_client_data(void *data) {
123 }
124
125 void uw_copy_client_data(void *dst, void *src) {
126 }
127
128 void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) {
129 if (uw_get_app(ctx)->db_begin(ctx))
130 uw_error(ctx, FATAL, "Error running SQL BEGIN");
131 uw_get_app(ctx)->expunger(ctx, cli);
132 if (uw_get_app(ctx)->db_commit(ctx))
133 uw_error(ctx, FATAL, "Error running SQL COMMIT");
134 }
135
136 void uw_post_expunge(uw_context ctx, void *data) {
137 }