VirtualBox

Changeset 29866 in vbox for trunk


Ignore:
Timestamp:
May 28, 2010 3:08:36 PM (15 years ago)
Author:
vboxsync
Message:

hgcmsvc.h: added setString().

File:
1 edited

Legend:

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

    r28800 r29866  
    239239        u.pointer.addr = pv;
    240240        u.pointer.size = cb;
     241    }
     242
     243    /** Set a const string value to an HGCM parameter structure */
     244    void setString(const char *psz)
     245    {
     246        type = VBOX_HGCM_SVC_PARM_PTR;
     247        u.pointer.addr = (void *)psz;
     248        u.pointer.size = strlen(psz) + 1;
    241249    }
    242250
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