19 lines
937 B
C
19 lines
937 B
C
#ifndef SANE_UI_H
|
|
#define SANE_UI_H
|
|
|
|
#include "../base/HGDef.h"
|
|
#include "../base/HGDll.h"
|
|
#include "sane/sane_ex.h"
|
|
|
|
typedef SANE_Status (*f_sane_init)(SANE_Int* version_code, SANE_Auth_Callback authorize);
|
|
typedef void (*f_sane_exit)(void);
|
|
typedef void (*show_scan_ui_image_callback)(const SANE_Parameters *imageFormat, const SANE_Byte *imageData, void * callbackParam);
|
|
|
|
HGEXPORT int show_srclist_ui(HGWindow parent, HGDll *dll, f_sane_init *fInit, f_sane_exit *fExit, SANEAPI* saneApi);
|
|
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,
|
|
show_scan_ui_image_callback callback, void *callbackParam);
|
|
|
|
#endif
|