Changeset 20809 in vbox
- Timestamp:
- Jun 23, 2009 9:08:20 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/getopt.h
r20374 r20809 82 82 /** The value must be a valid ethernet MAC address. */ 83 83 #define RTGETOPT_REQ_MACADDR 14 84 /** The value must be a valid UUID. */ 85 #define RTGETOPT_REQ_UUID 15 84 86 /** The mask of the valid required types. */ 85 87 #define RTGETOPT_REQ_MASK 15 … … 158 160 /** A RTGETOPT_REQ_MACADDR option argument. */ 159 161 RTMAC MacAddr; 162 /** A RTGETOPT_REQ_UUID option argument. */ 163 RTUUID Uuid; 160 164 /** A signed integer value. */ 161 165 int64_t i; -
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r18744 r20809 38 38 #include <iprt/assert.h> 39 39 #include <iprt/ctype.h> 40 #include <iprt/uuid.h> 40 41 41 42 … … 440 441 } 441 442 443 case RTGETOPT_REQ_UUID: 444 { 445 RTUUID Uuid; 446 if (RTUuidFromStr(&Uuid, pszValue) != VINF_SUCCESS) 447 return VERR_GETOPT_INVALID_ARGUMENT_FORMAT; 448 pValueUnion->Uuid = Uuid; 449 break; 450 } 451 442 452 default: 443 453 AssertMsgFailed(("i=%d f=%#x\n", pOpt - &pState->paOptions[0], pOpt->fFlags));
Note:
See TracChangeset
for help on using the changeset viewer.