VirtualBox

Changeset 4337 in vbox for trunk/include/VBox/cfgldr.h


Ignore:
Timestamp:
Aug 24, 2007 10:17:52 AM (17 years ago)
Author:
vboxsync
Message:

Mian/CFGLDR: Use IPRT functions to do string<->integer conversion (this also fixed some memory lieaks).

File:
1 edited

Legend:

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

    r4071 r4337  
    363363 * @param   hnode           Node which attribute will be queried.
    364364 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    365  * @param   pu32Value        Pointer to 32 bit variable where to store the value.
    366  */
    367 CFGLDRR3DECL(int) CFGLDRQueryUInt32(CFGNODE hnode, const char *pszName, uint32_t *pu32Value);
     365 * @param   pulValue        Pointer to 32 bit variable where to store the value.
     366 */
     367CFGLDRR3DECL(int) CFGLDRQueryUInt32(CFGNODE hnode, const char *pszName, uint32_t *pulValue);
    368368
    369369/**
     
    373373 * @param   hnode           Node which attribute will be set.
    374374 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    375  * @param   u32Value         The value.
    376  */
    377 CFGLDRR3DECL(int) CFGLDRSetUInt32(CFGNODE hnode, const char *pszName, uint32_t u32Value);
     375 * @param   ulValue         The value.
     376 */
     377CFGLDRR3DECL(int) CFGLDRSetUInt32(CFGNODE hnode, const char *pszName, uint32_t ulValue);
     378
     379/**
     380 * Set 32 bit unsigned value attribute.
     381 *
     382 * @return  VBox status code.
     383 * @param   hnode           Node which attribute will be set.
     384 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
     385 * @param   ulValue         The value.
     386 * @patam   uiBase          0, 8 or 16.
     387 */
     388CFGLDRR3DECL(int) CFGLDRSetUInt32Ex(CFGNODE hnode, const char *pszName, uint32_t ulValue, unsigned int uiBase);
    378389
    379390/**
     
    383394 * @param   hnode           Node which attribute will be queried.
    384395 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    385  * @param   pu64Value       Pointer to 64 bit variable where to store the value.
    386  */
    387 CFGLDRR3DECL(int) CFGLDRQueryUInt64(CFGNODE hnode, const char *pszName, uint64_t *pu64Value);
     396 * @param   pullValue       Pointer to 64 bit variable where to store the value.
     397 */
     398CFGLDRR3DECL(int) CFGLDRQueryUInt64(CFGNODE hnode, const char *pszName, uint64_t *pullValue);
    388399
    389400/**
     
    393404 * @param   hnode           Node which attribute will be set.
    394405 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    395  * @param   u64Value        The value.
    396  */
    397 CFGLDRR3DECL(int) CFGLDRSetUInt64(CFGNODE hnode, const char *pszName, uint64_t u64Value);
     406 * @param   ullValue        The value.
     407 */
     408CFGLDRR3DECL(int) CFGLDRSetUInt64(CFGNODE hnode, const char *pszName, uint64_t ullValue);
     409
     410/**
     411 * Set 64 bit unsigned value attribute.
     412 *
     413 * @return  VBox status code.
     414 * @param   hnode           Node which attribute will be set.
     415 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
     416 * @param   ullValue        The value.
     417 * @patam   uiBase          0, 8 or 16.
     418 */
     419CFGLDRR3DECL(int) CFGLDRSetUInt64Ex(CFGNODE hnode, const char *pszName, uint64_t ullValue, unsigned int uiBase);
    398420
    399421/**
     
    403425 * @param   hnode           Node which attribute will be queried.
    404426 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    405  * @param   pint32Value     Pointer to 32 bit variable where to store the value.
    406  */
    407 CFGLDRR3DECL(int) CFGLDRQueryInt32(CFGNODE hnode, const char *pszName, int32_t *pint32Value);
     427 * @param   plValue         Pointer to 32 bit variable where to store the value.
     428 */
     429CFGLDRR3DECL(int) CFGLDRQueryInt32(CFGNODE hnode, const char *pszName, int32_t *plValue);
    408430
    409431/**
     
    413435 * @param   hnode           Node which attribute will be set.
    414436 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    415  * @param   int32Value      The value.
    416  */
    417 CFGLDRR3DECL(int) CFGLDRSetInt32(CFGNODE hnode, const char *pszName, int32_t int32Value);
     437 * @param   lValue          The value.
     438 */
     439CFGLDRR3DECL(int) CFGLDRSetInt32(CFGNODE hnode, const char *pszName, int32_t lValue);
     440
     441/**
     442 * Set 32 bit signed integer value attribute.
     443 *
     444 * @return  VBox status code.
     445 * @param   hnode           Node which attribute will be set.
     446 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
     447 * @param   lValue          The value.
     448 * @patam   uiBase          0, 8 or 16.
     449 */
     450CFGLDRR3DECL(int) CFGLDRSetInt32Ex(CFGNODE hnode, const char *pszName, int32_t lValue, unsigned int uiBase);
    418451
    419452/**
     
    423456 * @param   hnode           Node which attribute will be queried.
    424457 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    425  * @param   pint64Value     Pointer to 64 bit variable where to store the value.
    426  */
    427 CFGLDRR3DECL(int) CFGLDRQueryInt64(CFGNODE hnode, const char *pszName, int64_t *pint64Value);
     458 * @param   pllValue        Pointer to 64 bit variable where to store the value.
     459 */
     460CFGLDRR3DECL(int) CFGLDRQueryInt64(CFGNODE hnode, const char *pszName, int64_t *pllValue);
    428461
    429462/**
     
    433466 * @param   hnode           Node which attribute will be set.
    434467 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    435  * @param   int64Value      The value.
    436  */
    437 CFGLDRR3DECL(int) CFGLDRSetInt64(CFGNODE hnode, const char *pszName, int64_t int64Value);
     468 * @param   llValue         The value.
     469 */
     470CFGLDRR3DECL(int) CFGLDRSetInt64(CFGNODE hnode, const char *pszName, int64_t llValue);
     471
     472/**
     473 * Set 64 bit signed integer value attribute.
     474 *
     475 * @return  VBox status code.
     476 * @param   hnode           Node which attribute will be set.
     477 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
     478 * @param   llValue         The value.
     479 * @patam   uiBase          0, 8 or 16.
     480 */
     481CFGLDRR3DECL(int) CFGLDRSetInt64Ex(CFGNODE hnode, const char *pszName, int64_t llValue, unsigned int uiBase);
    438482
    439483/**
     
    443487 * @param   hnode           Node which attribute will be queried.
    444488 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    445  * @param   pu16Value       Pointer to 16 bit variable where to store the value.
    446  */
    447 CFGLDRR3DECL(int) CFGLDRQueryUInt16(CFGNODE hnode, const char *pszName, uint16_t *pu16Value);
     489 * @param   puhValue        Pointer to 16 bit variable where to store the value.
     490 */
     491CFGLDRR3DECL(int) CFGLDRQueryUInt16(CFGNODE hnode, const char *pszName, uint16_t *puhValue);
    448492
    449493/**
     
    453497 * @param   hnode           Node which attribute will be set.
    454498 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
    455  * @param   u16Value        The value.
    456  */
    457 CFGLDRR3DECL(int) CFGLDRSetUInt16(CFGNODE hnode, const char *pszName, uint16_t u16Value);
     499 * @param   uhValue         The value.
     500 */
     501CFGLDRR3DECL(int) CFGLDRSetUInt16(CFGNODE hnode, const char *pszName, uint16_t uhValue);
     502
     503/**
     504 * Set 16 bit unsigned integer value attribute.
     505 *
     506 * @return  VBox status code.
     507 * @param   hnode           Node which attribute will be set.
     508 * @param   pszName         Name of the attribute (UTF-8), NULL for the node value.
     509 * @param   uhValue         The value.
     510 * @patam   uiBase          0, 8 or 16.
     511 */
     512CFGLDRR3DECL(int) CFGLDRSetUInt16Ex(CFGNODE hnode, const char *pszName, uint16_t uhValue, unsigned int uiBase);
    458513
    459514/**
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