Commit b72918a7 authored by claes's avatar claes

cdh_ArefToCastAref() and cdh_ArefAdd() implemented

parent 43e464ac
...@@ -2511,6 +2511,27 @@ int cdh_IsClassVolume( pwr_tVid vid) ...@@ -2511,6 +2511,27 @@ int cdh_IsClassVolume( pwr_tVid vid)
( cdh_cUserClassVolMin <= vid && vid <= cdh_cUserClassVolMax)); ( cdh_cUserClassVolMin <= vid && vid <= cdh_cUserClassVolMax));
} }
pwr_sAttrRef cdh_ArefToCastAref( pwr_sAttrRef *arp)
{
pwr_sAttrRef cast_aref;
cast_aref = *arp;
cast_aref.Offset -= sizeof(pwr_tCastId);
cast_aref.Size = sizeof(pwr_tCastId);
cast_aref.Flags.b.ObjectAttr = 0;
cast_aref.Flags.b.CastAttr = 0;
return cast_aref;
}
pwr_sAttrRef cdh_ArefAdd( pwr_sAttrRef *arp1, pwr_sAttrRef *arp2)
{
pwr_sAttrRef aref = *arp1;
aref.Offset += arp2->Offset;
aref.Size = arp2->Size;
aref.Flags = arp2->Flags;
return aref;
}
/*@}*/ /*@}*/
......
...@@ -965,6 +965,10 @@ cdh_NoCaseStrncmp ( ...@@ -965,6 +965,10 @@ cdh_NoCaseStrncmp (
char *cdh_OpSysToStr( pwr_mOpSys opsys); char *cdh_OpSysToStr( pwr_mOpSys opsys);
pwr_sAttrRef cdh_ArefToCastAref( pwr_sAttrRef *arp);
pwr_sAttrRef cdh_ArefAdd( pwr_sAttrRef *arp1, pwr_sAttrRef *arp2);
/*@}*/ /*@}*/
#ifdef __cplusplus #ifdef __cplusplus
......
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