Changeset 18 in Main for trunk/Server/module.c
- Timestamp:
- Sep 14, 2024, 9:42:40 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/module.c
r17 r18 1 1 /* $Id$ */ 2 3 #define SOURCE 2 4 3 5 #include "tw_module.h" … … 44 46 } 45 47 46 void tw_init_tools(struct tw_tool* tools) { tools->log = cm_log; } 48 void 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 58 void tw_init_tools(struct tw_tool* tools) { 59 tools->log = cm_log; 60 tools->add_version = tw_add_version; 61 } 47 62 48 63 int tw_module_init(void* mod) {
Note:
See TracChangeset
for help on using the changeset viewer.