Changeset 95624 in vbox for trunk/include
- Timestamp:
- Jul 13, 2022 8:31:41 PM (2 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asn1-generator-pass.h
r95594 r95624 865 865 # define RTASN1TMPL_END_SETCORE() RTASN1TMPL_SEMICOLON_DUMMY() 866 866 867 # define RTASN1TMPL_MEMBER_OPT_ITAG_EX(a_Name, a_Type, a_Api, a_uTag, a_fClue, a_Constraints) \ 868 RTASN1TMPL_DECL(int) RT_CONCAT3(RTASN1TMPL_EXT_NAME,_Set,a_Name)(RT_CONCAT(P,RTASN1TMPL_TYPE) pThis, RT_CONCAT(PC,a_Type) pSrc,\ 869 PCRTASN1ALLOCATORVTABLE pAllocator) \ 870 { \ 871 AssertPtr(pThis); AssertPtr(pSrc); Assert(RT_CONCAT(a_Api,_IsPresent)(pSrc)); \ 872 if (RT_CONCAT(a_Api,_IsPresent)(&pThis->a_Name)) \ 873 RT_CONCAT(a_Api,_Delete)(&pThis->a_Name); \ 874 \ 875 int rc = RT_CONCAT(a_Api,_Clone)(&pThis->a_Name, pSrc, pAllocator); \ 876 if (RT_SUCCESS(rc)) \ 877 { \ 878 RTAsn1Core_ResetImplict(RT_CONCAT(a_Api,_GetAsn1Core)(&pThis->a_Name)); /* probably not needed */ \ 879 rc = RTAsn1Core_SetTagAndFlags(RT_CONCAT(a_Api,_GetAsn1Core)(&pThis->a_Name), \ 880 a_uTag, RTASN1TMPL_ITAG_F_EXPAND(a_fClue)); \ 881 } \ 882 return rc; \ 883 } RTASN1TMPL_SEMICOLON_DUMMY() 884 885 # define RTASN1TMPL_MEMBER_OPT_XTAG_EX(a_TnNm, a_CtxTagN, a_Name, a_Type, a_Api, a_uTag, a_Constraints) \ 886 RTASN1TMPL_DECL(int) RT_CONCAT3(RTASN1TMPL_EXT_NAME,_Set,a_Name)(RT_CONCAT(P,RTASN1TMPL_TYPE) pThis, RT_CONCAT(PC,a_Type) pSrc,\ 887 PCRTASN1ALLOCATORVTABLE pAllocator) \ 888 { \ 889 AssertPtr(pThis); AssertPtr(pSrc); Assert(RT_CONCAT(a_Api,_IsPresent)(pSrc)); \ 890 if (RTASN1CORE_IS_PRESENT(&pThis->a_TnNm.a_CtxTagN.Asn1Core)) \ 891 RT_CONCAT(a_Api,_Delete)(&pThis->a_TnNm.a_Name); \ 892 \ 893 int rc = RT_CONCAT3(RTAsn1ContextTag,a_uTag,_Init)(&pThis->a_TnNm.a_CtxTagN, \ 894 &RT_CONCAT5(g_,RTASN1TMPL_INT_NAME,_XTAG_,a_Name,_Vtable), \ 895 pAllocator); \ 896 if (RT_SUCCESS(rc)) \ 897 { \ 898 rc = RT_CONCAT(a_Api,_Clone)(&pThis->a_TnNm.a_Name, pSrc, pAllocator); \ 899 if (RT_SUCCESS(rc)) \ 900 RTAsn1Core_ResetImplict(RT_CONCAT(a_Api,_GetAsn1Core)(&pThis->a_TnNm.a_Name)); \ 901 } \ 902 return rc; \ 903 } RTASN1TMPL_SEMICOLON_DUMMY() 867 904 868 905 # define RTASN1TMPL_BEGIN_PCHOICE() RTASN1TMPL_SEMICOLON_DUMMY() -
trunk/include/iprt/asn1.h
r95596 r95624 1107 1107 1108 1108 RTDECL(int) RTAsn1ObjId_InitFromString(PRTASN1OBJID pThis, const char *pszObjId, PCRTASN1ALLOCATORVTABLE pAllocator); 1109 RTDECL(int) RTAsn1ObjId_SetFromString(PRTASN1OBJID pThis, const char *pszObjId, PCRTASN1ALLOCATORVTABLE pAllocator); 1109 1110 1110 1111 /** … … 1185 1186 #define RTASN1BITSTRING_GET_BYTE_SIZE(a_pBitString) ( ((a_pBitString)->cBits + 7U) >> 3 ) 1186 1187 1188 RTDECL(int) RTAsn1BitString_InitWithData(PRTASN1BITSTRING pThis, void const *pvSrc, uint32_t cSrcBits, 1189 PCRTASN1ALLOCATORVTABLE pAllocator); 1187 1190 RTDECL(int) RTAsn1BitString_DecodeAsn1Ex(PRTASN1CURSOR pCursor, uint32_t fFlags, uint32_t cMaxBits, PRTASN1BITSTRING pThis, 1188 1191 const char *pszErrorTag); -
trunk/include/iprt/crypto/spc.h
r95613 r95624 293 293 typedef RTCRSPCSTRING const *PCRTCRSPCSTRING; 294 294 RTASN1TYPE_STANDARD_PROTOTYPES(RTCRSPCSTRING, RTDECL, RTCrSpcString, Dummy.Asn1Core); 295 296 RTDECL(int) RTCrSpcString_SetUcs2(PRTCRSPCSTRING pThis, PCRTASN1STRING pToClone, PCRTASN1ALLOCATORVTABLE pAllocator); 297 RTDECL(int) RTCrSpcString_SetAscii(PRTCRSPCSTRING pThis, PCRTASN1STRING pToClone, PCRTASN1ALLOCATORVTABLE pAllocator); 295 298 296 299 … … 351 354 RTASN1TYPE_STANDARD_PROTOTYPES(RTCRSPCLINK, RTDECL, RTCrSpcLink, Dummy.Asn1Core); 352 355 356 RTDECL(int) RTCrSpcLink_SetUrl(PRTCRSPCLINK pThis, PCRTASN1STRING pToClone, PCRTASN1ALLOCATORVTABLE pAllocator); 357 RTDECL(int) RTCrSpcLink_SetMoniker(PRTCRSPCLINK pThis, PCRTCRSPCSERIALIZEDOBJECT pToClone, PCRTASN1ALLOCATORVTABLE pAllocator); 358 RTDECL(int) RTCrSpcLink_SetFile(PRTCRSPCLINK pThis, PCRTCRSPCSTRING pToClone, PCRTASN1ALLOCATORVTABLE pAllocator); 359 353 360 354 361 #if 0 /** @todo Might not be the correct bit order. */ … … 389 396 typedef RTCRSPCPEIMAGEDATA const *PCRTCRSPCPEIMAGEDATA; 390 397 RTASN1TYPE_STANDARD_PROTOTYPES(RTCRSPCPEIMAGEDATA, RTDECL, RTCrSpcPeImageData, SeqCore.Asn1Core); 398 399 RTDECL(int) RTCrSpcPeImageData_SetFlags(PRTCRSPCPEIMAGEDATA pThis, PCRTASN1BITSTRING pToClone, PCRTASN1ALLOCATORVTABLE pAllocator); 400 RTDECL(int) RTCrSpcPeImageData_SetFile(PRTCRSPCPEIMAGEDATA pThis, PCRTCRSPCLINK pToClone, PCRTASN1ALLOCATORVTABLE pAllocator); 391 401 392 402 /** The object ID for SpcPeImageData. */ -
trunk/include/iprt/mangling.h
r95596 r95624 3081 3081 # define RTAsn1BitString_GetAsUInt64 RT_MANGLER(RTAsn1BitString_GetAsUInt64) 3082 3082 # define RTAsn1BitString_Init RT_MANGLER(RTAsn1BitString_Init) 3083 # define RTAsn1BitString_InitWithData RT_MANGLER(RTAsn1BitString_InitWithData) 3083 3084 # define RTAsn1BitString_AreContentBitsValid RT_MANGLER(RTAsn1BitString_AreContentBitsValid) 3084 3085 # define RTAsn1BitString_RefreshContent RT_MANGLER(RTAsn1BitString_RefreshContent) … … 3206 3207 # define RTAsn1ObjId_Init RT_MANGLER(RTAsn1ObjId_Init) 3207 3208 # define RTAsn1ObjId_InitFromString RT_MANGLER(RTAsn1ObjId_InitFromString) 3209 # define RTAsn1ObjId_SetFromString RT_MANGLER(RTAsn1ObjId_SetFromString) 3208 3210 # define RTAsn1ObjId_StartsWith RT_MANGLER(RTAsn1ObjId_StartsWith) 3209 3211 # define RTAsn1SeqOfObjIds_CheckSanity RT_MANGLER(RTAsn1SeqOfObjIds_CheckSanity) … … 3627 3629 # define RTCrSpcIndirectDataContent_DecodeAsn1 RT_MANGLER(RTCrSpcIndirectDataContent_DecodeAsn1) 3628 3630 # define RTCrSpcLink_DecodeAsn1 RT_MANGLER(RTCrSpcLink_DecodeAsn1) 3631 # define RTCrSpcPeImageData_SetFile RT_MANGLER(RTCrSpcPeImageData_SetFile) 3632 # define RTCrSpcPeImageData_SetFlags RT_MANGLER(RTCrSpcPeImageData_SetFlags) 3629 3633 # define RTCrSpcPeImageData_DecodeAsn1 RT_MANGLER(RTCrSpcPeImageData_DecodeAsn1) 3630 3634 # define RTCrSpcSerializedObjectAttribute_DecodeAsn1 RT_MANGLER(RTCrSpcSerializedObjectAttribute_DecodeAsn1) … … 3640 3644 # define RTCrSpcIndirectDataContent_Enum RT_MANGLER(RTCrSpcIndirectDataContent_Enum) 3641 3645 # define RTCrSpcIndirectDataContent_GetPeImageObjAttrib RT_MANGLER(RTCrSpcIndirectDataContent_GetPeImageObjAttrib) 3646 # define RTCrSpcLink_SetFile RT_MANGLER(RTCrSpcLink_SetFile) 3647 # define RTCrSpcLink_SetMoniker RT_MANGLER(RTCrSpcLink_SetMoniker) 3648 # define RTCrSpcLink_SetUrl RT_MANGLER(RTCrSpcLink_SetUrl) 3642 3649 # define RTCrSpcLink_Compare RT_MANGLER(RTCrSpcLink_Compare) 3643 3650 # define RTCrSpcLink_Delete RT_MANGLER(RTCrSpcLink_Delete) … … 3666 3673 # define RTCrSpcIndirectDataContent_Clone RT_MANGLER(RTCrSpcIndirectDataContent_Clone) 3667 3674 # define RTCrSpcIndirectDataContent_Init RT_MANGLER(RTCrSpcIndirectDataContent_Init) 3675 # define RTCrSpcString_SetAscii RT_MANGLER(RTCrSpcString_SetAscii) 3676 # define RTCrSpcString_SetUcs2 RT_MANGLER(RTCrSpcString_SetUcs2) 3668 3677 # define RTCrSpcLink_Clone RT_MANGLER(RTCrSpcLink_Clone) 3669 3678 # define RTCrSpcLink_Init RT_MANGLER(RTCrSpcLink_Init)
Note:
See TracChangeset
for help on using the changeset viewer.