Functions

cr_db.c File Reference

Functions for loading routing data from a database. More...

#include "../../dprint.h"
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "carrierroute.h"
#include "cr_db.h"
#include "cr_carrier.h"
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for cr_db.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file cr_db.c.


Function Documentation

int load_route_data_db ( struct route_data_t rd  ) 
Parameters:
rd Pointer to the route data tree where the routing data shall be loaded into
Returns:
0 means ok, -1 means an error occured

Definition at line 258 of file cr_db.c.

References add_carrier_data(), add_failure_route(), add_route(), route_data_t::carrier_map, route_data_t::carrier_num, route_data_t::carriers, create_carrier_data(), DB_CAP_FETCH, DB_CAPABILITY, destroy_carrier_data(), route_data_t::domain_num, db_val_t::double_val, name_map_t::id, db_val_t::int_val, _str::len, name_map_t::name, RES_ROW_N, RES_ROWS, _str::s, db_val_t::string_val, db_val_t::val, and db_row::values.

Referenced by reload_route_data().

Here is the call graph for this function:

Here is the caller graph for this function: