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
fbd89fcb
Commit
fbd89fcb
authored
Nov 02, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reference instance i 'open graph' didn't work on attrref
parent
0481bce7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
7 deletions
+39
-7
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+39
-7
No files found.
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
fbd89fcb
/*
* Proview $Id: xtt_xnav_command.cpp,v 1.3
1 2007-05-16 12:37:39
claes Exp $
* Proview $Id: xtt_xnav_command.cpp,v 1.3
2 2007-11-02 07:10:54
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2247,15 +2247,47 @@ static int xnav_open_func( void *client_data,
instance_p
=
instance_str
;
if
(
instance_str
[
0
]
==
'&'
)
{
pwr_tOid
oid
;
pwr_tStatus
sts
;
pwr_tTid
tid
;
pwr_tUInt32
size
,
offs
,
elem
;
sts
=
gdh_GetAttributeCharacteristics
(
&
instance_str
[
1
],
&
tid
,
&
size
,
&
offs
,
&
elem
);
if
(
EVEN
(
sts
))
{
xnav
->
message
(
'E'
,
"Instance object not found"
);
return
XNAV__HOLDCOMMAND
;
}
switch
(
tid
)
{
case
pwr_eType_Objid
:
{
pwr_tOid
oid
;
// Objid attribute the contains the instance
sts
=
gdh_GetObjectInfo
(
&
instance_str
[
1
],
&
oid
,
sizeof
(
oid
));
if
(
ODD
(
sts
))
sts
=
gdh_ObjidToName
(
oid
,
instance_str
,
sizeof
(
instance_str
),
// Objid attribute the contains the instance
sts
=
gdh_GetObjectInfo
(
&
instance_str
[
1
],
&
oid
,
sizeof
(
oid
));
if
(
ODD
(
sts
))
sts
=
gdh_ObjidToName
(
oid
,
instance_str
,
sizeof
(
instance_str
),
cdh_mName_volumeStrict
);
if
(
EVEN
(
sts
))
{
if
(
EVEN
(
sts
))
{
xnav
->
message
(
'E'
,
"Instance object not found"
);
return
XNAV__HOLDCOMMAND
;
}
break
;
}
case
pwr_eType_AttrRef
:
{
pwr_tAttrRef
aref
;
// Objid attribute the contains the instance
sts
=
gdh_GetObjectInfo
(
&
instance_str
[
1
],
&
aref
,
sizeof
(
aref
));
if
(
ODD
(
sts
))
sts
=
gdh_AttrrefToName
(
&
aref
,
instance_str
,
sizeof
(
instance_str
),
cdh_mName_volumeStrict
);
if
(
EVEN
(
sts
))
{
xnav
->
message
(
'E'
,
"Instance object not found"
);
return
XNAV__HOLDCOMMAND
;
}
break
;
}
default:
xnav
->
message
(
'E'
,
"Instance object not found"
);
return
XNAV__HOLDCOMMAND
;
}
...
...
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