Changeset 39 in Main for trunk/Server/tw_module.h
- Timestamp:
- Sep 17, 2024, 9:20:48 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/tw_module.h
r20 r39 15 15 _TW_MODULE_PASS = 0, /* Pass to the next module. */ 16 16 _TW_MODULE_STOP, /* Do not pass to the next module. */ 17 _TW_MODULE_ERROR /* Error, and do not pass to the next module. */ 17 _TW_MODULE_ERROR, /* Error, and do not pass to the next module. */ 18 19 _TW_CONFIG_PARSED, /* Got parsed */ 20 _TW_CONFIG_NOTME, /* Did not parse */ 21 _TW_CONFIG_ERROR /* Error */ 18 22 }; 19 23 … … 22 26 #define TW_MODULE_ERROR(x) (_TW_MODULE_ERROR | ((x) << 8)) 23 27 28 #define TW_CONFIG_PARSED _TW_CONFIG_PARSED 29 #define TW_CONFIG_NOTME _TW_CONFIG_NOTME 30 #define TW_CONFIG_ERROR _TW_CONFIG_ERROR 31 24 32 typedef int (*tw_mod_init_t)(struct tw_config* config, struct tw_tool* tools); 25 33 typedef int (*tw_mod_request_t)(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res); 34 typedef int (*tw_mod_config_t)(struct tw_tool* tools, char** argv, int argc); 26 35 27 36 void* tw_module_load(const char* path);
Note:
See TracChangeset
for help on using the changeset viewer.