VirtualBox

Changeset 13780

Show
Ignore:
Timestamp:
11/04/08 10:52:06 (2 months ago)
Author:
vboxsync
Message:

Guest Properties (HostServices? and Main): forgotten header

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/VBox/HostServices/GuestPropertySvc.h

    r13763 r13780  
    148148                break; 
    149149        if (RT_ELEMENTS(flagList) == i) 
    150              rc = VERR_INVALID_PARAMETER; 
     150             rc = VERR_PARSE_ERROR; 
    151151        else 
    152152        { 
     
    157157            if (',' == *pcszNext) 
    158158                ++pcszNext; 
     159            else if (*pcszNext != '\0') 
     160                rc = VERR_PARSE_ERROR; 
    159161            while (' ' == *pcszNext) 
    160162                ++pcszNext; 
     
    189191        for (; i < RT_ELEMENTS(flagList); ++i) 
    190192        { 
    191             if (fFlags & flagList[i]
     193            if (flagList[i] == (fFlags & flagList[i])
    192194            { 
    193195                strcpy(pszNext, flagName(flagList[i])); 
     
    213215enum eHostFn 
    214216{ 
    215     /** Pass the address of the cfgm node used by the service as a database. */ 
    216     SET_CFGM_NODE = 1, 
     217    /** 
     218     * Set properties in a block.  The parameters are pointers to 
     219     * NULL-terminated arrays containing the paramters.  These are, in order, 
     220     * name, value, timestamp, flags.  Strings are stored as pointers to 
     221     * mutable utf8 data.  All parameters must be supplied. 
     222     */ 
     223    SET_PROPS_HOST = 1, 
    217224    /** 
    218225     * Get the value attached to a guest property 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy