Added *_close() function to all Rime modules

This commit is contained in:
adamdunkels 2007-03-19 22:10:16 +00:00
parent aa1389e873
commit e4a739a76c
22 changed files with 108 additions and 23 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: mesh.c,v 1.3 2007/03/19 19:24:37 adamdunkels Exp $
* $Id: mesh.c,v 1.4 2007/03/19 22:10:17 adamdunkels Exp $
*/
/**
@ -292,6 +292,14 @@ mesh_open(const struct mesh_callbacks *callbacks,
send_datapacket_handler = send_datapacket;
}
/*---------------------------------------------------------------------------*/
void
mesh_close(void)
{
uc_close(&mc.dataconn);
uc_close(&mc.rrepconn);
nf_close(&mc.rreqconn);
}
/*---------------------------------------------------------------------------*/
int
mesh_send(rimeaddr_t *to)
{