This commit is contained in:
13038267101 2022-12-30 14:35:33 +08:00
commit 2c4fe5f426
1 changed files with 16 additions and 3 deletions

View File

@ -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>