定义testgo写配置参数接口
This commit is contained in:
parent
424238085b
commit
e516b75be1
|
@ -226,9 +226,23 @@ DECL_API(int) func_test_init(void*);
|
|||
DECL_API(int) func_test_get_list(wchar_t* buf // to receive the JSON text
|
||||
, size_t* len); // [in] space of 'buf' in words, [out] words copied in buf, or less buffer size in words if return ERROR_INSUFFICIENT_BUFFER
|
||||
|
||||
#define WRITE_CFG_NAME "write-cfg"
|
||||
enum write_cat
|
||||
{
|
||||
WRITE_CAT_VID = 0, // val = (int*)
|
||||
WRITE_CAT_PID, // val = (int*)
|
||||
WRITE_CAT_SPEED, // val = (int*)
|
||||
WRITE_CAT_SLEEP, // val = (int*)
|
||||
};
|
||||
|
||||
typedef struct _write_cfg
|
||||
{
|
||||
enum write_cat cat;
|
||||
void* val;
|
||||
}WRITECFG, *LPWRITECFG;
|
||||
// Function: do ONE function test
|
||||
//
|
||||
// Parameter: name - function name
|
||||
// Parameter: name - function name. "write-cfg" for write predefined configuration, oper is LPWRITECFG
|
||||
//
|
||||
// oper - test operation, "start", "pause", "resume", "stop", ...
|
||||
//
|
||||
|
@ -243,7 +257,6 @@ DECL_API(int) func_test_go(const wchar_t* name // test name
|
|||
DECL_API(int) func_test_uninit(void*);
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/*/ testing-DLL load code ...
|
||||
#include <vector>
|
||||
|
@ -441,4 +454,4 @@ public:
|
|||
return it->test_api(name, oper, ui);
|
||||
}
|
||||
};
|
||||
/////////////////////////*////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////*////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue