Compare commits
3 Commits
6fa6f67c62
...
f41bb8730e
Author | SHA1 | Date |
---|---|---|
13038267101 | f41bb8730e | |
13038267101 | c454143251 | |
13038267101 | 515f41a8f7 |
|
@ -30,6 +30,7 @@ if "%OEM%"=="hw" (
|
||||||
set BUILD_LSC=true
|
set BUILD_LSC=true
|
||||||
set BUILD_CTS=true
|
set BUILD_CTS=true
|
||||||
set BUILD_ZJ=true
|
set BUILD_ZJ=true
|
||||||
|
set BUILD_ZG=true
|
||||||
)else (
|
)else (
|
||||||
set BUILD_HG=true
|
set BUILD_HG=true
|
||||||
set OEM=hg
|
set OEM=hg
|
||||||
|
|
|
@ -5,23 +5,23 @@ EXPORTS
|
||||||
is_scanner_online
|
is_scanner_online
|
||||||
uninitialize
|
uninitialize
|
||||||
log_info
|
log_info
|
||||||
sane_unissane_init
|
sane_hgsane_init
|
||||||
sane_unissane_exit
|
sane_hgsane_exit
|
||||||
sane_unissane_get_devices
|
sane_hgsane_get_devices
|
||||||
sane_unissane_open
|
sane_hgsane_open
|
||||||
sane_unissane_close
|
sane_hgsane_close
|
||||||
sane_unissane_get_option_descriptor
|
sane_hgsane_get_option_descriptor
|
||||||
sane_unissane_control_option
|
sane_hgsane_control_option
|
||||||
sane_unissane_get_parameters
|
sane_hgsane_get_parameters
|
||||||
sane_unissane_start
|
sane_hgsane_start
|
||||||
sane_unissane_read
|
sane_hgsane_read
|
||||||
sane_unissane_cancel
|
sane_hgsane_cancel
|
||||||
sane_unissane_set_io_mode
|
sane_hgsane_set_io_mode
|
||||||
sane_unissane_get_select_fd
|
sane_hgsane_get_select_fd
|
||||||
sane_unissane_strstatus
|
sane_hgsane_strstatus
|
||||||
sane_unissane_init_ex
|
sane_hgsane_init_ex
|
||||||
sane_unissane_io_control
|
sane_hgsane_io_control
|
||||||
sane_unissane_err_desc
|
sane_hgsane_err_desc
|
||||||
sane_unissane_get_option_descriptor_ex
|
sane_hgsane_get_option_descriptor_ex
|
||||||
sane_unissane_control_option_ex
|
sane_hgsane_control_option_ex
|
||||||
sane_unissane_read_ext_info
|
sane_hgsane_read_ext_info
|
Binary file not shown.
|
@ -171,7 +171,7 @@ static int oem_code(oem o)
|
||||||
else if (o == OEM_ZHONGJING)
|
else if (o == OEM_ZHONGJING)
|
||||||
return 20;
|
return 20;
|
||||||
else if (o == OEM_ZIGUANG)
|
else if (o == OEM_ZIGUANG)
|
||||||
return 17;
|
return 22;
|
||||||
else
|
else
|
||||||
return 10;
|
return 10;
|
||||||
}
|
}
|
||||||
|
@ -185,7 +185,7 @@ static oem oem_from_code(int code)
|
||||||
return OEM_CANGTIAN;
|
return OEM_CANGTIAN;
|
||||||
else if (code == 20)
|
else if (code == 20)
|
||||||
return OEM_ZHONGJING;
|
return OEM_ZHONGJING;
|
||||||
else if (code == 17)
|
else if (code == 22)
|
||||||
return OEM_ZIGUANG;
|
return OEM_ZIGUANG;
|
||||||
else
|
else
|
||||||
return OEM_NONE;
|
return OEM_NONE;
|
||||||
|
@ -958,7 +958,7 @@ namespace rc
|
||||||
else if (o == OEM_ZHONGJING)
|
else if (o == OEM_ZHONGJING)
|
||||||
backend = L"zj";
|
backend = L"zj";
|
||||||
else if (o == OEM_ZIGUANG)
|
else if (o == OEM_ZIGUANG)
|
||||||
backend = L"unis";
|
backend = L"zg";
|
||||||
else
|
else
|
||||||
backend = L"hg";
|
backend = L"hg";
|
||||||
backend += L"sane";
|
backend += L"sane";
|
||||||
|
@ -1023,7 +1023,7 @@ namespace rc
|
||||||
else if (o == OEM_ZHONGJING)
|
else if (o == OEM_ZHONGJING)
|
||||||
backend.insert(0, L"_zj");
|
backend.insert(0, L"_zj");
|
||||||
else if (o == OEM_ZIGUANG)
|
else if (o == OEM_ZIGUANG)
|
||||||
backend.insert(0, L"_unis");
|
backend.insert(0, L"_zg");
|
||||||
else
|
else
|
||||||
backend.insert(0, L"_hg");
|
backend.insert(0, L"_hg");
|
||||||
|
|
||||||
|
@ -1044,7 +1044,7 @@ namespace rc
|
||||||
prev = L"_zjsane_";
|
prev = L"_zjsane_";
|
||||||
if (cont.find(prev) == std::wstring::npos)
|
if (cont.find(prev) == std::wstring::npos)
|
||||||
{
|
{
|
||||||
prev = L"_unissane_";
|
prev = L"_zgsane_";
|
||||||
if (cont.find(prev) == std::wstring::npos)
|
if (cont.find(prev) == std::wstring::npos)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -1080,7 +1080,7 @@ namespace rc
|
||||||
else if (o == OEM_ZHONGJING)
|
else if (o == OEM_ZHONGJING)
|
||||||
backend.insert(0, L"zj");
|
backend.insert(0, L"zj");
|
||||||
else if (o == OEM_ZIGUANG)
|
else if (o == OEM_ZIGUANG)
|
||||||
backend.insert(0, L"unis");
|
backend.insert(0, L"zg");
|
||||||
else
|
else
|
||||||
backend.insert(0, L"hg");
|
backend.insert(0, L"hg");
|
||||||
|
|
||||||
|
@ -1098,7 +1098,7 @@ namespace rc
|
||||||
prev = L"cts_scanner_";
|
prev = L"cts_scanner_";
|
||||||
if (cont.find(prev) == std::wstring::npos)
|
if (cont.find(prev) == std::wstring::npos)
|
||||||
{
|
{
|
||||||
prev = L"unis_scanner_";
|
prev = L"zg_scanner_";
|
||||||
if (cont.find(prev) == std::wstring::npos)
|
if (cont.find(prev) == std::wstring::npos)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue