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


Ignore:
Timestamp:
Sep 14, 2024, 6:59:15 PM (2 months ago)
Author:
Nishi
Message:

can show index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/tw_module.h

    r18 r20  
    1313
    1414enum 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. */
     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. */
    1818};
     19
     20#define TW_MODULE_PASS _TW_MODULE_PASS
     21#define TW_MODULE_STOP _TW_MODULE_STOP
     22#define TW_MODULE_ERROR(x) (_TW_MODULE_ERROR | ((x) << 8))
    1923
    2024typedef int (*tw_mod_init_t)(struct tw_config* config, struct tw_tool* tools);
Note: See TracChangeset for help on using the changeset viewer.