Skip to content
Snippets Groups Projects
Commit f086893e authored by Sven Robertz's avatar Sven Robertz
Browse files

adapted simple example to encoder/decoder.h

parent 2d23900b
No related branches found
No related tags found
No related merge requests found
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <labcomm_fd_reader_writer.h> #include <labcomm_fd_reader.h>
#include "gen/simple.h" #include "gen/simple.h"
#include <stdio.h>
static void handle_simple_theTwoInts(simple_TwoInts *v,void *context) { static void handle_simple_theTwoInts(simple_TwoInts *v,void *context) {
printf("Got theTwoInts. a=%d, b=%d\n", v->a, v->b); printf("Got theTwoInts. a=%d, b=%d\n", v->a, v->b);
......
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <labcomm_fd_reader_writer.h> #include <labcomm_fd_writer.h>
#include "gen/simple.h" #include "gen/simple.h"
#include <stdio.h>
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
int fd; int fd;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment