Changeset 9459 in vbox
- Timestamp:
- Jun 6, 2008 9:47:38 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31714
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/include/VBox/shflsvc.h ¶
r9146 r9459 930 930 /** 931 931 * SHFL_FN_ADD_MAPPING 932 */ 933 934 /** Parameters structure. */ 935 typedef struct _VBoxSFAddMapping 936 { 937 VBoxGuestHGCMCallInfo callInfo; 938 939 /** pointer, in: Folder name 940 * Points to SHFLSTRING buffer. 941 */ 942 HGCMFunctionParameter folder; 943 944 /** pointer, in: Mapping name 945 * Points to SHFLSTRING buffer. 946 */ 947 HGCMFunctionParameter mapping; 948 949 /** bool, in: Writable 950 * True (default) if the folder is writable. 951 */ 952 HGCMFunctionParameter writable; 953 954 } VBoxSFAddMapping; 932 * Host call, no guest structure is used. 933 */ 955 934 956 935 #define SHFL_CPARMS_ADD_MAPPING (3) 957 936 958 959 937 /** 960 938 * SHFL_FN_REMOVE_MAPPING 961 */ 962 963 /** Parameters structure. */ 964 typedef struct _VBoxSFRemoveMapping 965 { 966 VBoxGuestHGCMCallInfo callInfo; 967 968 /** pointer, in: Guest name 969 * Points to SHFLSTRING buffer. 970 */ 971 HGCMFunctionParameter path; 972 973 } VBoxSFRemoveMapping; 939 * Host call, no guest structure is used. 940 */ 974 941 975 942 #define SHFL_CPARMS_REMOVE_MAPPING (1) … … 978 945 /** 979 946 * SHFL_FN_SET_STATUS_LED 980 */ 981 982 /** Parameters structure. */ 983 typedef struct _VBoxSFSetStatusLed 984 { 985 VBoxGuestHGCMCallInfo callInfo; 986 987 /** pointer, in: LED address 988 * Points to PPDMLED buffer. 989 */ 990 HGCMFunctionParameter led; 991 992 } VBoxSFSetStatusLed; 947 * Host call, no guest structure is used. 948 */ 993 949 994 950 #define SHFL_CPARMS_SET_STATUS_LED (1) -
TabularUnified trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflSizes.cpp ¶
r8155 r9459 65 65 STRUCT(SHFLDIRINFO, 128); 66 66 STRUCT(SHFLVOLINFO, 40); 67 #ifdef VBOX_WITH_64_BITS_GUESTS 68 /* The size of the guest structures depends on the current architecture bit count (ARCH_BITS) 69 * because the HGCMFunctionParameter structure differs in 32 and 64 bit guests. 70 * The host VMMDev device takes care about this. 71 * 72 * Therefore this testcase verifies whether structure sizes are correct for the currebt ARCH_BITS. 73 */ 74 # if ARCH_BITS == 64 75 STRUCT(VBoxSFQueryMappings, 64); 76 STRUCT(VBoxSFQueryMapName, 48); 77 STRUCT(VBoxSFMapFolder_Old, 64); 78 STRUCT(VBoxSFMapFolder, 80); 79 STRUCT(VBoxSFUnmapFolder, 32); 80 STRUCT(VBoxSFCreate, 64); 81 STRUCT(VBoxSFClose, 40); 82 STRUCT(VBoxSFRead, 96); 83 STRUCT(VBoxSFWrite, 96); 84 STRUCT(VBoxSFLock, 96); 85 STRUCT(VBoxSFFlush, 48); 86 STRUCT(VBoxSFList, 144); 87 STRUCT(VBoxSFInformation, 96); 88 STRUCT(VBoxSFRemove, 64); 89 STRUCT(VBoxSFRename, 80); 90 # elif ARCH_BITS == 32 67 91 STRUCT(VBoxSFQueryMappings, 52); 68 92 STRUCT(VBoxSFQueryMapName, 40); /* this was changed from 52 in 21976 after VBox-1.4. */ … … 80 104 STRUCT(VBoxSFRemove, 52); 81 105 STRUCT(VBoxSFRename, 64); 82 83 /* The following requests are only available from the host. */ 84 STRUCT(VBoxSFAddMapping, 52); 85 STRUCT(VBoxSFRemoveMapping, 28); 86 STRUCT(VBoxSFSetStatusLed, 28); 106 # else 107 # error "Unsupported ARCH_BITS" 108 # endif /* ARCH_BITS */ 109 #else 110 STRUCT(VBoxSFQueryMappings, 52); 111 STRUCT(VBoxSFQueryMapName, 40); /* this was changed from 52 in 21976 after VBox-1.4. */ 112 STRUCT(VBoxSFMapFolder_Old, 52); 113 STRUCT(VBoxSFMapFolder, 64); 114 STRUCT(VBoxSFUnmapFolder, 28); 115 STRUCT(VBoxSFCreate, 52); 116 STRUCT(VBoxSFClose, 40); 117 STRUCT(VBoxSFRead, 76); 118 STRUCT(VBoxSFWrite, 76); 119 STRUCT(VBoxSFLock, 76); 120 STRUCT(VBoxSFFlush, 40); 121 STRUCT(VBoxSFList, 112); 122 STRUCT(VBoxSFInformation, 76); 123 STRUCT(VBoxSFRemove, 52); 124 STRUCT(VBoxSFRename, 64); 125 #endif /* VBOX_WITH_64_BITS_GUESTS */ 87 126 88 127 /*
Note:
See TracChangeset
for help on using the changeset viewer.