#include <string.h>
#include "../dprint.h"
#include "../mem/mem.h"
#include "../local_route.h"
#include "mi.h"

Go to the source code of this file.
Functions | |
| void | get_mi_cmds (struct mi_cmd **cmds, int *size) |
| static int | get_mi_id (char *name, int len) |
| int | init_mi_child (void) |
| struct mi_cmd * | lookup_mi_cmd (char *name, int len) |
| static struct mi_cmd * | lookup_mi_cmd_id (int id, char *name, int len) |
| int | register_mi_cmd (mi_cmd_f f, char *name, void *param, mi_child_init_f in, unsigned int flags) |
| int | register_mi_mod (char *mod_name, mi_export_t *mis) |
Variables | |
| static struct mi_cmd * | mi_cmds = 0 |
| static int | mi_cmds_no = 0 |
Definition in file mi/mi.c.
| void get_mi_cmds | ( | struct mi_cmd ** | cmds, | |
| int * | size | |||
| ) |
| static int get_mi_id | ( | char * | name, | |
| int | len | |||
| ) | [inline, static] |
| int init_mi_child | ( | void | ) |
Definition at line 101 of file mi/mi.c.
References mi_cmd::init_f, _str::len, LM_ERR, lrt_do_init_child(), mi_cmds_no, mi_cmd::name, and _str::s.
Referenced by datagram_process(), fifo_process(), and xmlrpc_process().
| struct mi_cmd* lookup_mi_cmd | ( | char * | name, | |
| int | len | |||
| ) | [read] |
Definition at line 170 of file mi/mi.c.
References get_mi_id(), id, and lookup_mi_cmd_id().
Referenced by default_method(), identify_command(), and mi_fifo_server().
| static struct mi_cmd* lookup_mi_cmd_id | ( | int | id, | |
| char * | name, | |||
| int | len | |||
| ) | [static, read] |
Definition at line 67 of file mi/mi.c.
References mi_cmds_no.
Referenced by lookup_mi_cmd(), and register_mi_cmd().
| int register_mi_cmd | ( | mi_cmd_f | f, | |
| char * | name, | |||
| void * | param, | |||
| mi_child_init_f | in, | |||
| unsigned int | flags | |||
| ) |
Definition at line 121 of file mi/mi.c.
References cmds, mi_cmd::f, mi_cmd::flags, get_mi_id(), mi_cmd::id, id, mi_cmd::init_f, _str::len, len, LM_ERR, lookup_mi_cmd_id(), MI_ASYNC_RPL_FLAG, mi_cmds_no, MI_NO_INPUT_FLAG, mi_cmd::name, mi_cmd::param, pkg_realloc, and _str::s.
Referenced by register_mi_mod().
| int register_mi_mod | ( | char * | mod_name, | |
| mi_export_t * | mis | |||
| ) |
Definition at line 81 of file mi/mi.c.
References mi_cmd::init_f, LM_ERR, mi_cmd::name, mi_export_::name, and register_mi_cmd().
Referenced by init_black_lists(), init_mi_core(), and init_mod().
int mi_cmds_no = 0 [static] |
Definition at line 54 of file mi/mi.c.
Referenced by get_mi_cmds(), init_mi_child(), lookup_mi_cmd_id(), and register_mi_cmd().
1.5.6