Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sven Gestegård Robertz
LabComm
Commits
f086893e
Commit
f086893e
authored
Apr 24, 2013
by
Sven Robertz
Browse files
adapted simple example to encoder/decoder.h
parent
2d23900b
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/simple/example_decoder.c
View file @
f086893e
#include
<sys/types.h>
#include
<sys/stat.h>
#include
<fcntl.h>
#include
<labcomm_fd_reader
_writer
.h>
#include
<labcomm_fd_reader.h>
#include
"gen/simple.h"
#include
<stdio.h>
static
void
handle_simple_theTwoInts
(
simple_TwoInts
*
v
,
void
*
context
)
{
printf
(
"Got theTwoInts. a=%d, b=%d
\n
"
,
v
->
a
,
v
->
b
);
...
...
examples/simple/example_encoder.c
View file @
f086893e
#include
<sys/types.h>
#include
<sys/stat.h>
#include
<fcntl.h>
#include
<labcomm_fd_
reader_
writer.h>
#include
<labcomm_fd_writer.h>
#include
"gen/simple.h"
#include
<stdio.h>
int
main
(
int
argc
,
char
*
argv
[])
{
int
fd
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment