调整回调函数方式

This commit is contained in:
gb 2022-10-28 17:09:59 +08:00
parent f4bf748ea0
commit 883137b93a
2 changed files with 3 additions and 3 deletions

View File

@ -201,7 +201,7 @@ namespace callback
, {SANE_STD_OPT_NAME_IS_AUTO_FEED_STRENGTH , "\350\207\252\345\212\250\346\220\223\347\272\270\345\274\272\345\272\246"} // 自动搓纸强度
, {SANE_STD_OPT_NAME_FEED_STRENGTH_VALUE , "\346\220\223\347\272\270\351\230\210\345\200\274"} // " 搓纸阈值"
};
const char* __stdcall option_title_2_name(const char* title)
const char* option_title_2_name(const char* title)
{
while (*title == ' ')
title++;
@ -492,7 +492,7 @@ void __stdcall scanner::ui_callback(int uev, void* sender, void* param)
{
((scanner*)param)->on_ui_event(uev, sender);
}
bool __stdcall scanner::is_option_float(int sn, void* param)
bool scanner::is_option_float(int sn, void* param)
{
SANE_Option_Descriptor* desc = hg_sane_middleware::instance()->get_option_descriptor((SANE_Handle)param, sn);

View File

@ -184,7 +184,7 @@ class scanner : public ISaneInvoker, virtual public refer
static int __stdcall to_int(SANE_Int v);
static float __stdcall to_float(SANE_Fixed v);
static void __stdcall ui_callback(int uev, void* sender, void* param);
static bool __stdcall is_option_float(int sn, void* param);
static bool is_option_float(int sn, void* param);
public:
scanner(SCANNERID id);