Added hopcount to callbacks
This commit is contained in:
parent
0c748d7dd2
commit
601560b1eb
6 changed files with 15 additions and 18 deletions
|
@ -49,7 +49,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: mesh.h,v 1.9 2007/12/17 09:14:08 adamdunkels Exp $
|
||||
* $Id: mesh.h,v 1.10 2008/01/08 07:55:56 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -73,7 +73,7 @@ struct mesh_conn;
|
|||
*/
|
||||
struct mesh_callbacks {
|
||||
/** Called when a packet is received. */
|
||||
void (* recv)(struct mesh_conn *c, rimeaddr_t *from);
|
||||
void (* recv)(struct mesh_conn *c, rimeaddr_t *from, u8_t hops);
|
||||
/** Called when a packet, sent with mesh_send(), is actually transmitted. */
|
||||
void (* sent)(struct mesh_conn *c);
|
||||
/** Called when a packet, sent with mesh_send(), times out and is dropped. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue