Renamed the rimebuf module to packetbuf to signal that the module is used outside of a pure Rime context (e.g., the sicslowpan code uses it).

This commit is contained in:
adamdunkels 2009-03-12 21:58:20 +00:00
parent 932fc9f748
commit 65eb5fd4e8
90 changed files with 690 additions and 687 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: test-abc.c,v 1.3 2007/11/06 14:48:18 nvt-se Exp $
* $Id: test-abc.c,v 1.4 2009/03/12 21:58:21 adamdunkels Exp $
*/
/**
@ -53,11 +53,11 @@ abc_recv(struct abc_conn *c)
char *s;
int i;
s = rimebuf_dataptr();
s = packetbuf_dataptr();
printf("abc message received '%s'\n", (char *)rimebuf_dataptr());
printf("message length: %u\n", rimebuf_datalen());
for (i = 0; i < rimebuf_datalen(); i++) {
printf("abc message received '%s'\n", (char *)packetbuf_dataptr());
printf("message length: %u\n", packetbuf_datalen());
for (i = 0; i < packetbuf_datalen(); i++) {
printf("0x%x ", s[i]);
}
printf("\n");
@ -83,7 +83,7 @@ PROCESS_THREAD(test_abc_process, ev, data)
PROCESS_WAIT_EVENT();
if (etimer_expired(&et)) {
len = snprintf(buf, sizeof (buf), "%u", ++i);
rimebuf_copyfrom(buf, len + 1);
packetbuf_copyfrom(buf, len + 1);
abc_send(&abc);
}
}