1141cc406Sopenharmony_ci#ifndef _EPSONDS_NET_H_ 2141cc406Sopenharmony_ci#define _EPSONDS_NET_H_ 3141cc406Sopenharmony_ci 4141cc406Sopenharmony_ci#include <sys/types.h> 5141cc406Sopenharmony_ci#include "../include/sane/sane.h" 6141cc406Sopenharmony_ci 7141cc406Sopenharmony_citypedef void (*Device_Found_CallBack) (const char* name, const char* ip); 8141cc406Sopenharmony_ci 9141cc406Sopenharmony_ciextern ssize_t epsonds_net_read(struct epsonds_scanner *s, unsigned char *buf, ssize_t buf_size, 10141cc406Sopenharmony_ci SANE_Status *status); 11141cc406Sopenharmony_ciextern size_t epsonds_net_write(struct epsonds_scanner *s, unsigned int cmd, const unsigned char *buf, 12141cc406Sopenharmony_ci size_t buf_size, size_t reply_len, 13141cc406Sopenharmony_ci SANE_Status *status); 14141cc406Sopenharmony_ciextern SANE_Status epsonds_net_lock(struct epsonds_scanner *s); 15141cc406Sopenharmony_ciextern SANE_Status epsonds_net_unlock(struct epsonds_scanner *s); 16141cc406Sopenharmony_ciextern SANE_Status epsonds_net_request_read(epsonds_scanner *s, size_t len); 17141cc406Sopenharmony_ci 18141cc406Sopenharmony_ci#if WITH_AVAHI 19141cc406Sopenharmony_ciextern SANE_Status epsonds_searchDevices(Device_Found_CallBack deviceFoundCallBack); 20141cc406Sopenharmony_ci#endif 21141cc406Sopenharmony_ci 22141cc406Sopenharmony_ci#endif 23