Contains the functions to map domain and carrier names to ids. More...
#include "../../str.h"

Go to the source code of this file.
Definition in file cr_map.h.
| int compare_name_map | ( | const void * | v1, | |
| const void * | v2 | |||
| ) |
Definition at line 85 of file cr_map.c.
Referenced by load_config(), and map_id2name().

| str* map_id2name | ( | struct name_map_t * | map, | |
| int | size, | |||
| int | id | |||
| ) |
| map | the mapping list to search in | |
| size | the size of the list | |
| id | the id, we are looking for |
Definition at line 69 of file cr_map.c.
References compare_name_map(), name_map_t::id, and name_map_t::name.
Referenced by get_domain_data_or_add().


| int map_name2id | ( | struct name_map_t * | map, | |
| int | size, | |||
| const str * | name | |||
| ) |
| map | the mapping list to search in | |
| size | the size of the list | |
| name | the name, we are looking for |
Definition at line 46 of file cr_map.c.
References name_map_t::id, _str::len, and str_strcmp().
Referenced by carrier_name_2_id(), cr_gp2id(), domain_name_2_id(), load_config(), and update_route_data().


1.7.1