2020-03-11 01:58:06 +00:00
|
|
|
#ifndef TWGLUE_HPP
|
|
|
|
#define TWGLUE_HPP
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include "Device/PublicFunc.h"
|
|
|
|
|
|
|
|
struct TwGlue {
|
|
|
|
|
2023-05-05 03:50:19 +00:00
|
|
|
TwGlue(const std::function<void(const GScanCap&)>& scan, const std::function<void()>& cancel, std::function<int(int feedmode, bool isget)> feedmode) :
|
|
|
|
m_scan(scan), m_cancel(cancel),m_feedmode(feedmode){}
|
2020-03-11 01:58:06 +00:00
|
|
|
|
|
|
|
std::function<void(const GScanCap&)> m_scan;
|
|
|
|
std::function<void()> m_cancel;
|
2023-05-05 03:50:19 +00:00
|
|
|
std::function<int(int feedmode,bool isget)> m_feedmode;
|
2020-03-11 01:58:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TWGLUE_HPP
|