qos.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../../sr_module.h"
#include "qos_load.h"
#include "qos_handlers.h"

Include dependency graph for qos.c:

Go to the source code of this file.

Functions

int load_qos (struct qos_binds *qosb)
static void mod_destroy (void)
static MODULE_VERSION int mod_init (void)

Variables

static cmd_export_t cmds []
struct dlg_binds dialog_st
struct dlg_bindsdlg_binds = &dialog_st
struct module_exports exports
static param_export_t mod_params []
static int qos_flag = -1


Function Documentation

int load_qos ( struct qos_binds qosb  ) 

Definition at line 85 of file qos.c.

References register_qoscb(), and qos_binds::register_qoscb.

Referenced by load_qos_api().

static void mod_destroy ( void   )  [static]

Definition at line 131 of file qos.c.

References destroy_qos_callbacks().

static int mod_init ( void   )  [static]

The initialization function, called when the module is loaded by the script. This function is called only once.

Bind to the dialog module and setup the callbacks. Also initialize the shared memory to store our interninal information in.

Definition at line 99 of file qos.c.

References dialog_st, DLGCB_CREATED, init_qos_callbacks(), LM_ERR, load_dlg_api(), MAX_FLAG, NULL, qos_dialog_created_CB(), qos_flag, and dlg_binds::register_dlgcb.


Variable Documentation

cmd_export_t cmds[] [static]

Initial value:

{
   {"load_qos", (cmd_function)load_qos, 0, 0, 0, 0},
   {0,0,0,0,0,0}
}

Definition at line 56 of file qos.c.

Definition at line 52 of file qos.c.

Referenced by mod_init().

The binding to the dialog module functions. Most importantly the register_dlgcb function.

Definition at line 53 of file qos.c.

Definition at line 70 of file qos.c.

Initial value:

{
   { "qos_flag",     INT_PARAM, &qos_flag},
   { 0,0,0 }
}

Definition at line 64 of file qos.c.

int qos_flag = -1 [static]

Definition at line 47 of file qos.c.

Referenced by mod_init().


Generated on Thu May 24 08:01:16 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6