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"
Go to the source code of this file.
Definition in file cr_fixup.c.
| static int avp_name_fixup | ( | void ** | param | ) | [static] |
| param | the parameter |
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().

| static int carrier_fixup | ( | void ** | param | ) | [static] |
supports name string and PVs.
| param | the parameter |
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().


| 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!
| name | carrier name |
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().


| 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
| param | the parameter | |
| param_no | the number of the parameter |
Definition at line 264 of file cr_fixup.c.
References avp_name_fixup(), carrier_fixup(), and domain_fixup().

| int cr_load_user_carrier_fixup | ( | void ** | param, | |
| int | param_no | |||
| ) |
| param | the parameter | |
| param_no | the number of the parameter |
Definition at line 306 of file cr_fixup.c.
References avp_name_fixup().

| 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
| param | the parameter | |
| param_no | the number of the parameter |
Definition at line 209 of file cr_fixup.c.
References avp_name_fixup(), carrier_fixup(), domain_fixup(), and hash_fixup().

| static int domain_fixup | ( | void ** | param | ) | [static] |
supports name string, and PVs.
| param | the parameter |
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().


| 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!
| name | domain name |
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().


| static enum hash_source hash_fixup | ( | const char * | my_hash_source | ) | [static] |
| my_hash_source | the hash source as string |
Definition at line 95 of file cr_fixup.c.
Referenced by cr_route_fixup().

1.7.1