VirtualBox

儲存庫 vbox 的更動 18157


忽略:
時間撮記:
2009-3-23 下午05:34:49 (16 年 以前)
作者:
vboxsync
訊息:

VBoxGuestR3Lib.cpp: static definition, moved it above the usage to avoid prototyping it. spaces.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp

    r18030 r18157  
    5454# define XF86_O_RDWR  0x0002
    5555typedef void *pointer;
    56 extern "C" int xf86open(const char*, int,...);
     56extern "C" int xf86open(const char *, int, ...);
    5757extern "C" int xf86close(int);
    5858extern "C" int xf86ioctl(int, unsigned long, pointer);
    5959#endif
     60
    6061
    6162/*******************************************************************************
     
    7879
    7980
    80 static int vbglR3Init(const char *pszDeviceName);
    81 
    82 /**
    83  * Open the VBox R3 Guest Library.  This should be called by system daemons
    84  * 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 user
    93  * session processes.
    94  */
    95 VBGLR3DECL(int) VbglR3InitUser(void)
    96 {
    97     return vbglR3Init(VBOXGUEST_USER_DEVICE_NAME);
    98 }
    9981
    10082/**
    10183 * Implementation of VbglR3Init and VbglR3InitUser
    10284 */
    103 int vbglR3Init(const char *pszDeviceName)
     85static int vbglR3Init(const char *pszDeviceName)
    10486{
    10587    uint32_t cInits = ASMAtomicIncU32(&g_cInits);
     
    211193# endif
    212194    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];
    215196    for (unsigned iUnit = 0; iUnit < 1024; iUnit++)
    216197    {
     
    267248
    268249    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 */
     257VBGLR3DECL(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 */
     267VBGLR3DECL(int) VbglR3InitUser(void)
     268{
     269    return vbglR3Init(VBOXGUEST_USER_DEVICE_NAME);
    269270}
    270271
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette