VirtualBox

Changeset 104305 in vbox


Ignore:
Timestamp:
Apr 12, 2024 8:29:33 AM (9 months ago)
Author:
vboxsync
Message:

Shared Clipboard/transfers-http: Docs, made some functions inline. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-http.cpp

    r103132 r104305  
    227227 * @param   idTransfer          Transfer ID to return HTTP server transfer for.
    228228 */
    229 static PSHCLHTTPSERVERTRANSFER shClTransferHttpServerGetTransferById(PSHCLHTTPSERVER pSrv, SHCLTRANSFERID idTransfer)
     229DECLINLINE(PSHCLHTTPSERVERTRANSFER) shClTransferHttpServerGetTransferById(PSHCLHTTPSERVER pSrv, SHCLTRANSFERID idTransfer)
    230230{
    231231    PSHCLHTTPSERVERTRANSFER pSrvTx;
     
    527527                                         pEntry->pszName, pEntry->fInfo, pEntry->cbInfo));
    528528                        }
     529                        /* Note: Directories are not supported here (yet) -- would require using WebDAV. */
    529530                    }
    530531
     
    721722
    722723/**
    723  * Translates a Shared Clipboard HTTP server status to a string.
    724  *
    725  * @returns Status as a string.
    726  * @param   uMsg                Status to translate.
    727  */
    728 static const char *shClTransferHttpServerStatusToStr(SHCLHTTPSERVERSTATUS enmStatus)
     724 * Returns a Shared Clipboard HTTP server status as a string.
     725 *
     726 * @returns Status as a string, or "Unknown" if invalid / unknown.
     727 * @param   enmStatus           HTTP server status to return as a string.
     728 */
     729DECLINLINE(const char *) shClTransferHttpServerStatusToStr(SHCLHTTPSERVERSTATUS enmStatus)
    729730{
    730731    switch (enmStatus)
     
    890891 * @returns VBox status code.
    891892 * @param   pSrv                HTTP server instance to unregister transfer from.
    892  * @param   pTransfer           Server transfer to destroy
     893 * @param   pSrvTx              HTTP server transfer to destroy.
    893894 *                              The pointer will be invalid on success.
    894895 *
     
    12491250 *
    12501251 * @returns VBox status code.
    1251  * @param   pHttpSrv            HTTP server that contains the transfer.
     1252 * @param   pSrv                HTTP server that contains the transfer.
    12521253 * @param   pTransfer           Transfer to convert data from.
    12531254 * @param   pszSep              Separator to use for the transfer entries.
     
    13021303 *
    13031304 * @returns VBox status code.
    1304  * @param   pHttpSrv            HTTP server that contains the transfer.
     1305 * @param   pSrv                HTTP server that contains the transfer.
    13051306 * @param   pTransfer           Transfer to convert data from.
    13061307 * @param   ppszData            Where to store the string list on success.
     
    13421343
    13431344/**
    1344  * Waits for a status change.
     1345 * Waits for a server status change.
    13451346 *
    13461347 * @returns VBox status code.
     
    14441445    return rc;
    14451446}
    1446 
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