#include "../str.h"
#include "tree.h"

Go to the source code of this file.
Data Structures | |
| struct | mi_cmd |
| struct | mi_export_ |
| struct | mi_handler |
Defines | |
| #define | MI_ASYNC_RPL_FLAG (1<<0) |
| #define | MI_NO_INPUT_FLAG (1<<1) |
| #define | MI_ROOT_ASYNC_RPL ((struct mi_root*)-1) |
Typedefs | |
| typedef int( | mi_child_init_f )(void) |
| typedef struct mi_root *( | mi_cmd_f )(struct mi_root *, void *param) |
| typedef struct mi_export_ | mi_export_t |
| typedef void( | mi_handler_f )(struct mi_root *, struct mi_handler *, int) |
Functions | |
| void | get_mi_cmds (struct mi_cmd **cmds, int *size) |
| int | init_mi_child (void) |
| struct mi_cmd * | lookup_mi_cmd (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) |
| static struct mi_root * | run_mi_cmd (struct mi_cmd *cmd, struct mi_root *t) |
Definition in file mi/mi.h.
| #define MI_ASYNC_RPL_FLAG (1<<0) |
Definition at line 41 of file mi/mi.h.
Referenced by default_method(), mi_datagram_server(), mi_fifo_server(), and register_mi_cmd().
| #define MI_NO_INPUT_FLAG (1<<1) |
Definition at line 42 of file mi/mi.h.
Referenced by default_method(), mi_datagram_server(), mi_fifo_server(), and register_mi_cmd().
| #define MI_ROOT_ASYNC_RPL ((struct mi_root*)-1) |
Definition at line 44 of file mi/mi.h.
Referenced by default_method(), mi_datagram_server(), mi_fifo_server(), mi_pua_publish(), and mi_tm_uac_dlg().
| typedef int( mi_child_init_f)(void) |
| typedef struct mi_export_ mi_export_t |
| typedef void( mi_handler_f)(struct mi_root *, struct mi_handler *, int) |
| void get_mi_cmds | ( | struct mi_cmd ** | cmds, | |
| int * | size | |||
| ) |
| 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().
| 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().
Definition at line 87 of file mi/mi.h.
References mi_cmd::f, and mi_cmd::param.
Referenced by default_method(), mi_datagram_server(), and mi_fifo_server().
1.5.6