Commit c43840a9 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix a corner case in GUI interface

parent 7f13302d
@@-- The following tags are available in this template:
@@-- The up to date list of tags available for this template is available here:
@@-- If you have no internet access you can also use (with vim) Ctrl-W-f then Ctrl-W-L (or gf)
@@-- in vim to open the doc: $HOME/tool-inst/share/kazoo/doc/templates_skeletons_sub_function.ascii
@@--
@@-- @_Name_@ : The name of the function
@@-- @_Language_@ : The implementation language
@@-- @_List_Of_PIs_@ : List of all Provided Interfaces (just names)
@@-- @_List_Of_RIs_@ : List of all Required Interfaces (just names)
@@-- @_List_Of_Sync_PIs@ : List of synchronous Provided Interfaces
@@-- @_List_Of_Sync_RIs@ : List of synchronous Required Interfaces
@@-- @_Sync_RIs_Parent_@
@@-- @_List_Of_ASync_PIs@ : Vector tag: list of async Provided Interfaces
@@-- @_ASync_PI_Param_Name_@ : |_ Corresponding parameter name (or empty string)
@@-- @_ASync_PI_Param_Type_@ : |_ Corresponding parameter type (or empty string)
@@-- @_List_Of_ASync_RIs@ : Vector tag: list of asynchronous Required Interfaces
@@-- @_ASync_RI_Param_Name_@ : |_ Corresponding parameter name (or empty string)
@@-- @_ASync_RI_Param_Type_@ : |_ Corresponding parameter type (or empty string)
@@-- @_Async_RIs_Parent_@ : |_ Corresponding parent function
@@-- @_ASN1_Modules_@ : List of ASN.1 Modules names
@@-- @_ASN1_Files_@ : List of ASN.1 Files with path
@@-- @_Timers_@ : List of timers (just names)
@@-- @_Has_Context_@ : Flag, True if there are context parameters
@@-- @_CP_Names_@ : List of Context Parameter names
@@-- @_CP_Types_@ : List of Context Parameter types
@@-- @_Provided_Interfaces_@ : From template: Provided interfaces with params
@@-- @_Required_Interfaces_@ : From template: Required interfaces with params
@@-- @_Property_Names_@ : List of User-defined properties (names)
@@-- @_Property_Values_@ : List of User-defined properties (values)
@@-- @_Is_Type_@ : Flag, True if function is a component type
@@-- @_Instance_Of_@ : Optional name of component type
/* Body file for GUI @_Name_@
* Generated by TASTE on @_NOW_@
* Generated by TASTE/Kazoo on @_NOW_@
* DO NOT EDIT THIS FILE MANUALLY - MODIFY THE KAZOO TEMPLATE IF NECESSARY
*/
......@@ -38,18 +14,18 @@
#include "@_LOWER:Name_@.h"
#include "@_LOWER:Name_@_enums_def.h"
// @_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)
@@IF@@ @_List_Of_ASync_PIs'Length_@ > 1 or (@_List_Of_ASync_PIs'Length_@ = 1 and (@_List_Of_ASync_RIs'Length_@ = 0 or not @_Glue_@))
@@-- >1 means there is the Poll function, otherwise =1 if there are no Telecommands (RIs: no Poll function)
@@-- If glue flag was not set, the Poll function is also not there so if there is one PI and no Glue, we have the field
T_@_LOWER:Name_@_PI_list msg_id;
@@END_IF@@
union {
@@TABLE@@
@@IF@@ @_ASync_PI_Param_Type_@ /= ""
@@TABLE@@
@@IF@@ @_ASync_PI_Param_Type_@ /= ""
asn1Scc@_REPLACE_ALL(-/_):ASync_PI_Param_Type_@ @_LOWER:List_Of_ASync_PIs_@_param;
@@END_IF@@
@@END_TABLE@@
@@END_IF@@
@@END_TABLE@@
} msg_data;
} PI_Messages;
......@@ -58,11 +34,11 @@ typedef struct _RI_Messages {
T_@_LOWER:Name_@_RI_list msg_id;
@@END_IF@@
union {
@@TABLE@@
@@IF@@ @_ASync_RI_Param_Type_@ /= ""
@@TABLE@@
@@IF@@ @_ASync_RI_Param_Type_@ /= ""
asn1Scc@_REPLACE_ALL(-/_):ASync_RI_Param_Type_@ @_LOWER:List_Of_ASync_RIs_@_param;
@@END_IF@@
@@END_TABLE@@
@@END_IF@@
@@END_TABLE@@
} msg_data;
} RI_Messages;
......
Supports Markdown
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