mi/mi.h File Reference

MI :: Management. More...

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

Include dependency graph for mi/mi.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_cmdlookup_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_rootrun_mi_cmd (struct mi_cmd *cmd, struct mi_root *t)


Detailed Description

MI :: Management.

Definition in file mi/mi.h.


Define Documentation

#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)


Typedef Documentation

typedef int( mi_child_init_f)(void)

Definition at line 49 of file mi/mi.h.

typedef struct mi_root*( mi_cmd_f)(struct mi_root *, void *param)

Definition at line 48 of file mi/mi.h.

typedef struct mi_export_ mi_export_t

typedef void( mi_handler_f)(struct mi_root *, struct mi_handler *, int)

Definition at line 50 of file mi/mi.h.


Function Documentation

void get_mi_cmds ( struct mi_cmd **  cmds,
int *  size 
)

Definition at line 179 of file mi/mi.c.

References mi_cmds_no.

Referenced by mi_which().

int init_mi_child ( void   ) 

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 
)

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().

static struct mi_root* run_mi_cmd ( struct mi_cmd cmd,
struct mi_root t 
) [static, read]

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().


Generated on Wed May 23 20:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6