VirtualBox

Ignore:
Timestamp:
Jul 5, 2016 9:34:17 AM (8 years ago)
Author:
vboxsync
Message:

Runtime/RTJson: Fix review todos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/json.cpp

    r61760 r62021  
    201201        {
    202202            /** Number of elements in the array. */
    203             uint32_t        cItems;
     203            unsigned        cItems;
    204204            /** Pointer to the array of items. */
    205205            PRTJSONVALINT   *papItems;
     
    209209        {
    210210            /** Number of members. */
    211             uint32_t        cMembers;
     211            unsigned        cMembers;
    212212            /** Pointer to the array holding the member names. */
    213213            char            **papszNames;
     
    12641264}
    12651265
    1266 RTDECL(int) RTJsonValueGetStringEx(RTJSONVAL hJsonVal, const char **ppszStr)
     1266RTDECL(int) RTJsonValueQueryString(RTJSONVAL hJsonVal, const char **ppszStr)
    12671267{
    12681268    PRTJSONVALINT pThis = hJsonVal;
     
    12751275}
    12761276
    1277 RTDECL(int) RTJsonValueGetNumber(RTJSONVAL hJsonVal, int64_t *pi64Num)
     1277RTDECL(int) RTJsonValueQueryInteger(RTJSONVAL hJsonVal, int64_t *pi64Num)
    12781278{
    12791279    PRTJSONVALINT pThis = hJsonVal;
     
    12861286}
    12871287
    1288 RTDECL(int) RTJsonValueGetByName(RTJSONVAL hJsonVal, const char *pszName, PRTJSONVAL phJsonVal)
     1288RTDECL(int) RTJsonValueQueryByName(RTJSONVAL hJsonVal, const char *pszName, PRTJSONVAL phJsonVal)
    12891289{
    12901290    PRTJSONVALINT pThis = hJsonVal;
     
    13091309}
    13101310
    1311 RTDECL(int) RTJsonValueGetNumberByName(RTJSONVAL hJsonVal, const char *pszName, int64_t *pi64Num)
     1311RTDECL(int) RTJsonValueQueryIntegerByName(RTJSONVAL hJsonVal, const char *pszName, int64_t *pi64Num)
    13121312{
    13131313    RTJSONVAL hJsonValNum = NIL_RTJSONVAL;
    1314     int rc = RTJsonValueGetByName(hJsonVal, pszName, &hJsonValNum);
     1314    int rc = RTJsonValueQueryByName(hJsonVal, pszName, &hJsonValNum);
    13151315    if (RT_SUCCESS(rc))
    13161316    {
    1317         rc = RTJsonValueGetNumber(hJsonValNum, pi64Num);
     1317        rc = RTJsonValueQueryInteger(hJsonValNum, pi64Num);
    13181318        RTJsonValueRelease(hJsonValNum);
    13191319    }
     
    13221322}
    13231323
    1324 RTDECL(int) RTJsonValueGetStringByName(RTJSONVAL hJsonVal, const char *pszName, char **ppszStr)
     1324RTDECL(int) RTJsonValueQueryStringByName(RTJSONVAL hJsonVal, const char *pszName, char **ppszStr)
    13251325{
    13261326    RTJSONVAL hJsonValStr = NIL_RTJSONVAL;
    1327     int rc = RTJsonValueGetByName(hJsonVal, pszName, &hJsonValStr);
     1327    int rc = RTJsonValueQueryByName(hJsonVal, pszName, &hJsonValStr);
    13281328    if (RT_SUCCESS(rc))
    13291329    {
    13301330        const char *pszStr = NULL;
    1331         rc = RTJsonValueGetStringEx(hJsonValStr, &pszStr);
     1331        rc = RTJsonValueQueryString(hJsonValStr, &pszStr);
    13321332        if (RT_SUCCESS(rc))
    13331333        {
     
    13421342}
    13431343
    1344 RTDECL(int) RTJsonValueGetBooleanByName(RTJSONVAL hJsonVal, const char *pszName, bool *pfBoolean)
     1344RTDECL(int) RTJsonValueQueryBooleanByName(RTJSONVAL hJsonVal, const char *pszName, bool *pfBoolean)
    13451345{
    13461346    AssertPtrReturn(pfBoolean, VERR_INVALID_POINTER);
    13471347
    13481348    RTJSONVAL hJsonValBool = NIL_RTJSONVAL;
    1349     int rc = RTJsonValueGetByName(hJsonVal, pszName, &hJsonValBool);
     1349    int rc = RTJsonValueQueryByName(hJsonVal, pszName, &hJsonValBool);
    13501350    if (RT_SUCCESS(rc))
    13511351    {
     
    13631363}
    13641364
    1365 RTDECL(uint32_t) RTJsonValueGetArraySize(RTJSONVAL hJsonVal)
     1365RTDECL(unsigned) RTJsonValueGetArraySize(RTJSONVAL hJsonVal)
    13661366{
    13671367    PRTJSONVALINT pThis = hJsonVal;
     
    13721372}
    13731373
    1374 RTDECL(int) RTJsonValueGetArraySizeEx(RTJSONVAL hJsonVal, uint32_t *pcItems)
     1374RTDECL(int) RTJsonValueQueryArraySize(RTJSONVAL hJsonVal, unsigned *pcItems)
    13751375{
    13761376    PRTJSONVALINT pThis = hJsonVal;
     
    13831383}
    13841384
    1385 RTDECL(int) RTJsonValueGetByIndex(RTJSONVAL hJsonVal, uint32_t idx, PRTJSONVAL phJsonVal)
     1385RTDECL(int) RTJsonValueQueryByIndex(RTJSONVAL hJsonVal, unsigned idx, PRTJSONVAL phJsonVal)
    13861386{
    13871387    PRTJSONVALINT pThis = hJsonVal;
     
    14161416}
    14171417
    1418 RTDECL(int) RTJsonIteratorGetValue(RTJSONIT hJsonIt, PRTJSONVAL phJsonVal, const char **ppszName)
     1418RTDECL(int) RTJsonIteratorQueryValue(RTJSONIT hJsonIt, PRTJSONVAL phJsonVal, const char **ppszName)
    14191419{
    14201420    PRTJSONITINT pIt = hJsonIt;
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