VirtualBox

Ignore:
Timestamp:
Jun 24, 2016 2:25:08 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108311
Message:

ValidationKit/UsbTestService: Move to the new RTJson* API for parsing the configuration file (for later, the configuration file is unused at the moment)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/usb/UsbTestService.cpp

    r60793 r61881  
    4242#include <iprt/handle.h>
    4343#include <iprt/initterm.h>
     44#include <iprt/json.h>
    4445#include <iprt/list.h>
    4546#include <iprt/log.h>
     
    5556#include <iprt/thread.h>
    5657
    57 #include "UsbTestServiceCfg.h"
    5858#include "UsbTestServiceInternal.h"
    5959#include "UsbTestServiceGadget.h"
     
    152152static bool volatile        g_fTerminate = false;
    153153/** Configuration AST. */
    154 static PCFGAST              g_pCfgAst = NULL;
     154static RTJSONVAL            g_hCfgJson = NIL_RTJSONVAL;
    155155/** Pipe for communicating with the serving thread about new clients. - read end */
    156156static RTPIPE               g_hPipeR;
     
    12481248    RTListInit(&g_LstClientsNew);
    12491249
    1250     rc = utsParseConfig(g_szCfgPath, &g_pCfgAst, &pErrInfo);
     1250    rc = RTJsonParseFromFile(&g_hCfgJson, g_szCfgPath, pErrInfo);
    12511251    if (RT_SUCCESS(rc))
    12521252    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette