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