mi/mi.c File Reference

MI :: Attributes. More...

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

Include dependency graph for mi/mi.c:

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_cmdlookup_mi_cmd (char *name, int len)
static struct mi_cmdlookup_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_cmdmi_cmds = 0
static int mi_cmds_no = 0


Detailed Description

MI :: Attributes.

Definition in file mi/mi.c.


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

static int get_mi_id ( char *  name,
int  len 
) [inline, static]

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

Referenced by lookup_mi_cmd(), and register_mi_cmd().

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

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 
)

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


Variable Documentation

struct mi_cmd* mi_cmds = 0 [static]

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

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


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