VirtualBox

Changeset 103632 in vbox


Ignore:
Timestamp:
Mar 1, 2024 11:13:16 AM (9 months ago)
Author:
vboxsync
Message:

Shared Clipboard: More cleanups (renaming internal HGCM message functions). bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-transfers.cpp

    r103630 r103632  
    6464*********************************************************************************************************************************/
    6565static int shClSvcTransferSendStatusAsync(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer, SHCLTRANSFERSTATUS uStatus, int rcTransfer, PSHCLEVENT *ppEvent);
    66 static int shClSvcTransferSetListOpen(uint32_t cParms, VBOXHGCMSVCPARM aParms[], uint64_t idCtx, PSHCLLISTOPENPARMS pOpenParms);
    67 static int shClSvcTransferSetListClose(uint32_t cParms, VBOXHGCMSVCPARM aParms[], uint64_t idCtx, SHCLLISTHANDLE hList);
     66static int shClSvcTransferMsgSetListOpen(uint32_t cParms, VBOXHGCMSVCPARM aParms[], uint64_t idCtx, PSHCLLISTOPENPARMS pOpenParms);
     67static int shClSvcTransferMsgSetListClose(uint32_t cParms, VBOXHGCMSVCPARM aParms[], uint64_t idCtx, SHCLLISTHANDLE hList);
    6868
    6969
     
    330330            rc = ShClTransferTransformPath(pOpenParms->pszPath, pOpenParms->cbPath);
    331331            if (RT_SUCCESS(rc))
    332                 rc = shClSvcTransferSetListOpen(pMsg->cParms, pMsg->aParms, pMsg->idCtx, pOpenParms);
     332                rc = shClSvcTransferMsgSetListOpen(pMsg->cParms, pMsg->aParms, pMsg->idCtx, pOpenParms);
    333333            if (RT_SUCCESS(rc))
    334334            {
     
    401401                                                   pEvent->idEvent);
    402402
    403             rc = shClSvcTransferSetListClose(pMsg->cParms, pMsg->aParms, pMsg->idCtx, hList);
     403            rc = shClSvcTransferMsgSetListClose(pMsg->cParms, pMsg->aParms, pMsg->idCtx, hList);
    404404            if (RT_SUCCESS(rc))
    405405            {
     
    876876 * @param   pReply              Where to store the reply.
    877877 */
    878 static int shClSvcTransferGetReply(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
    879                                    PSHCLREPLY pReply)
     878static int shClSvcTransferMsgGetReply(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
     879                                      PSHCLREPLY pReply)
    880880{
    881881    int rc;
     
    965965 * @param   pRootLstHdr         Where to store the transfer root list header on success.
    966966 */
    967 static int shClSvcTransferGetRootListHdr(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
    968                                          PSHCLLISTHDR pRootLstHdr)
     967static int shClSvcTransferMsgGetRootListHdr(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
     968                                            PSHCLLISTHDR pRootLstHdr)
    969969{
    970970    int rc;
     
    991991 * @param   pListEntry          Where to store the root list entry.
    992992 */
    993 static int shClSvcTransferGetRootListEntry(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
    994                                            PSHCLLISTENTRY pListEntry)
     993static int shClSvcTransferMsgGetRootListEntry(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
     994                                              PSHCLLISTENTRY pListEntry)
    995995{
    996996    int rc;
     
    10281028 * @param   pOpenParms          Where to store the open parameters of the request.
    10291029 */
    1030 static int shClSvcTransferGetListOpen(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
    1031                                       PSHCLLISTOPENPARMS pOpenParms)
     1030static int shClSvcTransferMsgGetListOpen(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
     1031                                         PSHCLLISTOPENPARMS pOpenParms)
    10321032{
    10331033    int rc;
     
    10591059 * @param   pOpenParms          List open parameters to set.
    10601060 */
    1061 static int shClSvcTransferSetListOpen(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
    1062                                       uint64_t idCtx, PSHCLLISTOPENPARMS pOpenParms)
     1061static int shClSvcTransferMsgSetListOpen(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
     1062                                         uint64_t idCtx, PSHCLLISTOPENPARMS pOpenParms)
    10631063{
    10641064    int rc;
     
    10901090 * @param   hList               Handle of list to close.
    10911091 */
    1092 static int shClSvcTransferSetListClose(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
    1093                                        uint64_t idCtx, SHCLLISTHANDLE hList)
     1092static int shClSvcTransferMsgSetListClose(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
     1093                                          uint64_t idCtx, SHCLLISTHANDLE hList)
    10941094{
    10951095    int rc;
     
    11181118 * @param   pListHdr            Where to store the list header.
    11191119 */
    1120 static int shClSvcTransferGetListHdr(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
    1121                                      PSHCLLISTHANDLE phList, PSHCLLISTHDR pListHdr)
     1120static int shClSvcTransferMsgGetListHdr(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
     1121                                        PSHCLLISTHANDLE phList, PSHCLLISTHDR pListHdr)
    11221122{
    11231123    int rc;
     
    11551155 * @param   pListHdr            Pointer to list header to set.
    11561156 */
    1157 static int shClSvcTransferSetListHdr(uint32_t cParms, VBOXHGCMSVCPARM aParms[], PSHCLLISTHDR pListHdr)
     1157static int shClSvcTransferMsgSetListHdr(uint32_t cParms, VBOXHGCMSVCPARM aParms[], PSHCLLISTHDR pListHdr)
    11581158{
    11591159    int rc;
     
    11861186 * @param   pListEntry          Where to store the list entry.
    11871187 */
    1188 static int shClSvcTransferGetListEntry(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
    1189                                        PSHCLLISTHANDLE phList, PSHCLLISTENTRY pListEntry)
     1188static int shClSvcTransferMsgGetListEntry(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
     1189                                          PSHCLLISTHANDLE phList, PSHCLLISTENTRY pListEntry)
    11901190{
    11911191    int rc;
     
    12301230 * @param   pEntry              Pointer list entry to set.
    12311231 */
    1232 static int shClSvcTransferSetListEntry(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
    1233                                        PSHCLLISTENTRY pEntry)
     1232static int shClSvcTransferMsgSetListEntry(uint32_t cParms, VBOXHGCMSVCPARM aParms[],
     1233                                          PSHCLLISTENTRY pEntry)
    12341234{
    12351235    int rc;
     
    13101310 * @param   aParms              Array function parameters supplied.
    13111311 */
    1312 static int shClSvcTransferHandleReply(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer, uint32_t cParms, VBOXHGCMSVCPARM aParms[])
     1312static int shClSvcTransferMsgHandleReply(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer, uint32_t cParms, VBOXHGCMSVCPARM aParms[])
    13131313{
    13141314    LogFlowFunc(("pTransfer=%p\n", pTransfer));
     
    13201320    if (pReply)
    13211321    {
    1322         rc = shClSvcTransferGetReply(cParms, aParms, pReply);
     1322        rc = shClSvcTransferMsgGetReply(cParms, aParms, pReply);
    13231323        if (RT_SUCCESS(rc))
    13241324        {
     
    16251625        case VBOX_SHCL_GUEST_FN_REPLY:
    16261626        {
    1627             rc = shClSvcTransferHandleReply(pClient, pTransfer, cParms, aParms);
     1627            rc = shClSvcTransferMsgHandleReply(pClient, pTransfer, cParms, aParms);
    16281628            break;
    16291629        }
     
    16541654        {
    16551655            SHCLLISTHDR lstHdr;
    1656             rc = shClSvcTransferGetRootListHdr(cParms, aParms, &lstHdr);
     1656            rc = shClSvcTransferMsgGetRootListHdr(cParms, aParms, &lstHdr);
    16571657            if (RT_SUCCESS(rc))
    16581658            {
     
    17241724        {
    17251725            SHCLLISTENTRY lstEntry;
    1726             rc = shClSvcTransferGetRootListEntry(cParms, aParms, &lstEntry);
     1726            rc = shClSvcTransferMsgGetRootListEntry(cParms, aParms, &lstEntry);
    17271727            if (RT_SUCCESS(rc))
    17281728            {
     
    17541754
    17551755            SHCLLISTOPENPARMS listOpenParms;
    1756             rc = shClSvcTransferGetListOpen(cParms, aParms, &listOpenParms);
     1756            rc = shClSvcTransferMsgGetListOpen(cParms, aParms, &listOpenParms);
    17571757            if (RT_SUCCESS(rc))
    17581758            {
     
    17941794                rc = ShClTransferListGetHeader(pTransfer, hList, &hdrList);
    17951795                if (RT_SUCCESS(rc))
    1796                     rc = shClSvcTransferSetListHdr(cParms, aParms, &hdrList);
     1796                    rc = shClSvcTransferMsgSetListHdr(cParms, aParms, &hdrList);
    17971797            }
    17981798            break;
     
    18061806            {
    18071807                SHCLLISTHANDLE hList;
    1808                 rc = shClSvcTransferGetListHdr(cParms, aParms, &hList, &hdrList);
     1808                rc = shClSvcTransferMsgGetListHdr(cParms, aParms, &hList, &hdrList);
    18091809                if (RT_SUCCESS(rc))
    18101810                {
     
    18461846                    rc = ShClTransferListRead(pTransfer, hList, &entryList);
    18471847                    if (RT_SUCCESS(rc))
    1848                         rc = shClSvcTransferSetListEntry(cParms, aParms, &entryList);
     1848                        rc = shClSvcTransferMsgSetListEntry(cParms, aParms, &entryList);
    18491849                }
    18501850            }
     
    18591859            {
    18601860                SHCLLISTHANDLE hList;
    1861                 rc = shClSvcTransferGetListEntry(cParms, aParms, &hList, &entryList);
     1861                rc = shClSvcTransferMsgGetListEntry(cParms, aParms, &hList, &entryList);
    18621862                if (RT_SUCCESS(rc))
    18631863                {
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