VirtualBox

vbox的更動 61881 路徑 trunk/src/VBox/ValidationKit


忽略:
時間撮記:
2016-6-24 下午02:25:08 (8 年 以前)
作者:
vboxsync
訊息:

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

位置:
trunk/src/VBox/ValidationKit/utils/usb
檔案:
刪除 2 筆資料
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/ValidationKit/utils/usb/Makefile.kmk

    r60517 r61881  
    4444UsbTestService_SOURCES = \
    4545        UsbTestService.cpp \
    46         UsbTestServiceCfg.cpp \
    4746        UsbTestServiceGadgetCfg.cpp \
    4847        UsbTestServiceGadgetClassTest.cpp \
  • 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    {
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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