Changeset 18 in Main for trunk/Server/module.c


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/module.c

    r17 r18  
    11/* $Id$ */
     2
     3#define SOURCE
    24
    35#include "tw_module.h"
     
    4446}
    4547
    46 void tw_init_tools(struct tw_tool* tools) { tools->log = cm_log; }
     48void tw_add_version(const char* string) {
     49        if(config.extension == NULL) {
     50                config.extension = cm_strcat(" ", string);
     51        } else {
     52                char* tmp = config.extension;
     53                config.extension = cm_strcat3(tmp, " ", string);
     54                free(tmp);
     55        }
     56}
     57
     58void tw_init_tools(struct tw_tool* tools) {
     59        tools->log = cm_log;
     60        tools->add_version = tw_add_version;
     61}
    4762
    4863int tw_module_init(void* mod) {
Note: See TracChangeset for help on using the changeset viewer.