Changeset 94369 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Mar 25, 2022 7:42:32 AM (3 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CFGM.cpp
r93470 r94369 3024 3024 AssertCompileSize(signed int, 4); 3025 3025 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 else3047 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 else3072 rc = VERR_CFGM_INTEGER_TOO_BIG;3073 }3074 if (RT_FAILURE(rc))3075 *ppv = pvDef;3076 return rc;3077 3026 } 3078 3027 -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r93901 r94369 4981 4981 CFGMR3QuerySInt, 4982 4982 CFGMR3QuerySIntDef, 4983 CFGMR3QueryPtr,4984 CFGMR3QueryPtrDef,4985 4983 CFGMR3QueryGCPtr, 4986 4984 CFGMR3QueryGCPtrDef, … … 5380 5378 CFGMR3QuerySInt, 5381 5379 CFGMR3QuerySIntDef, 5382 CFGMR3QueryPtr,5383 CFGMR3QueryPtrDef,5384 5380 CFGMR3QueryGCPtr, 5385 5381 CFGMR3QueryGCPtrDef, … … 6099 6095 CFGMR3QuerySInt, 6100 6096 CFGMR3QuerySIntDef, 6101 CFGMR3QueryPtr,6102 CFGMR3QueryPtrDef,6103 6097 CFGMR3QueryGCPtr, 6104 6098 CFGMR3QueryGCPtrDef, -
trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp
r93912 r94369 2236 2236 CFGMR3QuerySInt, 2237 2237 CFGMR3QuerySIntDef, 2238 CFGMR3QueryPtr,2239 CFGMR3QueryPtrDef,2240 2238 CFGMR3QueryGCPtr, 2241 2239 CFGMR3QueryGCPtrDef, -
trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp
r94342 r94369 2335 2335 CFGMR3QuerySInt, 2336 2336 CFGMR3QuerySIntDef, 2337 CFGMR3QueryPtr,2338 CFGMR3QueryPtrDef,2339 2337 CFGMR3QueryGCPtr, 2340 2338 CFGMR3QueryGCPtrDef, -
trunk/src/VBox/VMM/VMMR3/VMMR3.def
r93115 r94369 49 49 CFGMR3QueryGCPtrUDef 50 50 CFGMR3QueryGCPtrDef 51 CFGMR3QueryPtrDef52 51 CFGMR3QueryBoolDef 53 52 CFGMR3QueryS8Def … … 66 65 CFGMR3QueryGCPtrU 67 66 CFGMR3QueryGCPtr 68 CFGMR3QueryPtr69 67 CFGMR3QueryBool 70 68 CFGMR3QueryS8
Note:
See TracChangeset
for help on using the changeset viewer.