Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kazoo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
kazoo
Commits
9752eae4
Commit
9752eae4
authored
Aug 13, 2019
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve gui templates
parent
c4cdd89b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
17 deletions
+16
-17
templates/concurrency_view/c_pohi_gpr/partition.tmplt
templates/concurrency_view/c_pohi_gpr/partition.tmplt
+0
-1
templates/skeletons/gui-body/function.tmplt
templates/skeletons/gui-body/function.tmplt
+10
-10
templates/skeletons/gui-body/interface.tmplt
templates/skeletons/gui-body/interface.tmplt
+4
-4
templates/skeletons/gui-enum-defs/function.tmplt
templates/skeletons/gui-enum-defs/function.tmplt
+2
-2
No files found.
templates/concurrency_view/c_pohi_gpr/partition.tmplt
View file @
9752eae4
...
...
@@ -122,7 +122,6 @@ project @_CAPITALIZE:Name_@ is
"spwrouter_custom_config.c"
,
"star_dundee_api.c"
,
"trace_manager.c"
,
"trace_manager.cc"
,
"um_threads.c"
);
...
...
templates/skeletons/gui-body/function.tmplt
View file @
9752eae4
...
...
@@ -91,35 +91,35 @@ void @_LOWER:Name_@_startup(void)
}
char *gui_queue_name = NULL;
int len = snprintf (gui_queue_name, 0, "%d_
ground
_RI_queue", geteuid());
int len = snprintf (gui_queue_name, 0, "%d_
@_LOWER:Name_@
_RI_queue", geteuid());
gui_queue_name = (char *) malloc ((size_t) len + 1);
if (NULL != gui_queue_name) {
snprintf (gui_queue_name, len + 1, "%d_
ground
_RI_queue", geteuid());
snprintf (gui_queue_name, len + 1, "%d_
@_LOWER:Name_@
_RI_queue", geteuid());
create_exchange_queue(gui_queue_name, 5, sizeof(RI_Messages), &
ground
_RI_queue_id);
create_exchange_queue(gui_queue_name, 5, sizeof(RI_Messages), &
@_LOWER:Name_@
_RI_queue_id);
free (gui_queue_name);
gui_queue_name = NULL;
}
len = snprintf (gui_queue_name, 0, "%d_
ground
_PI_queue", geteuid());
len = snprintf (gui_queue_name, 0, "%d_
@_LOWER:Name_@
_PI_queue", geteuid());
gui_queue_name = (char *) malloc ((size_t) len + 1);
if (NULL != gui_queue_name) {
snprintf (gui_queue_name, len + 1, "%d_
ground
_PI_queue", geteuid());
snprintf (gui_queue_name, len + 1, "%d_
@_LOWER:Name_@
_PI_queue", geteuid());
create_exchange_queue(gui_queue_name, 10, sizeof(PI_Messages), &
ground
_PI_queue_id);
create_exchange_queue(gui_queue_name, 10, sizeof(PI_Messages), &
@_LOWER:Name_@
_PI_queue_id);
free (gui_queue_name);
gui_queue_name = NULL;
}
len = snprintf (gui_queue_name, 0, "%d_
ground
_PI_Python_queue", geteuid());
len = snprintf (gui_queue_name, 0, "%d_
@_LOWER:Name_@
_PI_Python_queue", geteuid());
gui_queue_name = (char *) malloc ((size_t) len + 1);
if (NULL != gui_queue_name) {
snprintf (gui_queue_name, len + 1, "%d_
ground
_PI_Python_queue", geteuid());
snprintf (gui_queue_name, len + 1, "%d_
@_LOWER:Name_@
_PI_Python_queue", geteuid());
/* Extra queue for the TM sent to the Python mappers */
create_exchange_queue(gui_queue_name, 10, sizeof (PI_Messages), &
ground
_PI_Python_queue_id);
create_exchange_queue(gui_queue_name, 10, sizeof (PI_Messages), &
@_LOWER:Name_@
_PI_Python_queue_id);
free (gui_queue_name);
gui_queue_name = NULL;
...
...
@@ -147,7 +147,7 @@ void @_LOWER:Name_@_PI_poll(void)
(int *)&message_recieved_type)) {
switch(message_recieved_type) {
@@TABLE@@
case i_@_L
OWER:L
ist_Of_ASync_RIs_@:
case i_@_List_Of_ASync_RIs_@:
@_LOWER:Name_@_RI_@_LOWER:List_Of_ASync_RIs_@((asn1Scc@_REPLACE_ALL(-/_):ASync_RI_Param_Type_@ *)msgcontent);
break;
@@END_TABLE@@
...
...
templates/skeletons/gui-body/interface.tmplt
View file @
9752eae4
...
...
@@ -24,13 +24,13 @@ asn1Scc@_REPLACE_ALL((-)/_):Param_Types_@ *OUT_@_LOWER:Param_Names_@
(@_LOWER:Parent_Function_@_PI_queue_id,
sizeof(asn1Scc@_REPLACE_ALL(-/_):Param_Types_@),
(void*)IN_@_LOWER:Param_Names_@,
i_@_
LOWER:
Name_@);
i_@_Name_@);
write_message_to_queue
(@_LOWER:Parent_Function_@_PI_Python_queue_id,
sizeof(asn1Scc@_REPLACE_ALL(-/_):Param_Types_@),
(void*)IN_@_LOWER:Param_Names_@,
i_@_
LOWER:
Name_@);
i_@_Name_@);
@@END_TABLE@@
}
@@ELSE@@
...
...
@@ -41,13 +41,13 @@ void @_LOWER:Parent_Function_@_PI_@_LOWER:Name_@(void)
(@_LOWER:Parent_Function_@_PI_queue_id,
0, // Message parameter size is 0 since there is no parameter
NULL, // Pointer to message content is null for the same reason
i_@_
LOWER:
Name_@);
i_@_Name_@);
write_message_to_queue
(@_LOWER:Parent_Function_@_PI_Python_queue_id,
0,
NULL,
i_@_
LOWER:
Name_@);
i_@_Name_@);
}
@@END_IF@@
@@END_IF@@
templates/skeletons/gui-enum-defs/function.tmplt
View file @
9752eae4
...
...
@@ -36,7 +36,7 @@ typedef enum {
@@INLINE( )(,\n )()@@
@@TABLE@@
@@IF@@ @_LOWER:List_Of_ASync_PIs_@ /= poll
i_@_L
OWER:L
ist_Of_ASync_PIs_@
i_@_List_Of_ASync_PIs_@
@@END_IF@@
@@END_TABLE@@
@@END_INLINE@@
...
...
@@ -45,7 +45,7 @@ typedef enum {
typedef enum {
@@INLINE( )(,\n )()@@
@@TABLE@@
i_@_L
OWER:L
ist_Of_ASync_RIs_@
i_@_List_Of_ASync_RIs_@
@@END_TABLE@@
@@END_INLINE@@
} T_@_LOWER:Name_@_RI_list;
Write
Preview
Markdown
is supported
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