Changeset 3192 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- Jun 21, 2007 3:44:41 AM (18 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk
r3090 r3192 40 40 VBoxGuestLibBaseLinux 41 41 endif 42 endif 43 ifdef VBOX_WITH_OS2_ADDITIONS 44 LIBRARIES += \ 45 VBoxGuestLibOS2 \ 46 VBoxGuestLibBaseOS2 42 47 endif 43 48 … … 105 110 106 111 112 # 113 # VBoxGuestLibOS2 114 # 115 VBoxGuestLibOS2_TEMPLATE = VBOXR0DRV 116 VBoxGuestLibOS2_SOURCES = $(SOURCES_GUESTLIB) 117 VBoxGuestLibOS2_INCS = $(VBoxGuestLib_INCS) 118 VBoxGuestLibOS2_DEFS = VBOX_HGCM LOG_TO_BACKDOOR IN_GUEST_R0 IN_GUEST 119 120 121 # 122 # VBoxGuestLibBaseOS2 123 # 124 VBoxGuestLibBaseOS2_TEMPLATE = VBOXR0DRV 125 VBoxGuestLibBaseOS2_SOURCES = $(SOURCES_GUESTLIBBASE) 126 VBoxGuestLibBaseOS2_INCS = $(VBoxGuestLib_INCS) 127 VBoxGuestLibBaseOS2_DEFS = VBOX_HGCM VBGL_VBOXGUEST LOG_TO_BACKDOOR IN_GUEST_R0 IN_GUEST 128 129 107 130 include $(PATH_KBUILD)/subfooter.kmk 108 131 -
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp
r3105 r3192 125 125 Log(("vbglDriverOpen VBoxGuest failed with ntstatus=%x\n", rc)); 126 126 return rc; 127 #else 127 128 #elif defined (__LINUX__) 128 129 void *opaque; 129 130 … … 135 136 pDriver->opaque = opaque; 136 137 return VINF_SUCCESS; 138 139 #elif defined (__OS2__) 140 return VERR_NOT_IMPLEMENTED; 141 142 #else 143 # error "Port me" 137 144 #endif 138 145 } … … 179 186 180 187 return NT_SUCCESS(rc)? VINF_SUCCESS: VERR_VBGL_IOCTL_FAILED; 181 #else 188 189 #elif defined (__LINUX__) 182 190 return vboxadd_cmc_call (pDriver->opaque, u32Function, pvData); 191 192 #elif defined (__OS2__) 193 return VERR_NOT_IMPLEMENTED; 194 195 #else 196 # error "Port me" 183 197 #endif 184 198 } … … 189 203 Log(("vbglDriverClose pDeviceObject=%x\n", pDriver->pDeviceObject)); 190 204 ObDereferenceObject (pDriver->pFileObject); 191 #else 205 206 #elif defined (__LINUX__) 192 207 vboxadd_cmc_close (pDriver->opaque); 208 209 #elif defined (__OS2__) 210 211 212 #else 213 # error "Port me" 193 214 #endif 194 215 } -
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.h
r3090 r3192 52 52 PDEVICE_OBJECT pDeviceObject; 53 53 PFILE_OBJECT pFileObject; 54 #el se /* !__WIN__ */54 #elif defined (__LINUX__) 55 55 void *opaque; 56 #endif /* !__WIN__ */ 56 #elif defined (__OS2__) 57 uint32_t placeholder; 58 #else 59 # error "Port me" 60 #endif 57 61 } VBGLDRIVER; 58 62 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.c
r3108 r3192 32 32 #include <iprt/time.h> 33 33 #include <iprt/path.h> 34 #include <iprt/string.h> 34 35 35 36 #define SHFL_CPARMS_SET_UTF8 0 … … 41 42 (a)->cParms = SHFL_CPARMS_##b 42 43 43 #ifdef __linux__ 44 # include <linux/string.h> 44 #ifndef __WIN__ 45 45 # define RtlZeroMemory(a, b) memset (a, 0, b) 46 46 #endif … … 182 182 183 183 DECLVBGL(int) vboxCallMapFolder(PVBSFCLIENT pClient, PSHFLSTRING szFolderName, 184 PVBSFMAP pMap)184 PVBSFMAP pMap) 185 185 { 186 186 int rc = VINF_SUCCESS; … … 237 237 238 238 DECLVBGL(int) vboxCallCreate (PVBSFCLIENT pClient, PVBSFMAP pMap, 239 PSHFLSTRING pParsedPath, PSHFLCREATEPARMS pCreateParms)239 PSHFLSTRING pParsedPath, PSHFLCREATEPARMS pCreateParms) 240 240 { 241 241 /** @todo copy buffers to physical or mapped memory. */ … … 297 297 298 298 DECLVBGL(int) vboxCallRemove (PVBSFCLIENT pClient, PVBSFMAP pMap, 299 PSHFLSTRING pParsedPath, uint32_t flags)299 PSHFLSTRING pParsedPath, uint32_t flags) 300 300 { 301 301 int rc = VINF_SUCCESS; … … 329 329 330 330 DECLVBGL(int) vboxCallRename (PVBSFCLIENT pClient, PVBSFMAP pMap, 331 PSHFLSTRING pSrcPath, PSHFLSTRING pDestPath, uint32_t flags)331 PSHFLSTRING pSrcPath, PSHFLSTRING pDestPath, uint32_t flags) 332 332 { 333 333 int rc = VINF_SUCCESS; … … 364 364 365 365 DECLVBGL(int) vboxCallRead(PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, 366 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer)366 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer) 367 367 { 368 368 int rc = VINF_SUCCESS; … … 399 399 400 400 DECLVBGL(int) vboxCallWrite(PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, 401 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer)401 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer) 402 402 { 403 403 int rc = VINF_SUCCESS; … … 514 514 515 515 DECLVBGL(int) vboxCallFSInfo(PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, 516 uint32_t flags, uint32_t *pcbBuffer, PSHFLDIRINFO pBuffer)516 uint32_t flags, uint32_t *pcbBuffer, PSHFLDIRINFO pBuffer) 517 517 { 518 518 int rc = VINF_SUCCESS; … … 549 549 550 550 DECLVBGL(int) vboxCallLock(PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, 551 uint64_t offset, uint64_t cbSize, uint32_t fLock)551 uint64_t offset, uint64_t cbSize, uint32_t fLock) 552 552 { 553 553 int rc = VINF_SUCCESS; -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.h
r3108 r3192 86 86 #define DRIVE_FLAG_WRITE_PROTECTED (0x4) 87 87 88 #if ndef __linux__88 #ifdef __WIN__ 89 89 /** Device extension structure for each drive letter we created. */ 90 90 typedef struct _VBSFDRIVE … … 112 112 } VBSFDRIVE; 113 113 typedef VBSFDRIVE *PVBSFDRIVE; 114 #endif 114 #endif /* __WIN__ */ 115 115 116 116 /* forward decl */
Note:
See TracChangeset
for help on using the changeset viewer.