Functions

cr_fixup.c File Reference

Fixup functions. More...

#include "../../mod_fix.h"
#include "../../mem/mem.h"
#include "cr_fixup.h"
#include "carrierroute.h"
#include "cr_map.h"
#include "cr_domain.h"
#include "prime_hash.h"
#include "cr_data.h"
Include dependency graph for cr_fixup.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file cr_fixup.c.


Function Documentation

static int avp_name_fixup ( void **  param  )  [static]
Parameters:
param the parameter
Returns:
0 on success, -1 on failure

Definition at line 183 of file cr_fixup.c.

Referenced by cr_load_next_domain_fixup(), cr_load_user_carrier_fixup(), and cr_route_fixup().

Here is the caller graph for this function:

static int carrier_fixup ( void **  param  )  [static]

supports name string and PVs.

Parameters:
param the parameter
Returns:
0 on success, -1 on failure

Definition at line 122 of file cr_fixup.c.

References carrier_name_2_id().

Referenced by cr_load_next_domain_fixup(), and cr_route_fixup().

Here is the call graph for this function:

Here is the caller graph for this function:

static int carrier_name_2_id ( const str name  )  [static]

If the mapping changes afterwards (eg. due to cr_reload_routes), the names used in the routing script will not be mapped to the correct IDs!

Parameters:
name carrier name
Returns:
carrier id

Definition at line 48 of file cr_fixup.c.

References route_data_t::carrier_map, route_data_t::carrier_num, get_data(), map_name2id(), and release_data().

Referenced by carrier_fixup().

Here is the call graph for this function:

Here is the caller graph for this function:

int cr_load_next_domain_fixup ( void **  param,
int  param_no 
)

Fixes the module functions' parameters, i.e.

it maps the routing domain names to numbers for faster access at runtime

Parameters:
param the parameter
param_no the number of the parameter
Returns:
0 on success, -1 on failure

Definition at line 264 of file cr_fixup.c.

References avp_name_fixup(), carrier_fixup(), and domain_fixup().

Here is the call graph for this function:

int cr_load_user_carrier_fixup ( void **  param,
int  param_no 
)
Parameters:
param the parameter
param_no the number of the parameter
Returns:
0 on success, -1 on failure

Definition at line 306 of file cr_fixup.c.

References avp_name_fixup().

Here is the call graph for this function:

int cr_route_fixup ( void **  param,
int  param_no 
)

fixes the module functions' parameters, i.e.

it maps the routing domain names to numbers for faster access at runtime

Parameters:
param the parameter
param_no the number of the parameter
Returns:
0 on success, -1 on failure

Definition at line 209 of file cr_fixup.c.

References avp_name_fixup(), carrier_fixup(), domain_fixup(), and hash_fixup().

Here is the call graph for this function:

static int domain_fixup ( void **  param  )  [static]

supports name string, and PVs.

Parameters:
param the parameter
Returns:
0 on success, -1 on failure

Definition at line 153 of file cr_fixup.c.

References domain_name_2_id().

Referenced by cr_load_next_domain_fixup(), and cr_route_fixup().

Here is the call graph for this function:

Here is the caller graph for this function:

static int domain_name_2_id ( const str name  )  [static]

If the mapping changes afterwards (eg. due to cr_reload_routes), the names used in the routing script will not be mapped to the correct IDs!

Parameters:
name domain name
Returns:
domain id

Definition at line 72 of file cr_fixup.c.

References route_data_t::domain_map, route_data_t::domain_num, get_data(), map_name2id(), and release_data().

Referenced by domain_fixup().

Here is the call graph for this function:

Here is the caller graph for this function:

static enum hash_source hash_fixup ( const char *  my_hash_source  )  [static]
Parameters:
my_hash_source the hash source as string
Returns:
the enum value on success, -1 on failure

Definition at line 95 of file cr_fixup.c.

Referenced by cr_route_fixup().

Here is the caller graph for this function: