Renamed ulayer -> callbacks

This commit is contained in:
adamdunkels 2007-03-15 10:01:04 +00:00
parent 26a681cf37
commit fd33a89214
19 changed files with 67 additions and 67 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: ruc.h,v 1.1 2007/02/28 16:38:52 adamdunkels Exp $
* $Id: ruc.h,v 1.2 2007/03/15 10:01:04 adamdunkels Exp $
*/
/**
@ -45,19 +45,19 @@
struct ruc_conn;
struct ruc_ulayer {
struct ruc_callbacks {
int (* recv)(struct ruc_conn *c, node_id_t from, u8_t seqno);
void (* sent)(struct ruc_conn *c);
};
struct ruc_conn {
struct suc_conn c;
const struct ruc_ulayer *u;
const struct ruc_callbacks *u;
u8_t state;
};
void ruc_setup(struct ruc_conn *c, u16_t channel,
const struct ruc_ulayer *u);
const struct ruc_callbacks *u);
int ruc_send(struct ruc_conn *c, node_id_t receiver_id);