aboutsummaryrefslogtreecommitdiff
path: root/msg
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-20 18:27:05 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-21 14:27:01 +0100
commitcadcad6ffbdfbe9b92a5936f4d894138f912b4ff (patch)
tree3c42f405c89052f8f807bc645b20ce330a3b0591 /msg
parent7c3223b8609ee418b520d19cae7e52d2a7a85e99 (diff)
downloadpx4-firmware-cadcad6ffbdfbe9b92a5936f4d894138f912b4ff.tar.gz
px4-firmware-cadcad6ffbdfbe9b92a5936f4d894138f912b4ff.tar.bz2
px4-firmware-cadcad6ffbdfbe9b92a5936f4d894138f912b4ff.zip
messagelayer prototype for nuttx
Diffstat (limited to 'msg')
-rw-r--r--msg/templates/msg.h.template7
1 files changed, 4 insertions, 3 deletions
diff --git a/msg/templates/msg.h.template b/msg/templates/msg.h.template
index c27daed83..826418d11 100644
--- a/msg/templates/msg.h.template
+++ b/msg/templates/msg.h.template
@@ -165,12 +165,13 @@ def get_field_init(field):
return '\n\t%s(%s),'%(field.name, init_value)
}
-@#ifdef __cplusplus
+#ifdef __cplusplus
@#class @(spec.short_name)_s {
+struct __EXPORT @(spec.short_name)_s {
@#public:
-@#else
+#else
struct @(spec.short_name)_s {
-@#endif
+#endif
@{
# loop over all fields and print the type and name
for field in spec.parsed_fields():