functions called only by modules
More...
#include "config.h"
#include "constants.h"
#include "typedefs.h"
#include "macros.h"
#include "externs.h"
#include "prototypes.h"
#include <string.h>
#include <dlfcn.h>
functions called only by modules
- Author
- TinyMUSH development team (https://github.com/TinyMUSH)
- Version
- 3.3
- Date
- 2020-12-24
- Copyright
- Copyright (C) 1989-2021 TinyMUSH development team. You may distribute under the terms the Artistic License, as specified in the COPYING file.
◆ register_api()
void register_api |
( |
char * |
module_name, |
|
|
char * |
api_name, |
|
|
API_FUNCTION * |
ftable |
|
) |
| |
Register a module.
- Parameters
-
module_name | Module name |
api_name | API name |
ftable | Function table |
no such module
◆ register_commands()
void register_commands |
( |
CMDENT * |
cmdtab | ) |
|
Register module's commands with the main command handler.
- Parameters
-
cmdtab | Module's command table. |
◆ register_dbtype()
unsigned int register_dbtype |
( |
char * |
modname | ) |
|
Register a module's DB type.
- Parameters
-
- Returns
- unsigned int Module's DBType
Find out if the module already has a registered DB type
If the type is in range, return it, else return zero as an error code
◆ register_functions()
void register_functions |
( |
FUN * |
functab | ) |
|
Register module's functions with the main functions handler.
- Parameters
-
◆ register_hashtables()
Register module's hashtables with the main hashtables handler.
- Parameters
-
◆ register_prefix_cmds()
void register_prefix_cmds |
( |
const char * |
cmdchars | ) |
|
Register prefix commands.
- Parameters
-
cmdchars | char array of prefixes |
◆ request_api_function()
void * request_api_function |
( |
char * |
api_name, |
|
|
char * |
fn_name |
|
) |
| |
Return the handler of an API function.
- Parameters
-
api_name | API name |
fn_name | Function name |
- Returns
- void* Handler of that function