Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Esteban Blanc
proview
Commits
3d5c30f2
Commit
3d5c30f2
authored
Feb 19, 2010
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New xtt command 'close trace'
parent
ac3c9134
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+41
-0
No files found.
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
3d5c30f2
...
@@ -3845,6 +3845,47 @@ static int xnav_close_func( void *client_data,
...
@@ -3845,6 +3845,47 @@ static int xnav_close_func( void *client_data,
xnav
->
ev
->
unmap_eve
();
xnav
->
ev
->
unmap_eve
();
}
}
}
}
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"TRACE"
,
strlen
(
arg1_str
))
==
0
)
{
RtTrace
*
tractx
;
pwr_tOName
name_str
;
pwr_tStatus
sts
;
pwr_tCid
cid
;
pwr_tOid
window_oid
,
oid
;
if
(
EVEN
(
dcli_get_qualifier
(
"dcli_arg2"
,
name_str
,
sizeof
(
name_str
))))
{
if
(
EVEN
(
dcli_get_qualifier
(
"/NAME"
,
name_str
,
sizeof
(
name_str
))))
{
if
(
EVEN
(
xnav
->
get_current_object
(
&
oid
,
name_str
,
sizeof
(
name_str
),
cdh_mName_path
|
cdh_mName_object
|
cdh_mName_attribute
)))
{
xnav
->
message
(
'E'
,
"Enter name or select an object"
);
return
XNAV__SUCCESS
;
}
}
}
sts
=
gdh_NameToObjid
(
name_str
,
&
oid
);
if
(
EVEN
(
sts
))
{
xnav
->
message
(
'E'
,
"No such object"
);
return
XNAV__SUCCESS
;
}
sts
=
gdh_GetObjectClass
(
oid
,
&
cid
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
cid
==
pwr_cClass_plc
)
{
// Take the first child
sts
=
gdh_GetChild
(
oid
,
&
window_oid
);
if
(
EVEN
(
sts
))
return
sts
;
}
else
window_oid
=
oid
;
if
(
xnav
->
appl
.
find
(
applist_eType_Trace
,
window_oid
,
(
void
**
)
&
tractx
))
{
xnav
->
appl
.
remove
(
(
void
*
)
tractx
);
delete
tractx
;
}
}
else
else
xnav
->
message
(
'E'
,
"Syntax error"
);
xnav
->
message
(
'E'
,
"Syntax error"
);
...
...
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