VirtualBox

Changeset 94369 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Mar 25, 2022 7:42:32 AM (3 years ago)
Author:
vboxsync
Message:

VMM,CFGM: Drop CFGMR3QueryPtr and CFGMR3QueryPtrDef, bugref:10053

Location:
trunk/src/VBox/VMM/VMMR3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CFGM.cpp

    r93470 r94369  
    30243024    AssertCompileSize(signed int, 4);
    30253025    return CFGMR3QueryS32Def(pNode, pszName, (int32_t *)pi, iDef);
    3026 }
    3027 
    3028 
    3029 /**
    3030  * Query pointer integer value.
    3031  *
    3032  * @returns VBox status code.
    3033  * @param   pNode           Which node to search for pszName in.
    3034  * @param   pszName         Name of an integer value.
    3035  * @param   ppv             Where to store the value.
    3036  */
    3037 VMMR3DECL(int) CFGMR3QueryPtr(PCFGMNODE pNode, const char *pszName, void **ppv)
    3038 {
    3039     uint64_t u64;
    3040     int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
    3041     if (RT_SUCCESS(rc))
    3042     {
    3043         uintptr_t u = (uintptr_t)u64;
    3044         if (u64 == u)
    3045             *ppv = (void *)u;
    3046         else
    3047             rc = VERR_CFGM_INTEGER_TOO_BIG;
    3048     }
    3049     return rc;
    3050 }
    3051 
    3052 
    3053 /**
    3054  * Query pointer integer value with default.
    3055  *
    3056  * @returns VBox status code.
    3057  * @param   pNode           Which node to search for pszName in.
    3058  * @param   pszName         Name of an integer value.
    3059  * @param   ppv             Where to store the value. Set to default on failure.
    3060  * @param   pvDef           The default value.
    3061  */
    3062 VMMR3DECL(int) CFGMR3QueryPtrDef(PCFGMNODE pNode, const char *pszName, void **ppv, void *pvDef)
    3063 {
    3064     uint64_t u64;
    3065     int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, (uintptr_t)pvDef);
    3066     if (RT_SUCCESS(rc))
    3067     {
    3068         uintptr_t u = (uintptr_t)u64;
    3069         if (u64 == u)
    3070             *ppv = (void *)u;
    3071         else
    3072             rc = VERR_CFGM_INTEGER_TOO_BIG;
    3073     }
    3074     if (RT_FAILURE(rc))
    3075         *ppv = pvDef;
    3076     return rc;
    30773026}
    30783027
  • trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp

    r93901 r94369  
    49814981    CFGMR3QuerySInt,
    49824982    CFGMR3QuerySIntDef,
    4983     CFGMR3QueryPtr,
    4984     CFGMR3QueryPtrDef,
    49854983    CFGMR3QueryGCPtr,
    49864984    CFGMR3QueryGCPtrDef,
     
    53805378    CFGMR3QuerySInt,
    53815379    CFGMR3QuerySIntDef,
    5382     CFGMR3QueryPtr,
    5383     CFGMR3QueryPtrDef,
    53845380    CFGMR3QueryGCPtr,
    53855381    CFGMR3QueryGCPtrDef,
     
    60996095    CFGMR3QuerySInt,
    61006096    CFGMR3QuerySIntDef,
    6101     CFGMR3QueryPtr,
    6102     CFGMR3QueryPtrDef,
    61036097    CFGMR3QueryGCPtr,
    61046098    CFGMR3QueryGCPtrDef,
  • trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp

    r93912 r94369  
    22362236    CFGMR3QuerySInt,
    22372237    CFGMR3QuerySIntDef,
    2238     CFGMR3QueryPtr,
    2239     CFGMR3QueryPtrDef,
    22402238    CFGMR3QueryGCPtr,
    22412239    CFGMR3QueryGCPtrDef,
  • trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp

    r94342 r94369  
    23352335    CFGMR3QuerySInt,
    23362336    CFGMR3QuerySIntDef,
    2337     CFGMR3QueryPtr,
    2338     CFGMR3QueryPtrDef,
    23392337    CFGMR3QueryGCPtr,
    23402338    CFGMR3QueryGCPtrDef,
  • trunk/src/VBox/VMM/VMMR3/VMMR3.def

    r93115 r94369  
    4949    CFGMR3QueryGCPtrUDef
    5050    CFGMR3QueryGCPtrDef
    51     CFGMR3QueryPtrDef
    5251    CFGMR3QueryBoolDef
    5352    CFGMR3QueryS8Def
     
    6665    CFGMR3QueryGCPtrU
    6766    CFGMR3QueryGCPtr
    68     CFGMR3QueryPtr
    6967    CFGMR3QueryBool
    7068    CFGMR3QueryS8
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