Changeset 75741 in vbox for trunk/include/VBox
- Timestamp:
- Nov 26, 2018 4:10:15 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126942
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/hgcmsvc.h
r75739 r75741 193 193 194 194 /** Extract an uint32_t value from an HGCM parameter structure. */ 195 static inline intHGCMSvcGetU32(struct VBOXHGCMSVCPARM *pParm, uint32_t *pu32)195 DECLINLINE(int) HGCMSvcGetU32(struct VBOXHGCMSVCPARM *pParm, uint32_t *pu32) 196 196 { 197 197 int rc = VINF_SUCCESS; … … 207 207 208 208 /** Extract an uint64_t value from an HGCM parameter structure. */ 209 static inline intHGCMSvcGetU64(struct VBOXHGCMSVCPARM *pParm, uint64_t *pu64)209 DECLINLINE(int) HGCMSvcGetU64(struct VBOXHGCMSVCPARM *pParm, uint64_t *pu64) 210 210 { 211 211 int rc = VINF_SUCCESS; … … 221 221 222 222 /** Extract an pointer value from an HGCM parameter structure. */ 223 static inline intHGCMSvcGetPv(struct VBOXHGCMSVCPARM *pParm, void **ppv,223 DECLINLINE(int) HGCMSvcGetPv(struct VBOXHGCMSVCPARM *pParm, void **ppv, 224 224 uint32_t *pcb) 225 225 { … … 238 238 239 239 /** Extract a constant pointer value from an HGCM parameter structure. */ 240 static inline intHGCMSvcGetPcv(struct VBOXHGCMSVCPARM *pParm, const void **ppv,240 DECLINLINE(int) HGCMSvcGetPcv(struct VBOXHGCMSVCPARM *pParm, const void **ppv, 241 241 uint32_t *pcb) 242 242 { … … 256 256 /** Extract a valid pointer to a non-empty buffer from an HGCM parameter 257 257 * structure. */ 258 static inline intHGCMSvcGetBuf(struct VBOXHGCMSVCPARM *pParm, void **ppv,258 DECLINLINE(int) HGCMSvcGetBuf(struct VBOXHGCMSVCPARM *pParm, void **ppv, 259 259 uint32_t *pcb) 260 260 { … … 276 276 /** Extract a valid pointer to a non-empty constant buffer from an HGCM 277 277 * parameter structure. */ 278 static inline intHGCMSvcGetCBuf(struct VBOXHGCMSVCPARM *pParm,278 DECLINLINE(int) HGCMSvcGetCBuf(struct VBOXHGCMSVCPARM *pParm, 279 279 const void **ppv, uint32_t *pcb) 280 280 { … … 295 295 296 296 /** Extract a string value from an HGCM parameter structure. */ 297 static inline intHGCMSvcGetStr(struct VBOXHGCMSVCPARM *pParm, char **ppch,297 DECLINLINE(int) HGCMSvcGetStr(struct VBOXHGCMSVCPARM *pParm, char **ppch, 298 298 uint32_t *pcb) 299 299 { … … 319 319 320 320 /** Extract a constant string value from an HGCM parameter structure. */ 321 static inline intHGCMSvcGetCStr(struct VBOXHGCMSVCPARM *pParm,321 DECLINLINE(int) HGCMSvcGetCStr(struct VBOXHGCMSVCPARM *pParm, 322 322 const char **ppch, uint32_t *pcb) 323 323 { … … 343 343 344 344 /** Extract a constant string value from an HGCM parameter structure. */ 345 static inline intHGCMSvcGetPsz(struct VBOXHGCMSVCPARM *pParm, const char **ppch,345 DECLINLINE(int) HGCMSvcGetPsz(struct VBOXHGCMSVCPARM *pParm, const char **ppch, 346 346 uint32_t *pcb) 347 347 { … … 367 367 368 368 /** Set a uint32_t value to an HGCM parameter structure */ 369 static inline voidHGCMSvcSetU32(struct VBOXHGCMSVCPARM *pParm, uint32_t u32)369 DECLINLINE(void) HGCMSvcSetU32(struct VBOXHGCMSVCPARM *pParm, uint32_t u32) 370 370 { 371 371 AssertPtr(pParm); … … 375 375 376 376 /** Set a uint64_t value to an HGCM parameter structure */ 377 static inline voidHGCMSvcSetU64(struct VBOXHGCMSVCPARM *pParm, uint64_t u64)377 DECLINLINE(void) HGCMSvcSetU64(struct VBOXHGCMSVCPARM *pParm, uint64_t u64) 378 378 { 379 379 AssertPtr(pParm); … … 383 383 384 384 /** Set a pointer value to an HGCM parameter structure */ 385 static inline voidHGCMSvcSetPv(struct VBOXHGCMSVCPARM *pParm, void *pv,385 DECLINLINE(void) HGCMSvcSetPv(struct VBOXHGCMSVCPARM *pParm, void *pv, 386 386 uint32_t cb) 387 387 { … … 392 392 393 393 /** Set a pointer value to an HGCM parameter structure */ 394 static inline voidHGCMSvcSetStr(struct VBOXHGCMSVCPARM *pParm, const char *psz)394 DECLINLINE(void) HGCMSvcSetStr(struct VBOXHGCMSVCPARM *pParm, const char *psz) 395 395 { 396 396 AssertPtr(pParm); … … 402 402 # ifdef ___iprt_cpp_ministring_h 403 403 /** Set a const string value to an HGCM parameter structure */ 404 static inline voidHGCMSvcSetRTCStr(struct VBOXHGCMSVCPARM *pParm,404 DECLINLINE(void) HGCMSvcSetRTCStr(struct VBOXHGCMSVCPARM *pParm, 405 405 const RTCString &rString) 406 406 {
Note:
See TracChangeset
for help on using the changeset viewer.