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

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_binds * | dlg_binds = &dialog_st |
| struct module_exports | exports |
| static param_export_t | mod_params [] |
| static int | qos_flag = -1 |
| 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] |
| 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.
cmd_export_t cmds[] [static] |
Initial value:
{
{"load_qos", (cmd_function)load_qos, 0, 0, 0, 0},
{0,0,0,0,0,0}
}
| struct module_exports exports |
param_export_t mod_params[] [static] |
int qos_flag = -1 [static] |
1.5.6