VirtualBox

Changeset 103149 in vbox


Ignore:
Timestamp:
Jan 31, 2024 3:41:31 PM (12 months ago)
Author:
vboxsync
Message:

Additions: Some warning fixes about externally visible functions which should be static, bugref:3409

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r102833 r103149  
    17291729 * @param   pvUser              Pointer of type PVGSVCMOUNTPOINTENUMCTX.
    17301730 */
    1731 DECLCALLBACK(int) vgsvcGstCtrlSessionHandleMountPointsEnumCallback(const char *pszMountpoint, void *pvUser)
     1731static DECLCALLBACK(int) vgsvcGstCtrlSessionHandleMountPointsEnumCallback(const char *pszMountpoint, void *pvUser)
    17321732{
    17331733    PVGSVCMOUNTPOINTENUMCTX pCtx = (PVGSVCMOUNTPOINTENUMCTX)pvUser;
     
    37323732 * @param   fFlags                  Closing flags.
    37333733 */
    3734 int VGSvcGstCtrlSessionThreadWait(PVBOXSERVICECTRLSESSIONTHREAD pThread, uint32_t uTimeoutMS, uint32_t fFlags)
     3734static int VGSvcGstCtrlSessionThreadWait(PVBOXSERVICECTRLSESSIONTHREAD pThread, uint32_t uTimeoutMS, uint32_t fFlags)
    37353735{
    37363736    RT_NOREF(fFlags);
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceStats.cpp

    r98103 r103149  
    633633 * @interface_method_impl{VBOXSERVICE,pfnWorker}
    634634 */
    635 DECLCALLBACK(int) vgsvcVMStatsWorker(bool volatile *pfShutdown)
     635static DECLCALLBACK(int) vgsvcVMStatsWorker(bool volatile *pfShutdown)
    636636{
    637637    int rc = VINF_SUCCESS;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp

    r99739 r103149  
    538538 * @interface_method_impl{VBOXSERVICE,pfnWorker}
    539539 */
    540 DECLCALLBACK(int) vgsvcTimeSyncWorker(bool volatile *pfShutdown)
     540static DECLCALLBACK(int) vgsvcTimeSyncWorker(bool volatile *pfShutdown)
    541541{
    542542    RTTIME Time;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r102753 r103149  
    112112#include "VBoxServiceUtils.h"
    113113#include "VBoxServicePropCache.h"
     114#include "VBoxServiceVMInfo.h"
    114115
    115116
     
    155156/** User idle threshold (in ms). This specifies the minimum time a user is considered
    156157 *  as being idle and then will be reported to the host. Default is 5s. */
    157 uint32_t                        g_uVMInfoUserIdleThresholdMS = 5 * 1000;
     158DECL_HIDDEN_DATA(uint32_t)      g_uVMInfoUserIdleThresholdMS = 5 * 1000;
    158159
    159160
     
    429430 *                                  the property.
    430431 */
    431 int VGSvcUserUpdateF(PVBOXSERVICEVEPROPCACHE pCache, const char *pszUser, const char *pszDomain,
    432                      const char *pszKey, const char *pszValueFormat, ...)
     432DECLHIDDEN(int) VGSvcUserUpdateF(PVBOXSERVICEVEPROPCACHE pCache, const char *pszUser, const char *pszDomain,
     433                                 const char *pszKey, const char *pszValueFormat, ...)
    433434{
    434435    AssertPtrReturn(pCache, VERR_INVALID_POINTER);
     
    494495 * @param   va                      Format arguments.
    495496 */
    496 int VGSvcUserUpdateV(PVBOXSERVICEVEPROPCACHE pCache, const char *pszUser, const char *pszDomain,
    497                      const char *pszKey, const char *pszFormat, va_list va)
     497DECLHIDDEN(int) VGSvcUserUpdateV(PVBOXSERVICEVEPROPCACHE pCache, const char *pszUser, const char *pszDomain,
     498                                 const char *pszKey, const char *pszFormat, va_list va)
    498499{
    499500    char *psz = NULL;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.h

    r102754 r103149  
    3333
    3434
    35 extern int VGSvcUserUpdateF(PVBOXSERVICEVEPROPCACHE pCache, const char *pszUser, const char *pszDomain,
    36                             const char *pszKey, const char *pszValueFormat, ...);
    37 extern int VGSvcUserUpdateV(PVBOXSERVICEVEPROPCACHE pCache, const char *pszUser, const char *pszDomain,
    38                             const char *pszKey, const char *pszFormat, va_list va);
     35DECLHIDDEN(int) VGSvcUserUpdateF(PVBOXSERVICEVEPROPCACHE pCache, const char *pszUser, const char *pszDomain,
     36                                 const char *pszKey, const char *pszValueFormat, ...);
     37DECLHIDDEN(int) VGSvcUserUpdateV(PVBOXSERVICEVEPROPCACHE pCache, const char *pszUser, const char *pszDomain,
     38                                 const char *pszKey, const char *pszFormat, va_list va);
    3939
    40 extern uint32_t g_uVMInfoUserIdleThresholdMS;
     40extern DECL_HIDDEN_DATA(uint32_t) g_uVMInfoUserIdleThresholdMS;
    4141
    4242#endif /* !GA_INCLUDED_SRC_common_VBoxService_VBoxServiceVMInfo_h */
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