1 #ifndef _EPSONDS_NET_H_ 2 #define _EPSONDS_NET_H_ 3 4 #include <sys/types.h> 5 #include "../include/sane/sane.h" 6 7 typedef void (*Device_Found_CallBack) (const char* name, const char* ip); 8 9 extern ssize_t epsonds_net_read(struct epsonds_scanner *s, unsigned char *buf, ssize_t buf_size, 10 SANE_Status *status); 11 extern size_t epsonds_net_write(struct epsonds_scanner *s, unsigned int cmd, const unsigned char *buf, 12 size_t buf_size, size_t reply_len, 13 SANE_Status *status); 14 extern SANE_Status epsonds_net_lock(struct epsonds_scanner *s); 15 extern SANE_Status epsonds_net_unlock(struct epsonds_scanner *s); 16 extern SANE_Status epsonds_net_request_read(epsonds_scanner *s, size_t len); 17 18 #if WITH_AVAHI 19 extern SANE_Status epsonds_searchDevices(Device_Found_CallBack deviceFoundCallBack); 20 #endif 21 22 #endif 23