Commit fbd156f4 authored by claes's avatar claes

New function ldh_GetVidInfo

parent 946b39b0
...@@ -798,6 +798,19 @@ ldh_GetSessionInfo(ldh_tSession session, ldh_sSessInfo *ip) ...@@ -798,6 +798,19 @@ ldh_GetSessionInfo(ldh_tSession session, ldh_sSessInfo *ip)
return LDH__SUCCESS; return LDH__SUCCESS;
} }
pwr_tStatus
ldh_GetVidInfo( ldh_tWorkbench workbench, pwr_tVid vid, ldh_sVolumeInfo *ip)
{
wb_env *wb = (wb_env *)workbench;
wb_volume v = wb->volume( vid);
ip->Volume = v.vid();
ip->Class = v.cid();
ip->VolRep = v.type();
//ip->Version = v.time();
return LDH__SUCCESS;
}
pwr_tStatus pwr_tStatus
ldh_GetVolumeInfo(ldh_tVolume volume, ldh_sVolumeInfo *ip) ldh_GetVolumeInfo(ldh_tVolume volume, ldh_sVolumeInfo *ip)
{ {
...@@ -805,6 +818,7 @@ ldh_GetVolumeInfo(ldh_tVolume volume, ldh_sVolumeInfo *ip) ...@@ -805,6 +818,7 @@ ldh_GetVolumeInfo(ldh_tVolume volume, ldh_sVolumeInfo *ip)
ip->Volume = vp->vid(); ip->Volume = vp->vid();
ip->Class = vp->cid(); ip->Class = vp->cid();
ip->VolRep = vp->type();
//ip->Version = vp->time(); //ip->Version = vp->time();
return LDH__SUCCESS; return LDH__SUCCESS;
......
...@@ -287,15 +287,16 @@ struct ldh_s_MenuCall { ...@@ -287,15 +287,16 @@ struct ldh_s_MenuCall {
void *EditorContext; void *EditorContext;
void *WindowContext; void *WindowContext;
ldh_eMenuSet PointedSet; ldh_eMenuSet PointedSet;
ldh_tSession PointedSession; ldh_tSession PointedSession;
pwr_sAttrRef Pointed; pwr_sAttrRef Pointed;
ldh_eMenuSet SelectedSet; ldh_eMenuSet SelectedSet;
ldh_tSession SelectedSession; ldh_tSession SelectedSession;
pwr_sAttrRef *Selected; pwr_sAttrRef *Selected;
pwr_tUInt32 SelectCount; pwr_tUInt32 SelectCount;
ldh_sMenuItem *ItemList; ldh_sMenuItem *ItemList;
pwr_tUInt32 ItemCount; pwr_tUInt32 ItemCount;
pwr_tUInt32 ChosenItem; pwr_tUInt32 ChosenItem;
void (*message_cb)( void *, char, char *);
}; };
struct ldh_s_SessInfo { struct ldh_s_SessInfo {
...@@ -319,6 +320,7 @@ struct ldh_s_VolumeInfo { ...@@ -319,6 +320,7 @@ struct ldh_s_VolumeInfo {
pwr_tVolumeId Volume; pwr_tVolumeId Volume;
pwr_tClassId Class; pwr_tClassId Class;
pwr_tProjVersion Version; pwr_tProjVersion Version;
ldh_eVolRep VolRep;
}; };
struct ldh_s_ParDef { struct ldh_s_ParDef {
...@@ -925,6 +927,13 @@ ldh_GetVolumeInfo ( ...@@ -925,6 +927,13 @@ ldh_GetVolumeInfo (
ldh_sVolumeInfo *info ldh_sVolumeInfo *info
); );
pwr_tStatus
ldh_GetVidInfo(
ldh_tWorkbench workbench,
pwr_tVid vid,
ldh_sVolumeInfo *info
);
pwr_tStatus pwr_tStatus
ldh_TypeIdToName ( ldh_TypeIdToName (
ldh_tSession session, ldh_tSession session,
......
Markdown is supported
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