VirtualBox

Ignore:
Timestamp:
Aug 9, 2024 9:38:27 AM (4 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Cleanup: Made a lot more functions static where possible and renamed the non-static ones to indicate its usage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-internal.h

    r103630 r105635  
    7373typedef SHCLCLIENTMSG *PSHCLCLIENTMSG;
    7474
     75#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    7576typedef struct SHCLCLIENTTRANSFERSTATE
    7677{
     
    7879    SHCLTRANSFERDIR enmTransferDir;
    7980} SHCLCLIENTTRANSFERSTATE, *PSHCLCLIENTTRANSFERSTATE;
     81#endif
    8082
    8183/**
     
    169171    /** POD (plain old data) state. */
    170172    SHCLCLIENTPODSTATE      POD;
     173#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    171174    /** The client's transfers state. */
    172175    SHCLCLIENTTRANSFERSTATE Transfers;
     176#endif
    173177} SHCLCLIENTSTATE, *PSHCLCLIENTSTATE;
    174178
     
    288292extern SHCLEXTSTATE g_ExtState;
    289293
    290 void shClSvcMsgQueueReset(PSHCLCLIENT pClient);
    291 PSHCLCLIENTMSG shClSvcMsgAlloc(PSHCLCLIENT pClient, uint32_t uMsg, uint32_t cParms);
    292 void shClSvcMsgFree(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg);
    293 void shClSvcMsgAdd(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg, bool fAppend);
    294 int shClSvcMsgAddAndWakeupClient(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg);
    295 
    296 int shClSvcClientInit(PSHCLCLIENT pClient, uint32_t uClientID);
    297 void shClSvcClientDestroy(PSHCLCLIENT pClient);
    298 void shClSvcClientLock(PSHCLCLIENT pClient);
    299 void shClSvcClientUnlock(PSHCLCLIENT pClient);
    300 void shClSvcClientReset(PSHCLCLIENT pClient);
    301 
    302 int shClSvcClientStateInit(PSHCLCLIENTSTATE pClientState, uint32_t uClientID);
    303 int shClSvcClientStateDestroy(PSHCLCLIENTSTATE pClientState);
    304 void shclSvcClientStateReset(PSHCLCLIENTSTATE pClientState);
    305 
    306 int shClSvcClientWakeup(PSHCLCLIENT pClient);
     294/** @name Service client functions.
     295 * @{
     296 */
     297PSHCLCLIENTMSG ShClSvcClientMsgAlloc(PSHCLCLIENT pClient, uint32_t uMsg, uint32_t cParms);
     298void ShClSvcClientMsgFree(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg);
     299void ShClSvcClientMsgAdd(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg, bool fAppend);
     300
     301int ShClSvcClientInit(PSHCLCLIENT pClient, uint32_t uClientID); /* For testcases. */
     302
     303void ShClSvcClientLock(PSHCLCLIENT pClient);
     304void ShClSvcClientUnlock(PSHCLCLIENT pClient);
     305
     306int ShClSvcClientWakeup(PSHCLCLIENT pClient);
     307/** @} */
    307308
    308309/** @name Service functions, accessible by the backends.
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