nodes in own .c file

This commit is contained in:
2019-05-07 23:04:36 +02:00
parent fccf397c64
commit e836dfc4e2
4 changed files with 99 additions and 122 deletions

View File

@ -1,18 +1,18 @@
#ifndef ROUTING4SITA_H
#define 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];
int id;
int nodescount;
NODE_t* nodesnext[MAX_CHILDREN];
int nodescost[MAX_CHILDREN];
};
@ -21,18 +21,4 @@ struct threadData {
int cost;
};
#endif /* ROUTING4SITA_H */