Changeset 18 in Main for trunk/Server/tw_module.h


Ignore:
Timestamp:
Sep 14, 2024, 9:42:40 AM (2 months ago)
Author:
Nishi
Message:

can return response now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/tw_module.h

    r17 r18  
    55
    66#include "tw_config.h"
     7#include "tw_http.h"
    78
    89struct tw_tool {
    910        void (*log)(const char* name, const char* log, ...);
     11        void (*add_version)(const char* string);
     12};
     13
     14enum 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. */
    1018};
    1119
    1220typedef int (*tw_mod_init_t)(struct tw_config* config, struct tw_tool* tools);
     21typedef int (*tw_mod_request_t)(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res);
    1322
    1423void* tw_module_load(const char* path);
Note: See TracChangeset for help on using the changeset viewer.