25 lines
378 B
C
25 lines
378 B
C
#ifndef ROUTING4SITA_H
|
|
#define ROUTING4SITA_H
|
|
|
|
#define MAX_CHILDREN 3
|
|
|
|
typedef struct node NODE_t;
|
|
typedef struct threadData THREAD_DATA_t;
|
|
|
|
extern NODE_t* getStartNode();
|
|
|
|
struct node {
|
|
int id;
|
|
int nodescount;
|
|
NODE_t* nodesnext[MAX_CHILDREN];
|
|
int nodescost[MAX_CHILDREN];
|
|
};
|
|
|
|
|
|
struct threadData {
|
|
NODE_t* node;
|
|
int cost;
|
|
};
|
|
|
|
#endif /* ROUTING4SITA_H */
|