New shutdown function.

This commit is contained in:
Nicolás A. Ortega
2017-07-02 17:13:59 +02:00
parent a393cb8b4e
commit 0db8eb82e9
4 changed files with 19 additions and 2 deletions

View File

@ -24,3 +24,7 @@ int NeoComm_init(unsigned int max_nodes) {
return 0;
return 1;
}
void NeoComm_shutdown() {
NeoComm_shutdown_nodes();
}

View File

@ -40,7 +40,9 @@ int NeoComm_init_nodes(unsigned int max_nodes) {
return 1;
}
void NeoComm_deinit_nodes() {
void NeoComm_shutdown_nodes() {
if(!node_list)
return;
free(node_list);
node_max = 0;
node_count = 0;