VirtualBox

Changeset 55587 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 1, 2015 7:24:03 PM (10 years ago)
Author:
vboxsync
Message:

VBox/hgcmsvc.h: Added a setCppString(const RTCString &) method to VBOXHGCMSVCPARM as it's real useful in the Main area of the code. Note, it's only available if include/iprt/cpp/ministring.h is included before hgcmsvc.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/hgcmsvc.h

    r55526 r55587  
    248248        u.pointer.size = (uint32_t)strlen(psz) + 1;
    249249    }
     250
     251#ifdef ___iprt_cpp_ministring_h
     252    /** Set a const string value to an HGCM parameter structure */
     253    void setCppString(const RTCString &rString)
     254    {
     255        type = VBOX_HGCM_SVC_PARM_PTR;
     256        u.pointer.addr = (void *)rString.c_str();
     257        u.pointer.size = (uint32_t)rString.length() + 1;
     258    }
     259#endif
    250260
    251261#ifdef VBOX_TEST_HGCM_PARMS
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