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


Ignore:
Timestamp:
Oct 14, 2024, 8:22:06 AM (5 weeks ago)
Author:
Nishi
Message:

dll does not work somehow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/tw_module.h

    r156 r313  
    1010#include "tw_config.h"
    1111#include "tw_http.h"
     12
     13#if defined(__OS2__)
     14#define INCL_DOSMODULEMGR
     15#define INCL_DOSERRORS
     16#include <os2.h>
     17#define MODULE_DECL APIENTRY
     18#else
     19#define MODULE_DECL
     20#endif
    1221
    1322struct tw_tool {
     
    3847#define TW_CONFIG_ERROR _TW_CONFIG_ERROR
    3948
    40 typedef int (*tw_mod_init_t)(struct tw_config* config, struct tw_tool* tools);
    41 typedef int (*tw_mod_request_t)(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res);
    42 typedef int (*tw_mod_config_t)(struct tw_tool* tools, char** argv, int argc);
     49typedef int (MODULE_DECL *tw_mod_init_t)(struct tw_config* config, struct tw_tool* tools);
     50typedef int (MODULE_DECL *tw_mod_request_t)(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res);
     51typedef int (MODULE_DECL *tw_mod_config_t)(struct tw_tool* tools, char** argv, int argc);
    4352
    4453#ifdef SOURCE
Note: See TracChangeset for help on using the changeset viewer.