Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
afc0137c
Commit
afc0137c
authored
Jul 12, 2021
by
Maxime Perrotin
Browse files
Fix GUI template
parent
8736b6bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/skeletons/gui-body/function.tmplt
View file @
afc0137c
...
...
@@ -38,9 +38,12 @@
#include "@_LOWER:Name_@.h"
#include "@_LOWER:Name_@_enums_def.h"
@@IF@@
@_List_Of_ASync_PIs
'Length_@ > 0
//
@_List_Of_ASync_PIs
_@
typedef struct _PI_Messages {
@@IF@@ @_List_Of_ASync_PIs'Length_@ > 1 or (@_List_Of_ASync_PIs'Length_@ = 1 and @_List_Of_ASync_RIs'Length_@ = 0)
@@-- >1 means there is the Poll function, otherwise =1 if there are no RIs (no Poll function)
T_@_LOWER:Name_@_PI_list msg_id;
@@END_IF@@
union {
@@TABLE@@
@@IF@@ @_ASync_PI_Param_Type_@ /= ""
...
...
@@ -49,13 +52,11 @@ typedef struct _PI_Messages {
@@END_TABLE@@
} msg_data;
} PI_Messages;
@@ELSE@@
typedef bool PI_Messages;
@@END_IF@@
@@IF@@ @_List_Of_ASync_RIs'Length_@ > 1 @@-- 1 because we ignore Poll
typedef struct _RI_Messages {
@@IF@@ @_List_Of_ASync_RIs'Length_@ > 0
T_@_LOWER:Name_@_RI_list msg_id;
@@END_IF@@
union {
@@TABLE@@
@@IF@@ @_ASync_RI_Param_Type_@ /= ""
...
...
@@ -64,9 +65,6 @@ typedef struct _RI_Messages {
@@END_TABLE@@
} msg_data;
} RI_Messages;
@@ELSE@@
typedef bool RI_Messages;
@@END_IF@@
@@IF@@ @_List_Of_PIs'Length_@ > 0
// Queues of messages going from the binary to the user (PIs, or TMs)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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