VirtualBox

Changeset 81154 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Oct 8, 2019 2:24:01 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133788
Message:

Shared Clipboard/VbglR3: (Lots of) documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp

    r81059 r81154  
    165165
    166166
     167/**
     168 * Receives reported formats from the host.
     169 *
     170 * @returns VBox status code.
     171 * @param   pCtx                Shared Clipboard command context to use for the connection.
     172 * @param   pFormats            Where to store the received formats from the host.
     173 */
    167174VBGLR3DECL(int) VbglR3ClipboardFormatsReportRecv(PVBGLR3SHCLCMDCTX pCtx, PSHCLFORMATDATA pFormats)
    168175{
     
    198205
    199206
     207/**
     208 * Receives a host request to read clipboard data request from the guest.
     209 *
     210 * @returns VBox status code.
     211 * @param   pCtx                Shared Clipboard command context to use for the connection.
     212 * @param   pDataReq            Where to store the read data request from the host.
     213 */
    200214VBGLR3DECL(int) VbglR3ClipboardReadDataRecv(PVBGLR3SHCLCMDCTX pCtx, PSHCLDATAREQ pDataReq)
    201215{
     
    375389
    376390#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
     391/**
     392 * Reads a root list header from the host.
     393 *
     394 * @returns VBox status code.
     395 * @param   pCtx                Shared Clipboard command context to use for the connection.
     396 * @param   pRootListHdr        Where to store the received root list header.
     397 */
    377398static int vbglR3ClipboardRootListHdrRead(PVBGLR3SHCLCMDCTX pCtx, PSHCLROOTLISTHDR pRootListHdr)
    378399{
     
    403424}
    404425
     426/**
     427 * Reads a root list entry from the host.
     428 *
     429 * @returns VBox status code.
     430 * @param   pCtx                Shared Clipboard command context to use for the connection.
     431 * @param   uIndex              Index of root list entry to read.
     432 * @param   pRootListEntry      Where to store the root list entry read from the host.
     433 */
    405434static int vbglR3ClipboardRootListEntryRead(PVBGLR3SHCLCMDCTX pCtx, uint32_t uIndex, PSHCLROOTLISTENTRY pRootListEntry)
    406435{
     
    439468}
    440469
     470/**
     471 * Reads the root list from the host.
     472 *
     473 * @returns VBox status code.
     474 * @param   pCtx                Shared Clipboard command context to use for the connection.
     475 * @param   ppRootList          Where to store the (allocated) root list. Must be free'd by the caller with
     476 *                              SharedClipboardTransferRootListFree().
     477 */
    441478VBGLR3DECL(int) VbglR3ClipboardRootListRead(PVBGLR3SHCLCMDCTX pCtx, PSHCLROOTLIST *ppRootList)
    442479{
     
    488525}
    489526
     527/**
     528 * Receives a transfer status from the host.
     529 *
     530 * @returns VBox status code.
     531 * @param   pCtx                Shared Clipboard command context to use for the connection.
     532 * @param   pEnmDir             Where to store the transfer direction for the reported transfer.
     533 * @param   pReport             Where to store the transfer (status) report.
     534 */
    490535VBGLR3DECL(int) VbglR3ClipboarTransferStatusRecv(PVBGLR3SHCLCMDCTX pCtx,
    491536                                                 PSHCLTRANSFERDIR pEnmDir, PSHCLTRANSFERREPORT pReport)
     
    525570}
    526571
     572/**
     573 * Replies to a transfer report from the host.
     574 *
     575 * @returns VBox status code.
     576 * @param   pCtx                Shared Clipboard command context to use for the connection.
     577 * @param   pTransfer           Transfer of report to reply to.
     578 * @param   uStatus             Tranfer status to reply.
     579 * @param   rcTransfer          Result code (rc) to reply.
     580 */
    527581VBGLR3DECL(int) VbglR3ClipboardTransferStatusReply(PVBGLR3SHCLCMDCTX pCtx, PSHCLTRANSFER pTransfer,
    528582                                                   SHCLTRANSFERSTATUS uStatus, int rcTransfer)
     
    555609}
    556610
     611/**
     612 * Receives a host request to read a root list header from the guest.
     613 *
     614 * @returns VBox status code.
     615 * @param   pCtx                Shared Clipboard command context to use for the connection.
     616 * @param   pfRoots             Where to store the root list header flags to use, requested by the host.
     617 */
    557618VBGLR3DECL(int) VbglR3ClipboardRootListHdrReadReq(PVBGLR3SHCLCMDCTX pCtx, uint32_t *pfRoots)
    558619{
     
    581642}
    582643
     644/**
     645 * Replies to a root list header request.
     646 *
     647 * @returns VBox status code.
     648 * @param   pCtx                Shared Clipboard command context to use for the connection.
     649 * @param   pRootListHdr        Root lsit header to reply to the host.
     650 */
    583651VBGLR3DECL(int) VbglR3ClipboardRootListHdrReadReply(PVBGLR3SHCLCMDCTX pCtx, PSHCLROOTLISTHDR pRootListHdr)
    584652{
     
    603671}
    604672
     673/**
     674 * Receives a host request to read a root list entry from the guest.
     675 *
     676 * @returns VBox status code.
     677 * @param   pCtx                Shared Clipboard command context to use for the connection.
     678 * @param   puIndex             Where to return the index of the root list entry the host wants to read.
     679 * @param   pfInfo              Where to return the read flags the host wants to use.
     680 */
    605681VBGLR3DECL(int) VbglR3ClipboardRootListEntryReadReq(PVBGLR3SHCLCMDCTX pCtx, uint32_t *puIndex, uint32_t *pfInfo)
    606682{
     
    633709}
    634710
     711/**
     712 * Replies to a root list entry read request from the host.
     713 *
     714 * @returns VBox status code.
     715 * @param   pCtx                Shared Clipboard command context to use for the connection.
     716 * @param   uIndex              Index of root list entry to reply.
     717 * @param   pEntry              Actual root list entry to reply.
     718 */
    635719VBGLR3DECL(int) VbglR3ClipboardRootListEntryReadReply(PVBGLR3SHCLCMDCTX pCtx, uint32_t uIndex, PSHCLROOTLISTENTRY pEntry)
    636720{
     
    658742}
    659743
     744/**
     745 * Sends a request to open a list handle to the host.
     746 *
     747 * @returns VBox status code.
     748 * @param   pCtx                Shared Clipboard command context to use for the connection.
     749 * @param   pOpenParms          List open parameters to use for the open request.
     750 * @param   phList              Where to return the list handle received from the host.
     751 */
    660752VBGLR3DECL(int) VbglR3ClipboardListOpenSend(PVBGLR3SHCLCMDCTX pCtx, PSHCLLISTOPENPARMS pOpenParms,
    661753                                            PSHCLLISTHANDLE phList)
     
    688780}
    689781
     782/**
     783 * Receives a host request to open a list handle on the guest.
     784 *
     785 * @returns VBox status code.
     786 * @param   pCtx                Shared Clipboard command context to use for the connection.
     787 * @param   pOpenParms          Where to store the open parameters the host wants to use for opening the list handle.
     788 */
    690789VBGLR3DECL(int) VbglR3ClipboardListOpenRecv(PVBGLR3SHCLCMDCTX pCtx, PSHCLLISTOPENPARMS pOpenParms)
    691790{
     
    723822}
    724823
     824/**
     825 * Replies to a list open request from the host.
     826 *
     827 * @returns VBox status code.
     828 * @param   pCtx                Shared Clipboard command context to use for the connection.
     829 * @param   rcReply             Return code to reply to the host.
     830 * @param   hList               List handle of (guest) list to reply to the host.
     831 */
    725832VBGLR3DECL(int) VbglR3ClipboardListOpenReply(PVBGLR3SHCLCMDCTX pCtx, int rcReply, SHCLLISTHANDLE hList)
    726833{
     
    747854}
    748855
     856/**
     857 * Receives a host request to close a list handle on the guest.
     858 *
     859 * @returns VBox status code.
     860 * @param   pCtx                Shared Clipboard command context to use for the connection.
     861 * @param   phList              Where to store the list handle to close, received from the host.
     862 */
    749863VBGLR3DECL(int) VbglR3ClipboardListCloseRecv(PVBGLR3SHCLCMDCTX pCtx, PSHCLLISTHANDLE phList)
    750864{
     
    773887}
    774888
     889/**
     890 * Replies to a list handle close request from the host.
     891 *
     892 * @returns VBox status code.
     893 * @param   pCtx                Shared Clipboard command context to use for the connection.
     894 * @param   rcReply             Return code to reply to the host.
     895 * @param   hList               List handle the send the close reply for.
     896 */
    775897VBGLR3DECL(int) VbglR3ClipboardListCloseReply(PVBGLR3SHCLCMDCTX pCtx, int rcReply, SHCLLISTHANDLE hList)
    776898{
     
    797919}
    798920
     921/**
     922 * Sends a request to close a list handle to the host.
     923 *
     924 * @returns VBox status code.
     925 * @param   pCtx                Shared Clipboard command context to use for the connection.
     926 * @param   hList               List handle to request for closing on the host.
     927 */
    799928VBGLR3DECL(int) VbglR3ClipboardListCloseSend(PVBGLR3SHCLCMDCTX pCtx, SHCLLISTHANDLE hList)
    800929{
     
    816945}
    817946
    818 
     947/**
     948 * Sends a request to read a list header to the host.
     949 *
     950 * @returns VBox status code.
     951 * @param   pCtx                Shared Clipboard command context to use for the connection.
     952 * @param   hList               List handle to read list header for.
     953 * @param   fFlags              List header read flags to use.
     954 * @param   pListHdr            Where to return the list header received from the host.
     955 */
    819956VBGLR3DECL(int) VbglR3ClipboardListHdrRead(PVBGLR3SHCLCMDCTX pCtx, SHCLLISTHANDLE hList, uint32_t fFlags,
    820957                                           PSHCLLISTHDR pListHdr)
     
    852989}
    853990
     991/**
     992 * Receives a host request to read a list header on the guest.
     993 *
     994 * @returns VBox status code.
     995 * @param   pCtx                Shared Clipboard command context to use for the connection.
     996 * @param   phList              Where to return the list handle to read list header for.
     997 * @param   pfFlags             Where to return the List header read flags to use.
     998 */
    854999VBGLR3DECL(int) VbglR3ClipboardListHdrReadRecvReq(PVBGLR3SHCLCMDCTX pCtx, PSHCLLISTHANDLE phList, uint32_t *pfFlags)
    8551000{
     
    8821027}
    8831028
     1029/**
     1030 * Sends (writes) a list header to the host.
     1031 *
     1032 * @returns VBox status code.
     1033 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1034 * @param   hList               List handle to write list header for.
     1035 * @param   pListHdr            List header to write.
     1036 */
    8841037VBGLR3DECL(int) VbglR3ClipboardListHdrWrite(PVBGLR3SHCLCMDCTX pCtx, SHCLLISTHANDLE hList,
    8851038                                            PSHCLLISTHDR pListHdr)
     
    9091062}
    9101063
     1064/**
     1065 * Sends a reuqest to read a list entry from the host.
     1066 *
     1067 * @returns VBox status code.
     1068 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1069 * @param   hList               List handle to request to read a list entry for.
     1070 * @param   pListEntry          Where to return the list entry read from the host.
     1071 */
    9111072VBGLR3DECL(int) VbglR3ClipboardListEntryRead(PVBGLR3SHCLCMDCTX pCtx, SHCLLISTHANDLE hList,
    9121073                                             PSHCLLISTENTRY pListEntry)
     
    9391100}
    9401101
     1102/**
     1103 * Receives a host request to read a list entry from the guest.
     1104 *
     1105 * @returns VBox status code.
     1106 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1107 * @param   phList              Where to return the list handle to read a list entry for.
     1108 * @param   pfInfo              Where to return the list read flags.
     1109 */
    9411110VBGLR3DECL(int) VbglR3ClipboardListEntryReadRecvReq(PVBGLR3SHCLCMDCTX pCtx, PSHCLLISTHANDLE phList, uint32_t *pfInfo)
    9421111{
     
    9691138}
    9701139
     1140/**
     1141 * Sends (writes) a list entry to the host.
     1142 *
     1143 * @returns VBox status code.
     1144 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1145 * @param   hList               List handle to write a list etnry for.
     1146 * @param   pListEntry          List entry to write.
     1147 */
    9711148VBGLR3DECL(int) VbglR3ClipboardListEntryWrite(PVBGLR3SHCLCMDCTX pCtx, SHCLLISTHANDLE hList,
    9721149                                              PSHCLLISTENTRY pListEntry)
     
    9951172}
    9961173
     1174/**
     1175 * Receives a host request to open an object on the guest.
     1176 *
     1177 * @returns VBox status code.
     1178 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1179 * @param   pCreateParms        Where to store the object open/create parameters received from the host.
     1180 */
    9971181VBGLR3DECL(int) VbglR3ClipboardObjOpenRecv(PVBGLR3SHCLCMDCTX pCtx, PSHCLOBJOPENCREATEPARMS pCreateParms)
    9981182{
     
    10261210}
    10271211
     1212/**
     1213 * Replies a host request to open an object.
     1214 *
     1215 * @returns VBox status code.
     1216 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1217 * @param   rcReply             Return code to reply to the host.
     1218 * @param   hObj                Object handle of opened object to reply to the host.
     1219 */
    10281220VBGLR3DECL(int) VbglR3ClipboardObjOpenReply(PVBGLR3SHCLCMDCTX pCtx, int rcReply, SHCLOBJHANDLE hObj)
    10291221{
     
    10501242}
    10511243
     1244/**
     1245 * Sends an object open request to the host.
     1246 *
     1247 * @returns VBox status code.
     1248 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1249 * @param   pCreateParms        Object open/create parameters to use for opening the object on the host.
     1250 * @param   phObj               Where to return the object handle from the host.
     1251 */
    10521252VBGLR3DECL(int) VbglR3ClipboardObjOpenSend(PVBGLR3SHCLCMDCTX pCtx, PSHCLOBJOPENCREATEPARMS pCreateParms,
    10531253                                           PSHCLOBJHANDLE phObj)
     
    10791279}
    10801280
     1281/**
     1282 * Receives a host request to close an object on the guest.
     1283 *
     1284 * @returns VBox status code.
     1285 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1286 * @param   phObj               Where to return the object handle to close from the host.
     1287 */
    10811288VBGLR3DECL(int) VbglR3ClipboardObjCloseRecv(PVBGLR3SHCLCMDCTX pCtx, PSHCLOBJHANDLE phObj)
    10821289{
     
    11051312}
    11061313
     1314/**
     1315 * Replies to an object open request from the host.
     1316 *
     1317 * @returns VBox status code.
     1318 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1319 * @param   rcReply             Return code to reply to the host.
     1320 * @param   hObj                Object handle to reply to the host.
     1321 */
    11071322VBGLR3DECL(int) VbglR3ClipboardObjCloseReply(PVBGLR3SHCLCMDCTX pCtx, int rcReply, SHCLOBJHANDLE hObj)
    11081323{
     
    11291344}
    11301345
     1346/**
     1347 * Sends a request to close an object to the host.
     1348 *
     1349 * @returns VBox status code.
     1350 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1351 * @param   hObj                Object handle to close on the host.
     1352 */
    11311353VBGLR3DECL(int) VbglR3ClipboardObjCloseSend(PVBGLR3SHCLCMDCTX pCtx, SHCLOBJHANDLE hObj)
    11321354{
     
    11481370}
    11491371
     1372/**
     1373 * Receives a host request to read from an object on the guest.
     1374 *
     1375 * @returns VBox status code.
     1376 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1377 * @param   phObj               Where to return the object handle to read from.
     1378 * @param   pcbToRead           Where to return the amount (in bytes) to read.
     1379 * @param   pfFlags             Where to return the read flags.
     1380 */
    11501381VBGLR3DECL(int) VbglR3ClipboardObjReadRecv(PVBGLR3SHCLCMDCTX pCtx, PSHCLOBJHANDLE phObj, uint32_t *pcbToRead,
    11511382                                           uint32_t *pfFlags)
     
    11831414}
    11841415
     1416/**
     1417 * Sends a request to read from an object to the host.
     1418 *
     1419 * @returns VBox status code.
     1420 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1421 * @param   hObj                Object handle of object to read from.
     1422 * @param   pvData              Buffer where to store the read object data.
     1423 * @param   cbData              Size (in bytes) of buffer.
     1424 * @param   pcbRead             Where to store the amount (in bytes) read from the object.
     1425 */
    11851426VBGLR3DECL(int) VbglR3ClipboardObjReadSend(PVBGLR3SHCLCMDCTX pCtx, SHCLOBJHANDLE hObj,
    11861427                                           void *pvData, uint32_t cbData, uint32_t *pcbRead)
     
    12201461}
    12211462
     1463/**
     1464 * Sends a request to write to an object to the host.
     1465 *
     1466 * @returns VBox status code.
     1467 * @param   pCtx                Shared Clipboard command context to use for the connection.
     1468 * @param   hObj                Object handle of object to write to.
     1469 * @param   pvData              Buffer of data to write to object.
     1470 * @param   cbData              Size (in bytes) of buffer.
     1471 * @param   pcbWritten          Where to store the amount (in bytes) written to the object.
     1472 */
    12221473VBGLR3DECL(int) VbglR3ClipboardObjWriteSend(PVBGLR3SHCLCMDCTX pCtx, SHCLOBJHANDLE hObj,
    12231474                                            void *pvData, uint32_t cbData, uint32_t *pcbWritten)
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