VirtualBox

Changeset 24140 in vbox for trunk/include


Ignore:
Timestamp:
Oct 28, 2009 2:29:34 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: added RTGETOPT_REQ_BOOL_ONOFF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/getopt.h

    r23868 r24140  
    8484/** The value must be a valid UUID. */
    8585#define RTGETOPT_REQ_UUID                       15
     86/** The value must be a string with value as "on" or "off". */
     87#define RTGETOPT_REQ_BOOL_ONOFF                 16
    8688/** The mask of the valid required types. */
    87 #define RTGETOPT_REQ_MASK                       15
     89#define RTGETOPT_REQ_MASK                       31
    8890/** Treat the value as hexadecimal - only applicable with the RTGETOPT_REQ_*INT*. */
    8991#define RTGETOPT_FLAG_HEX                       RT_BIT(16)
     
    172174    /** An unsigned integer value. */
    173175    uint64_t        u;
     176    /** A boolean flag. */
     177    bool            f;
    174178} RTGETOPTUNION;
    175179/** Pointer to an option argument union. */
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