Changeset 18 in Main for trunk/Server/tw_module.h
- Timestamp:
- Sep 14, 2024, 9:42:40 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/tw_module.h
r17 r18 5 5 6 6 #include "tw_config.h" 7 #include "tw_http.h" 7 8 8 9 struct tw_tool { 9 10 void (*log)(const char* name, const char* log, ...); 11 void (*add_version)(const char* string); 12 }; 13 14 enum TW_MODULE_RETURN { 15 TW_MODULE_PASS = 0, /* Pass to the next module. */ 16 TW_MODULE_STOP, /* Do not pass to the next module. */ 17 TW_MODULE_ERROR /* Error, and do not pass to the next module. */ 10 18 }; 11 19 12 20 typedef int (*tw_mod_init_t)(struct tw_config* config, struct tw_tool* tools); 21 typedef int (*tw_mod_request_t)(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res); 13 22 14 23 void* tw_module_load(const char* path);
Note:
See TracChangeset
for help on using the changeset viewer.