VirtualBox

Changeset 95596 in vbox for trunk/include


Ignore:
Timestamp:
Jul 12, 2022 2:21:54 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/RTAsn1Time: Added RTAsn1Time_SetTime, RTAsn1Time_SetTimeSpec and RTAsn1Time_InitWithTime functions. bugref:8691

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asn1.h

    r95584 r95596  
    10281028RTDECL(int) RTAsn1Time_CompareWithTimeSpec(PCRTASN1TIME pLeft, PCRTTIMESPEC pTsRight);
    10291029
     1030/**
     1031 * Extended init function that lets you select the kind of time object (UTC or
     1032 * generalized).
     1033 */
    10301034RTDECL(int) RTAsn1Time_InitEx(PRTASN1TIME pThis, uint32_t uTag, PCRTASN1ALLOCATORVTABLE pAllocator);
     1035
     1036/**
     1037 * Combines RTAsn1Time_InitEx() and RTAsn1Time_SetTime().
     1038 */
     1039RTDECL(int) RTAsn1Time_InitWithTime(PRTASN1TIME pThis, uint32_t uTag, PCRTASN1ALLOCATORVTABLE pAllocator, PCRTTIME pTime);
     1040
     1041/**
     1042 * Sets the ASN.1 time value to @a pTime.
     1043 *
     1044 * @returns IPRT status code.
     1045 * @param   pThis               The ASN.1 time object to modify.
     1046 * @param   pAllocator          The allocator to use.
     1047 * @param   pTime               The time to set.
     1048 */
     1049RTDECL(int) RTAsn1Time_SetTime(PRTASN1TIME pThis, PCRTASN1ALLOCATORVTABLE pAllocator, PCRTTIME pTime);
     1050
     1051/**
     1052 * Sets the ASN.1 time value to @a pTimeSpec.
     1053 *
     1054 * @returns IPRT status code.
     1055 * @param   pThis               The ASN.1 time object to modify.
     1056 * @param   pAllocator          The allocator to use.
     1057 * @param   pTimeSpec           The time to set.
     1058 */
     1059RTDECL(int) RTAsn1Time_SetTimeSpec(PRTASN1TIME pThis, PCRTASN1ALLOCATORVTABLE pAllocator, PCRTTIMESPEC pTimeSpec);
    10311060
    10321061/** @name Predicate macros for determing the exact type of RTASN1TIME.
  • trunk/include/iprt/mangling.h

    r95586 r95596  
    33833383# define RTAsn1Time_Init                                RT_MANGLER(RTAsn1Time_Init)
    33843384# define RTAsn1Time_InitEx                              RT_MANGLER(RTAsn1Time_InitEx)
     3385# define RTAsn1Time_InitWithTime                        RT_MANGLER(RTAsn1Time_InitWithTime)
     3386# define RTAsn1Time_SetTime                             RT_MANGLER(RTAsn1Time_SetTime)
     3387# define RTAsn1Time_SetTimeSpec                         RT_MANGLER(RTAsn1Time_SetTimeSpec)
    33853388# define RTAsn1UtcTime_CheckSanity                      RT_MANGLER(RTAsn1UtcTime_CheckSanity)
    33863389# define RTAsn1UtcTime_Clone                            RT_MANGLER(RTAsn1UtcTime_Clone)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette