From 541bc2306fd9f3d417bd0372d41e254a12e71095 Mon Sep 17 00:00:00 2001
From: Sven Gestegard Robertz <sven.robertz@cs.lth.se>
Date: Tue, 10 Feb 2015 10:31:01 +0100
Subject: [PATCH] added handler for avoid in examples/simple/

---
 examples/simple/example_decoder.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/examples/simple/example_decoder.c b/examples/simple/example_decoder.c
index 122745d..107aada 100644
--- a/examples/simple/example_decoder.c
+++ b/examples/simple/example_decoder.c
@@ -8,6 +8,10 @@
 #include "gen/simple.h"
 #include <stdio.h>
 
+static void handle_simple_doavoid(simple_doavoid *v, void *context) {
+  printf("Got a void.\n");
+}
+
 static void handle_simple_theTwoInts(simple_TwoInts *v,void *context) {
   printf("Got theTwoInts. a=%d, b=%d\n", v->a, v->b);
 }
@@ -69,6 +73,7 @@ int main(int argc, char *argv[]) {
     return 1;
   }
 
+  labcomm_decoder_register_simple_doavoid(decoder, handle_simple_doavoid, context);
   labcomm_decoder_register_simple_theTwoInts(decoder, handle_simple_theTwoInts, context);
   labcomm_decoder_register_simple_anotherTwoInts(decoder, handle_simple_anotherTwoInts, context);
   labcomm_decoder_register_simple_IntString(decoder, handle_simple_IntString, context);
-- 
GitLab