Changeset 66498 in vbox for trunk/src/VBox/Storage
- Timestamp:
- Apr 10, 2017 1:53:08 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114496
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VDBackendsInline.h
r66493 r66498 33 33 */ 34 34 #define VD_BACKEND_CALLBACK_GET_COMMENT_DEF_NOT_SUPPORTED(a_szStubName) \ 35 static DECLCALLBACK(int) a_szStubName(void *p vBackend, char *pszComment, size_t cbComment) \35 static DECLCALLBACK(int) a_szStubName(void *pBackendData, char *pszComment, size_t cbComment) \ 36 36 { \ 37 37 RT_NOREF2(pszComment, cbComment); \ 38 LogFlowFunc(("p vBackend=%#p pszComment=%#p cbComment=%zu\n", pvBackend, pszComment, cbComment)); \39 AssertPtrReturn(p vBackend, VERR_VD_NOT_OPENED); \38 LogFlowFunc(("pBackendData=%#p pszComment=%#p cbComment=%zu\n", pBackendData, pszComment, cbComment)); \ 39 AssertPtrReturn(pBackendData, VERR_VD_NOT_OPENED); \ 40 40 LogFlowFunc(("returns %Rrc comment='%s'\n", VERR_NOT_SUPPORTED, pszComment)); \ 41 41 return VERR_NOT_SUPPORTED; \ … … 52 52 */ 53 53 #define VD_BACKEND_CALLBACK_SET_COMMENT_DEF_NOT_SUPPORTED(a_szStubName, a_ImageStateType) \ 54 static DECLCALLBACK(int) a_szStubName(void *p vBackend, const char *pszComment) \54 static DECLCALLBACK(int) a_szStubName(void *pBackendData, const char *pszComment) \ 55 55 { \ 56 56 RT_NOREF1(pszComment); \ 57 LogFlowFunc(("p vBackend=%#p pszComment=\"%s\"\n", pvBackend, pszComment)); \58 a_ImageStateType pThis = (a_ImageStateType)p vBackend; \57 LogFlowFunc(("pBackendData=%#p pszComment=\"%s\"\n", pBackendData, pszComment)); \ 58 a_ImageStateType pThis = (a_ImageStateType)pBackendData; \ 59 59 AssertPtrReturn(pThis, VERR_VD_NOT_OPENED); \ 60 60 int rc = VERR_NOT_SUPPORTED; \ … … 74 74 */ 75 75 #define VD_BACKEND_CALLBACK_GET_UUID_DEF_NOT_SUPPORTED(a_szStubName) \ 76 static DECLCALLBACK(int) a_szStubName(void *p vBackend, PRTUUID pUuid) \76 static DECLCALLBACK(int) a_szStubName(void *pBackendData, PRTUUID pUuid) \ 77 77 { \ 78 78 RT_NOREF1(pUuid); \ 79 LogFlowFunc(("p vBackend=%#p pUuid=%#p\n", pvBackend, pUuid)); \80 AssertPtrReturn(p vBackend, VERR_VD_NOT_OPENED); \79 LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid)); \ 80 AssertPtrReturn(pBackendData, VERR_VD_NOT_OPENED); \ 81 81 LogFlowFunc(("returns %Rrc (%RTuuid)\n", VERR_NOT_SUPPORTED, pUuid)); \ 82 82 return VERR_NOT_SUPPORTED; \ … … 93 93 */ 94 94 #define VD_BACKEND_CALLBACK_SET_UUID_DEF_NOT_SUPPORTED(a_szStubName, a_ImageStateType) \ 95 static DECLCALLBACK(int) a_szStubName(void *p vBackend, PCRTUUID pUuid) \95 static DECLCALLBACK(int) a_szStubName(void *pBackendData, PCRTUUID pUuid) \ 96 96 { \ 97 97 RT_NOREF1(pUuid); \ 98 LogFlowFunc(("p vBackend=%#p Uuid=%RTuuid\n", pvBackend, pUuid)); \99 a_ImageStateType pThis = (a_ImageStateType)p vBackend; \98 LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid)); \ 99 a_ImageStateType pThis = (a_ImageStateType)pBackendData; \ 100 100 AssertPtrReturn(pThis, VERR_VD_NOT_OPENED); \ 101 101 int rc = VERR_NOT_SUPPORTED; \
Note:
See TracChangeset
for help on using the changeset viewer.