Changeset 2602 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- May 12, 2007 8:01:48 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 21109
- Location:
- trunk/src/VBox/Main/xml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd
r2521 r2602 421 421 </xsd:complexType> 422 422 </xsd:element> 423 <xsd:element name="TimeOffset" minOccurs="0"> 424 <xsd:complexType> 425 <xsd:attribute name="value" type="xsd:integer" default="0"/> 426 </xsd:complexType> 427 </xsd:element> 423 428 </xsd:all> 424 429 </xsd:complexType> -
trunk/src/VBox/Main/xml/cfgldr.cpp
r1128 r2602 170 170 int QueryInt32 (const char *pszName, int32_t *pint32Value); 171 171 int SetInt32 (const char *pszName, int32_t int32Value); 172 int QueryInt64 (const char *pszName, int64_t *pint64Value); 173 int SetInt64 (const char *pszName, int64_t int64Value); 172 174 173 175 int QueryUInt16 (const char *pszName, uint16_t *pu16Value); … … 1826 1828 } 1827 1829 1830 int CfgNode::QueryInt64 (const char *pszName, int64_t *pint64Value) 1831 { 1832 PRTUTF16 pwszValue = NULL; 1833 1834 int rc = queryValueString (pszName, &pwszValue); 1835 1836 if (VBOX_SUCCESS(rc)) 1837 { 1838 rc = cfgldrhlp_ustr_to_integer<int64_t, uint64_t> (pwszValue, pint64Value); 1839 } 1840 1841 return rc; 1842 } 1843 1844 int CfgNode::SetInt64 (const char *pszName, int64_t int64Value) 1845 { 1846 PRTUTF16 pwszValue = NULL; 1847 1848 int rc = cfgldrhlp_integer_to_ustr<int64_t, uint64_t> (int64Value, &pwszValue); 1849 1850 if (VBOX_SUCCESS(rc)) 1851 { 1852 rc = setValueString (pszName, pwszValue); 1853 1854 cfgldrhlp_release_ustr (pwszValue); 1855 } 1856 1857 return rc; 1858 } 1859 1828 1860 int CfgNode::QueryUInt16 (const char *pszName, uint16_t *pu16Value) 1829 1861 { … … 2311 2343 } 2312 2344 2345 CFGLDRR3DECL(int) CFGLDRQueryInt64(CFGNODE hnode, const char *pszName, int64_t *pint64Value) 2346 { 2347 if (!hnode) 2348 { 2349 return VERR_INVALID_HANDLE; 2350 } 2351 return hnode->QueryInt64 (pszName, pint64Value); 2352 } 2353 2354 CFGLDRR3DECL(int) CFGLDRSetInt64(CFGNODE hnode, const char *pszName, int64_t int64Value) 2355 { 2356 if (!hnode) 2357 { 2358 return VERR_INVALID_HANDLE; 2359 } 2360 return hnode->SetInt64 (pszName, int64Value); 2361 } 2313 2362 2314 2363 CFGLDRR3DECL(int) CFGLDRQueryUInt16(CFGNODE hnode, const char *pszName, uint16_t *pu16Value)
Note:
See TracChangeset
for help on using the changeset viewer.