2023-03-28 10:38:35 +00:00
|
|
|
|
#ifndef SANE_UI_H
|
|
|
|
|
#define SANE_UI_H
|
|
|
|
|
|
2023-03-29 08:16:19 +00:00
|
|
|
|
#include "../base/HGDef.h"
|
2023-04-03 09:13:53 +00:00
|
|
|
|
#include "../base/HGDll.h"
|
2023-03-28 10:38:35 +00:00
|
|
|
|
#include "sane/sane_ex.h"
|
|
|
|
|
|
|
|
|
|
typedef void (*show_scan_ui_image_callback)(const SANE_Parameters *imageFormat, const SANE_Byte *imageData, void * callbackParam);
|
|
|
|
|
|
2023-04-04 03:17:09 +00:00
|
|
|
|
HGEXPORT int show_srclist_ui(const char **manuNames, const char **sanePaths, HGWindow parent, HGDll *dll,
|
2023-04-03 09:38:29 +00:00
|
|
|
|
SANEAPI* saneApi, char *manuName, unsigned int maxLen);
|
2023-04-03 09:13:53 +00:00
|
|
|
|
HGEXPORT int show_devlist_ui(const SANEAPI* saneApi, HGWindow parent, SANE_Handle *handle, char *devName, unsigned int maxLen);
|
|
|
|
|
HGEXPORT int show_setting_ui(const SANEAPI* saneApi, SANE_Handle handle, const char *devName, HGWindow parent);
|
|
|
|
|
HGEXPORT int show_scan_ui(const SANEAPI* saneApi, SANE_Handle handle, const char *devName, HGWindow parent,
|
2023-04-03 03:06:14 +00:00
|
|
|
|
show_scan_ui_image_callback callback, void *callbackParam);
|
2023-03-28 10:38:35 +00:00
|
|
|
|
|
|
|
|
|
#endif
|