Mercurial > urweb
comparison include/urweb/types_cpp.h @ 1979:81bc76aa4acd
Merge in upstream changes.
author | Patrick Hurst <phurst@mit.edu> |
---|---|
date | Sat, 18 Jan 2014 18:26:24 -0500 |
parents | ac1be85e91ad |
children | c93fbd139732 |
comparison
equal
deleted
inserted
replaced
1978:c5143edaf3c7 | 1979:81bc76aa4acd |
---|---|
80 void (*client_init)(); | 80 void (*client_init)(); |
81 void (*initializer)(struct uw_context *); | 81 void (*initializer)(struct uw_context *); |
82 void (*expunger)(struct uw_context *, uw_Basis_client); | 82 void (*expunger)(struct uw_context *, uw_Basis_client); |
83 | 83 |
84 void (*db_init)(struct uw_context *); | 84 void (*db_init)(struct uw_context *); |
85 int (*db_begin)(struct uw_context *); | 85 int (*db_begin)(struct uw_context *, int could_write); |
86 int (*db_commit)(struct uw_context *); | 86 int (*db_commit)(struct uw_context *); |
87 int (*db_rollback)(struct uw_context *); | 87 int (*db_rollback)(struct uw_context *); |
88 void (*db_close)(struct uw_context *); | 88 void (*db_close)(struct uw_context *); |
89 | 89 |
90 void (*handle)(struct uw_context *, char *); | 90 void (*handle)(struct uw_context *, char *); |
100 void (*on_error)(struct uw_context *, char *); | 100 void (*on_error)(struct uw_context *, char *); |
101 | 101 |
102 uw_periodic *periodics; // 0-terminated array | 102 uw_periodic *periodics; // 0-terminated array |
103 | 103 |
104 uw_Basis_string time_format; | 104 uw_Basis_string time_format; |
105 | |
106 int is_html5; | |
105 } uw_app; | 107 } uw_app; |
106 | 108 |
107 #define ERROR_BUF_LEN 1024 | 109 #define ERROR_BUF_LEN 1024 |
108 | 110 |
109 typedef struct { | 111 typedef struct { |