儲存庫 vbox 的更動 18157
- 時間撮記:
- 2009-3-23 下午05:34:49 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp
r18030 r18157 54 54 # define XF86_O_RDWR 0x0002 55 55 typedef void *pointer; 56 extern "C" int xf86open(const char *, int,...);56 extern "C" int xf86open(const char *, int, ...); 57 57 extern "C" int xf86close(int); 58 58 extern "C" int xf86ioctl(int, unsigned long, pointer); 59 59 #endif 60 60 61 61 62 /******************************************************************************* … … 78 79 79 80 80 static int vbglR3Init(const char *pszDeviceName);81 82 /**83 * Open the VBox R3 Guest Library. This should be called by system daemons84 * and processes.85 */86 VBGLR3DECL(int) VbglR3Init(void)87 {88 return vbglR3Init(VBOXGUEST_DEVICE_NAME);89 }90 91 /**92 * Open the VBox R3 Guest Library. Equivalent to VbglR3Init, but for user93 * session processes.94 */95 VBGLR3DECL(int) VbglR3InitUser(void)96 {97 return vbglR3Init(VBOXGUEST_USER_DEVICE_NAME);98 }99 81 100 82 /** 101 83 * Implementation of VbglR3Init and VbglR3InitUser 102 84 */ 103 int vbglR3Init(const char *pszDeviceName)85 static int vbglR3Init(const char *pszDeviceName) 104 86 { 105 87 uint32_t cInits = ASMAtomicIncU32(&g_cInits); … … 211 193 # endif 212 194 int rc; 213 char szDevice[RT_MAX(sizeof(VBOXGUEST_DEVICE_NAME), 214 sizeof(VBOXGUEST_USER_DEVICE_NAME)) + 16]; 195 char szDevice[RT_MAX(sizeof(VBOXGUEST_DEVICE_NAME), sizeof(VBOXGUEST_USER_DEVICE_NAME)) + 16]; 215 196 for (unsigned iUnit = 0; iUnit < 1024; iUnit++) 216 197 { … … 267 248 268 249 return VINF_SUCCESS; 250 } 251 252 253 /** 254 * Open the VBox R3 Guest Library. This should be called by system daemons 255 * and processes. 256 */ 257 VBGLR3DECL(int) VbglR3Init(void) 258 { 259 return vbglR3Init(VBOXGUEST_DEVICE_NAME); 260 } 261 262 263 /** 264 * Open the VBox R3 Guest Library. Equivalent to VbglR3Init, but for user 265 * session processes. 266 */ 267 VBGLR3DECL(int) VbglR3InitUser(void) 268 { 269 return vbglR3Init(VBOXGUEST_USER_DEVICE_NAME); 269 270 } 270 271
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器