Merge branch 'master' of http://192.168.100.140:8099/sane/code_production
This commit is contained in:
commit
2c4fe5f426
|
@ -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
|
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
|
, 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
|
// 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", ...
|
// 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*);
|
DECL_API(int) func_test_uninit(void*);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/*/ testing-DLL load code ...
|
/*/ testing-DLL load code ...
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
Loading…
Reference in New Issue