2016-06-20 22:43:39 +00:00
|
|
|
#ifndef _EPSONDS_NET_H_
|
|
|
|
#define _EPSONDS_NET_H_
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "../include/sane/sane.h"
|
|
|
|
|
2021-07-03 22:55:25 +00:00
|
|
|
typedef void (*Device_Found_CallBack) (const char* name, const char* ip);
|
|
|
|
|
2020-04-30 10:45:42 +00:00
|
|
|
extern ssize_t epsonds_net_read(struct epsonds_scanner *s, unsigned char *buf, ssize_t buf_size,
|
2016-06-20 22:43:39 +00:00
|
|
|
SANE_Status *status);
|
2020-04-30 10:45:42 +00:00
|
|
|
extern size_t epsonds_net_write(struct epsonds_scanner *s, unsigned int cmd, const unsigned char *buf,
|
2016-06-20 22:43:39 +00:00
|
|
|
size_t buf_size, size_t reply_len,
|
|
|
|
SANE_Status *status);
|
|
|
|
extern SANE_Status epsonds_net_lock(struct epsonds_scanner *s);
|
|
|
|
extern SANE_Status epsonds_net_unlock(struct epsonds_scanner *s);
|
|
|
|
extern SANE_Status epsonds_net_request_read(epsonds_scanner *s, size_t len);
|
|
|
|
|
2021-07-03 22:55:25 +00:00
|
|
|
#if WITH_AVAHI
|
|
|
|
extern SANE_Status epsonds_searchDevices(Device_Found_CallBack deviceFoundCallBack);
|
|
|
|
#endif
|
|
|
|
|
2016-06-20 22:43:39 +00:00
|
|
|
#endif
|