Commit 43685d44 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Made void samples more like other samples.

parent c2ba658e
......@@ -1038,7 +1038,7 @@ aspect C_Encoder {
env.prefix + getName() +
", (labcomm2014_encoder_function)encode_" +
env.prefix + getName() +
(!isVoid()?", v":", NULL")+");");
(!isVoid()?", v":", labcomm_void_instance")+");");
env.unindent();
env.println("}");
}
......
......@@ -37,6 +37,12 @@
#include "labcomm2014_ioctl.h"
#include "labcomm2014_dynamic_buffer_writer.h"
/*
* A non-null void sample instance
*/
void *labcomm_void_instance = &labcomm_void_instance;
/* Unwrapping reader/writer functions */
#define UNWRAP_ac(rw, ac, ...) ac
#define UNWRAP(func, ...) \
......
......@@ -81,6 +81,11 @@
#define LABCOMM_CONSTRUCTOR __attribute__((constructor))
#endif
/*
* A non-null void sample instance
*/
extern void *labcomm_void_instance;
/*
* Semi private dynamic memory declarations
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment