mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Renamed old netbuf -> rimebuf
This commit is contained in:
parent
ca359a6314
commit
6930910cd3
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: queuebuf.c,v 1.1 2007/02/28 16:38:51 adamdunkels Exp $
|
||||
* $Id: queuebuf.c,v 1.2 2007/03/13 10:28:52 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -45,13 +45,13 @@
|
||||
|
||||
struct queuebuf {
|
||||
u16_t len;
|
||||
u8_t data[NETBUF_SIZE + NETBUF_HDR_SIZE];
|
||||
u8_t data[RIMEBUF_SIZE + RIMEBUF_HDR_SIZE];
|
||||
};
|
||||
|
||||
struct queuebuf_ref {
|
||||
u16_t len;
|
||||
u8_t *ref;
|
||||
u8_t hdr[NETBUF_HDR_SIZE];
|
||||
u8_t hdr[RIMEBUF_HDR_SIZE];
|
||||
u8_t hdrlen;
|
||||
};
|
||||
|
||||
@ -74,7 +74,7 @@ queuebuf_new_from_rimebuf(void)
|
||||
if(rimebuf_is_reference()) {
|
||||
rbuf = memb_alloc(&refbufmem);
|
||||
if(rbuf != NULL) {
|
||||
rbuf->len = rimebuf_len();
|
||||
rbuf->len = rimebuf_datalen();
|
||||
rbuf->ref = rimebuf_reference_ptr();
|
||||
rbuf->hdrlen = rimebuf_copyto_hdr(rbuf->hdr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user