VirtualBox

Changeset 87067 in vbox


Ignore:
Timestamp:
Dec 9, 2020 2:12:21 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141834
Message:

Shared Clipboard/Transfers: Added ShClTransferHttpServerIsRunning(). bugref:9874

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-transfers.h

    r87058 r87067  
    920920char *ShClTransferHttpServerGetAddressA(PSHCLHTTPSERVER pSrv);
    921921char *ShClTransferHttpServerGetUrlA(PSHCLHTTPSERVER pSrv, SHCLTRANSFERID idTransfer);
     922bool ShClTransferHttpServerIsRunning(PSHCLHTTPSERVER pSrv);
    922923#endif
    923924
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-http.cpp

    r87066 r87067  
    550550}
    551551
     552/**
     553 * Returns whether a given HTTP server instance is running or not.
     554 *
     555 * @returns \c true if running, or \c false if not.
     556 * @param   pSrv                HTTP server instance to check running state for.
     557 */
     558bool ShClTransferHttpServerIsRunning(PSHCLHTTPSERVER pSrv)
     559{
     560    AssertPtrReturn(pSrv, false);
     561
     562    return (pSrv->hHTTPServer != NIL_RTHTTPSERVER); /* Seems enough for now. */
     563}
     564
Note: See TracChangeset for help on using the changeset viewer.

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