diff --git a/code/base/test_base.h b/code/base/test_base.h index 4ee8ad0..7dbb10a 100644 --- a/code/base/test_base.h +++ b/code/base/test_base.h @@ -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 @@ -441,4 +454,4 @@ public: return it->test_api(name, oper, ui); } }; -/////////////////////////*//////////////////////////////////////////////////////////////////////// \ No newline at end of file +/////////////////////////*////////////////////////////////////////////////////////////////////////