New shutdown function.
This commit is contained in:
@ -24,3 +24,7 @@ int NeoComm_init(unsigned int max_nodes) {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
void NeoComm_shutdown() {
|
||||
NeoComm_shutdown_nodes();
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user