Bindings: update API (following previous naming consistency changes).
parent
3e3d996e7b
commit
eb99ba6cb2
|
@ -174,11 +174,11 @@ int wait_event(void) {
|
||||||
printf ("TIMER.\n");
|
printf ("TIMER.\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TX: {
|
case MESSAGE_TX: {
|
||||||
printf ("A message has been sent.\n");
|
printf ("A message has been sent.\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MESSAGE: {
|
case MESSAGE_RX: {
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
printf ("No message returned.\n");
|
printf ("No message returned.\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -95,11 +95,11 @@ int main(int argc, char**argv) {
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TX: {
|
case MESSAGE_TX: {
|
||||||
printf ("Message sent.\n");
|
printf ("Message sent.\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MESSAGE: {
|
case MESSAGE_RX: {
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
printf ("Error: no message returned.\n");
|
printf ("Error: no message returned.\n");
|
||||||
should_continue = 0;
|
should_continue = 0;
|
||||||
|
|
Reference in New Issue