#include #include #include #include #include #include #include #include #include #include "nbrcosttable.h" #include "../common/constants.h" #include "../topology/topology.h" //This function creates a neighbor cost table dynamically //and initialize the table with all its neighbors' node IDs and direct link costs. //The neighbors' node IDs and direct link costs are retrieved from topology.dat file. nbr_cost_entry_t* nbrcosttable_create() { return 0; } //This function destroys a neighbor cost table. //It frees all the dynamically allocated memory for the neighbor cost table. void nbrcosttable_destroy(nbr_cost_entry_t* nct) { return; } //This function is used to get the direct link cost from neighbor. //The direct link cost is returned if the neighbor is found in the table. //INFINITE_COST is returned if the node is not found in the table. unsigned int nbrcosttable_getcost(nbr_cost_entry_t* nct, int nodeID) { return 0; } //This function prints out the contents of a neighbor cost table. void nbrcosttable_print(nbr_cost_entry_t* nct) { return; }