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
86ff568a
Commit
86ff568a
authored
Nov 03, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt, menu item System-History added, and command 'show history'
parent
55bf351e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
xtt/exe/rt_xtt/src/xtt_main.cpp
xtt/exe/rt_xtt/src/xtt_main.cpp
+1
-0
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+38
-0
No files found.
xtt/exe/rt_xtt/src/xtt_main.cpp
View file @
86ff568a
...
...
@@ -110,6 +110,7 @@ xnav_sStartMenu Xtt::system_menu[] = {
{
"System Status"
,
xnav_eItemType_Command
,
menu_ePixmap_Map
,
(
void
*
)
"show nodeinfo"
},
{
"Nodes"
,
xnav_eItemType_Command
,
menu_ePixmap_Map
,
(
void
*
)
"show nodeobjects"
},
{
"Volumes"
,
xnav_eItemType_Command
,
menu_ePixmap_Map
,
(
void
*
)
"show volumes"
},
{
"History"
,
xnav_eItemType_Command
,
menu_ePixmap_Map
,
(
void
*
)
"show history"
},
{
""
,
0
,
0
,
NULL
}};
xnav_sStartMenu
Xtt
::
root_menu
[]
=
{
{
"Database"
,
xnav_eItemType_Command
,
menu_ePixmap_Map
,
(
void
*
)
"show database"
},
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
86ff568a
...
...
@@ -2892,6 +2892,44 @@ static int xnav_show_func( void *client_data,
return
XNAV__HOLDCOMMAND
;
}
}
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"HISTORY"
,
strlen
(
arg1_str
))
==
0
)
{
int
sts
;
pwr_tOid
root
;
pwr_tOid
child
;
Item
*
item
;
int
cnt
;
// Get the toplevel objects
sts
=
gdh_NameToObjid
(
"pwrNode-sev"
,
&
root
);
if
(
EVEN
(
sts
))
{
xnav
->
message
(
'E'
,
"No storage server on this node"
);
return
XNAV__SUCCESS
;
}
// Loop through all root objects and see if they are valid at toplevel
cnt
=
0
;
for
(
sts
=
gdh_GetChild
(
root
,
&
child
);
ODD
(
sts
);
sts
=
gdh_GetNextSibling
(
child
,
&
child
))
{
if
(
cnt
==
0
)
{
xnav
->
brow_pop
();
brow_SetNodraw
(
xnav
->
brow
->
ctx
);
}
sts
=
xnav
->
create_object_item
(
child
,
NULL
,
flow_eDest_IntoLast
,
(
void
**
)
&
item
,
0
);
cnt
++
;
}
if
(
!
cnt
)
{
xnav
->
message
(
'E'
,
"No history objects found"
);
return
XNAV__SUCCESS
;
}
brow_ResetNodraw
(
xnav
->
brow
->
ctx
);
brow_Redraw
(
xnav
->
brow
->
ctx
,
0
);
}
else
{
/* This might be a system picture */
...
...
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