VirtualBox

Changeset 68103 in vbox for trunk


Ignore:
Timestamp:
Jul 25, 2017 9:39:16 AM (7 years ago)
Author:
vboxsync
Message:

R0 guest library: make vbglR0HGCMInit and Terminate externally visible.

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
So that the Linux shared folder code can call vbglR0HGCMInit and Terminate
directly in future without neediing to call the guest library initialisation,
make these symbols externally visible and make the first letter of the names
capital to reflect this.

Signed-off-by: Hans de Goede <hdegoede@…>
Reworked by Oracle.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuestLib.h

    r67314 r68103  
    286286 * @{
    287287 */
     288
     289/**
     290 * Initializes HGCM in the R0 guest library.  Must be called before any HGCM
     291 * connections are made.  Is called by VbglInitClient().
     292 *
     293 * @return VBox status code.
     294 */
     295DECLVBGL(int) VbglR0HGCMInit(void);
     296
     297/**
     298 * Terminates HGCM in the R0 guest library.  Is called by VbglTerminate().
     299 *
     300 * @return VBox status code.
     301 */
     302DECLVBGL(int) VbglR0HGCMTerminate(void);
    288303
    289304/**
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCM.cpp

    r68102 r68103  
    5555 * @return VBox status code.
    5656 */
    57 int vbglR0HGCMInit(void)
     57DECLVBGL(int) VbglR0HGCMInit(void)
    5858{
    5959    AssertReturn(mutexHGCMHandle == NIL_RTSEMFASTMUTEX, VINF_ALREADY_INITIALIZED);
     
    6666 * @return VBox status code.
    6767 */
    68 int vbglR0HGCMTerminate(void)
     68DECLVBGL(int) VbglR0HGCMTerminate(void)
    6969{
    7070    RTSemFastMutexDestroy(mutexHGCMHandle);
  • trunk/src/VBox/Additions/common/VBoxGuestLib/Init.cpp

    r62521 r68103  
    255255
    256256# ifdef VBOX_WITH_HGCM
    257             rc = vbglR0HGCMInit ();
     257            rc = VbglR0HGCMInit ();
    258258# endif /* VBOX_WITH_HGCM */
    259259
     
    278278{
    279279# ifdef VBOX_WITH_HGCM
    280     vbglR0HGCMTerminate ();
     280    VbglR0HGCMTerminate ();
    281281# endif
    282282
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h

    r68102 r68103  
    139139
    140140#ifdef VBOX_WITH_HGCM
    141 # ifndef VBGL_VBOXGUEST
    142 int                         vbglR0HGCMInit(void);
    143 int                         vbglR0HGCMTerminate(void);
    144 # endif
    145141struct VBGLHGCMHANDLEDATA  *vbglHGCMHandleAlloc(void);
    146142void                        vbglHGCMHandleFree(struct VBGLHGCMHANDLEDATA *pHandle);
Note: See TracChangeset for help on using the changeset viewer.

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