- Timestamp:
- Jun 4, 2024 4:32:14 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibSharedFolders.c
r98103 r104837 51 51 * Defined Constants And Macros * 52 52 *********************************************************************************************************************************/ 53 #define VBOX_INIT_CALL(a, b, c ) \54 LogFunc(("%s, idClient=%d\n", "SHFL_FN_" #b, (c)->idClient)); \55 VBGL_HGCM_HDR_INIT(a, (c)->idClient, SHFL_FN_##b, SHFL_CPARMS_##b); \53 #define VBOX_INIT_CALL(a, b, c, d) \ 54 LogFunc(("%s, idClient=%d\n", #b, (c)->idClient)); \ 55 VBGL_HGCM_HDR_INIT(a, (c)->idClient, b, d); \ 56 56 (a)->fInterruptible = false /* Currently we do like nfs with -o hard (default). */ 57 57 58 #define VBOX_INIT_CALL_EX(a, b, c, a_cbReq ) \59 LogFunc(("%s, idClient=%d\n", "SHFL_FN_" #b, (c)->idClient)); \60 VBGL_HGCM_HDR_INIT_EX(a, (c)->idClient, SHFL_FN_##b, SHFL_CPARMS_##b, a_cbReq); \58 #define VBOX_INIT_CALL_EX(a, b, c, a_cbReq, d) \ 59 LogFunc(("%s, idClient=%d\n", #b, (c)->idClient)); \ 60 VBGL_HGCM_HDR_INIT_EX(a, (c)->idClient, b, d, a_cbReq); \ 61 61 (a)->fInterruptible = false /* Currently we do like nfs with -o hard (default). */ 62 62 … … 107 107 VBGLIOCHGCMCALL callInfo; 108 108 109 VBOX_INIT_CALL(&callInfo, S ET_UTF8, pClient);109 VBOX_INIT_CALL(&callInfo, SHFL_FN_SET_UTF8, pClient, SHFL_CPARMS_SET_UTF8); 110 110 rc = VbglR0HGCMCall(pClient->handle, &callInfo, sizeof(callInfo)); 111 111 /* Log(("VBOXSF: VbglR0SfSetUtf8: VbglR0HGCMCall rc = %#x, result = %#x\n", rc, data.callInfo.Hdr.rc)); */ … … 133 133 VBoxSFQueryMappings data; 134 134 135 VBOX_INIT_CALL(&data.callInfo, QUERY_MAPPINGS, pClient);135 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_QUERY_MAPPINGS, pClient, SHFL_CPARMS_QUERY_MAPPINGS); 136 136 137 137 data.flags.type = VMMDevHGCMParmType_32bit; … … 159 159 VBoxSFQueryMapName data; 160 160 161 VBOX_INIT_CALL(&data.callInfo, QUERY_MAP_NAME, pClient);161 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_QUERY_MAP_NAME, pClient, SHFL_CPARMS_QUERY_MAP_NAME); 162 162 163 163 data.root.type = VMMDevHGCMParmType_32bit; … … 178 178 VBoxSFMapFolder data; 179 179 180 VBOX_INIT_CALL(&data.callInfo, MAP_FOLDER, pClient);180 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_MAP_FOLDER, pClient, SHFL_CPARMS_MAP_FOLDER); 181 181 182 182 data.path.type = VMMDevHGCMParmType_LinAddr; … … 212 212 VBoxSFUnmapFolder data; 213 213 214 VBOX_INIT_CALL(&data.callInfo, UNMAP_FOLDER, pClient);214 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_UNMAP_FOLDER, pClient, SHFL_CPARMS_UNMAP_FOLDER); 215 215 216 216 data.root.type = VMMDevHGCMParmType_32bit; … … 230 230 VBoxSFCreate data; 231 231 232 VBOX_INIT_CALL(&data.callInfo, CREATE, pClient);232 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_CREATE, pClient, SHFL_CPARMS_CREATE); 233 233 234 234 data.root.type = VMMDevHGCMParmType_32bit; … … 253 253 VBoxSFClose data; 254 254 255 VBOX_INIT_CALL(&data.callInfo, CLOSE, pClient);255 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_CLOSE, pClient, SHFL_CPARMS_CLOSE); 256 256 257 257 data.root.type = VMMDevHGCMParmType_32bit; … … 273 273 VBoxSFRemove data; 274 274 275 VBOX_INIT_CALL(&data.callInfo, REMOVE, pClient);275 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_REMOVE, pClient, SHFL_CPARMS_REMOVE); 276 276 277 277 data.root.type = VMMDevHGCMParmType_32bit; … … 295 295 VBoxSFRename data; 296 296 297 VBOX_INIT_CALL(&data.callInfo, RENAME, pClient);297 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_RENAME, pClient, SHFL_CPARMS_RENAME); 298 298 299 299 data.root.type = VMMDevHGCMParmType_32bit; … … 322 322 VBoxSFRead data; 323 323 324 VBOX_INIT_CALL(&data.callInfo, READ, pClient);324 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_READ, pClient, SHFL_CPARMS_READ); 325 325 326 326 data.root.type = VMMDevHGCMParmType_32bit; … … 360 360 return VERR_NO_TMP_MEMORY; 361 361 362 VBOX_INIT_CALL_EX(&pData->callInfo, READ, pClient, cbData);362 VBOX_INIT_CALL_EX(&pData->callInfo, SHFL_FN_READ, pClient, cbData, SHFL_CPARMS_READ); 363 363 364 364 pData->root.type = VMMDevHGCMParmType_32bit; … … 399 399 VBoxSFWrite data; 400 400 401 VBOX_INIT_CALL(&data.callInfo, WRITE, pClient);401 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_WRITE, pClient, SHFL_CPARMS_WRITE); 402 402 403 403 data.root.type = VMMDevHGCMParmType_32bit; … … 438 438 return VERR_NO_TMP_MEMORY; 439 439 440 VBOX_INIT_CALL_EX(&pData->callInfo, WRITE, pClient, cbData);440 VBOX_INIT_CALL_EX(&pData->callInfo, SHFL_FN_WRITE, pClient, cbData, SHFL_CPARMS_WRITE); 441 441 442 442 pData->root.type = VMMDevHGCMParmType_32bit; … … 486 486 return VERR_NO_TMP_MEMORY; 487 487 488 VBOX_INIT_CALL_EX(&pData->callInfo, WRITE, pClient, cbData);488 VBOX_INIT_CALL_EX(&pData->callInfo, SHFL_FN_WRITE, pClient, cbData, SHFL_CPARMS_WRITE); 489 489 490 490 pData->root.type = VMMDevHGCMParmType_32bit; … … 526 526 VBoxSFFlush data; 527 527 528 VBOX_INIT_CALL(&data.callInfo, FLUSH, pClient);528 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_FLUSH, pClient, SHFL_CPARMS_FLUSH); 529 529 530 530 data.root.type = VMMDevHGCMParmType_32bit; … … 553 553 VBoxSFList data; 554 554 555 VBOX_INIT_CALL(&data.callInfo, LIST, pClient);555 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_LIST, pClient, SHFL_CPARMS_LIST); 556 556 557 557 data.root.type = VMMDevHGCMParmType_32bit; … … 592 592 VBoxSFInformation data; 593 593 594 VBOX_INIT_CALL(&data.callInfo, INFORMATION, pClient);594 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_INFORMATION, pClient, SHFL_CPARMS_INFORMATION); 595 595 596 596 data.root.type = VMMDevHGCMParmType_32bit; … … 625 625 VBoxSFLock data; 626 626 627 VBOX_INIT_CALL(&data.callInfo, LOCK, pClient);627 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_LOCK, pClient, SHFL_CPARMS_LOCK); 628 628 629 629 data.root.type = VMMDevHGCMParmType_32bit; … … 652 652 VBoxSFReadLink data; 653 653 654 VBOX_INIT_CALL(&data.callInfo, READLINK, pClient);654 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_READLINK, pClient, SHFL_CPARMS_READLINK); 655 655 656 656 data.root.type = VMMDevHGCMParmType_32bit; … … 676 676 VBoxSFSymlink data; 677 677 678 VBOX_INIT_CALL(&data.callInfo, S YMLINK, pClient);678 VBOX_INIT_CALL(&data.callInfo, SHFL_FN_SYMLINK, pClient, SHFL_CPARMS_SYMLINK); 679 679 680 680 data.root.type = VMMDevHGCMParmType_32bit; … … 703 703 VBGLIOCHGCMCALL callInfo; 704 704 705 VBOX_INIT_CALL(&callInfo, S ET_SYMLINKS, pClient);705 VBOX_INIT_CALL(&callInfo, SHFL_FN_SET_SYMLINKS, pClient, SHFL_CPARMS_SET_SYMLINKS); 706 706 rc = VbglR0HGCMCall(pClient->handle, &callInfo, sizeof(callInfo)); 707 707 /* Log(("VBOXSF: VbglR0SfSetSymlinks: VbglR0HGCMCall rc = %#x, result = %#x\n", rc, data.callInfo.Hdr.rc)); */
Note:
See TracChangeset
for help on using the changeset viewer.