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


Ignore:
Timestamp:
Sep 17, 2024, 9:20:48 PM (2 months ago)
Author:
Nishi
Message:

custom config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/tw_module.h

    r20 r39  
    1515        _TW_MODULE_PASS = 0, /* Pass to the next module. */
    1616        _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 */
    1822};
    1923
     
    2226#define TW_MODULE_ERROR(x) (_TW_MODULE_ERROR | ((x) << 8))
    2327
     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
    2432typedef int (*tw_mod_init_t)(struct tw_config* config, struct tw_tool* tools);
    2533typedef int (*tw_mod_request_t)(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res);
     34typedef int (*tw_mod_config_t)(struct tw_tool* tools, char** argv, int argc);
    2635
    2736void* tw_module_load(const char* path);
Note: See TracChangeset for help on using the changeset viewer.