Functions for load and save routing data from a config file. More...
#include "cr_data.h"

Go to the source code of this file.
Definition in file cr_config.h.
| int load_config | ( | struct route_data_t * | rd | ) |
| rd | Pointer to the route data tree where the routing data shall be loaded into |
Definition at line 202 of file cr_config.c.
References add_carrier_data(), add_route(), route_data_t::carrier_map, route_data_t::carrier_num, route_data_t::carriers, compare_name_map(), create_carrier_data(), destroy_carrier_data(), route_data_t::domain_map, route_data_t::domain_num, route_data_t::first_empty_carrier, name_map_t::id, _str::len, map_name2id(), name_map_t::name, parse_config(), prefix, _str::s, and str_strcasecmp().
Referenced by reload_route_data(), and update_route_data().


| int save_config | ( | struct route_data_t * | rd | ) |
| rd | Pointer to the routing tree which shall be saved to file |
Definition at line 452 of file cr_config.c.
References route_data_t::carrier_num, route_data_t::carriers, carrier_data_t::domain_num, carrier_data_t::domains, _str::len, domain_data_t::name, _str::s, save_route_data_recursor(), and domain_data_t::tree.
Referenced by update_route_data().


1.7.1