Lines Matching defs:char
247 /* example: char RawScanPath[] = "TestRawScan.pgm"; */
248 char RawScanPath[] = ""; /* empty path means no raw scan file is made */
255 static unsigned char KodakEsp_V[] = {0x1b,'S','V',0,0,0,0,0}; /* version?? */
256 static unsigned char KodakEsp_v[] = {0x1b,'s','v',0,0,0,0,0}; /* reply to version?? */
257 static unsigned char KodakEsp_Lock[] = {0x1b,'S','L',0,0,0,0,0}; /* Locks scanner */
258 static unsigned char KodakEsp_UnLock[] = {0x1b,'S','U',0,0,0,0,0}; /* Unlocks scanner */
259 static unsigned char KodakEsp_Ack[] = {0x1b,'S','S',0,0,0,0,0}; /* Acknowledge for all commands */
261 static unsigned char KodakEsp_F[] = {0x1b,'S','F',0,0,0,0,0}; /* Purpose not known? colour balance?*/
262 static unsigned char KodakEsp_Comp[] = {0x1b,'S','C',3,8,3,0,0}; /* 3,8,3,1,0 does compression. */
264 /* static unsigned char KodakEsp_E[] = {0x1b,'S','E',1,0,0,0,0}; NET Purpose not known */
266 static unsigned char KodakEsp_E[] = {0x1b,'S','E',1,1,0,0,0};
267 static unsigned char KodakEsp_Go[] = {0x1b,'S','G',0,0,0,0,0}; /* Starts the scan */
275 static unsigned char SupportedMatchString[] = "KODAK ESP;KODAK HERO;KODAK OFFICE HERO;ADVENT WiFi AIO;"; */
639 void kodakaio_com_str(unsigned char *buf, char *fmt_buf);
640 int cmparray (unsigned char *array1, unsigned char *array2, size_t len);
642 static struct KodakaioCap *get_device_from_identification (const char *ident, const char *vid, const char *pid);
643 void ProcessAvahiDevice(const char *device_id, const char *vid, const char *pid, const char *ip_addr);
696 kodakaio_net_read(struct KodakAio_Scanner *s, unsigned char *buf, size_t wanted,
745 const unsigned char *buf, size_t buf_size,
767 setsockopt(s->fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&tv, sizeof(tv));
792 static void dump_hex_buffer_dense (int level, const unsigned char *buf, size_t buf_size)
795 char msg[1024], fmt_buf[1024];
818 /* changing params to char seems to cause a stack problem */
819 void kodakaio_com_str(unsigned char *buf, char *fmt_buf)
835 char fmt_buf[25];
841 const unsigned char *s = buf;
871 char fmt_buf[25];
930 const unsigned char* b=buf;
938 kodakaio_expect_ack(KodakAio_Scanner *s, unsigned char *rxbuf)
949 if (strncmp((char *)KodakEsp_Ack,(char *)rxbuf,4)!=0) {
959 kodakaio_txrx(KodakAio_Scanner *s, unsigned char *txbuf, unsigned char *rxbuf)
991 kodakaio_txrxack(KodakAio_Scanner *s, unsigned char *txbuf, unsigned char *rxbuf)
1011 if (strncmp((char *)KodakEsp_Ack,(char *)rxbuf,3) == 0) { /* was 4 byte comp */
1040 unsigned char rxbuf[64];
1060 unsigned char reply[8];
1061 char fmt_buf[25];
1076 if (strncmp((char *) reply, (char *) KodakEsp_v, 3)!=0) {
1094 unsigned char reply[8];
1127 unsigned char reply[8];
1183 cmd_set_color_curve(SANE_Handle handle, unsigned char col)
1188 unsigned char tx_col[8];
1189 unsigned char rx[8];
1190 unsigned char tx_curve[256];
1191 int i; /* 7/9/14 was unsigned char and that stopped the loop that made the linear curve from going to 255 */
1216 int tl_x, int tl_y, int width, int height, unsigned char source)
1223 unsigned char tx_S[8];
1224 unsigned char tx_dpi[8];
1225 unsigned char tx_topleft[8];
1226 unsigned char tx_widthheight[8];
1227 unsigned char bufread[8];
1297 cmparray (unsigned char *array1, unsigned char *array2, size_t len)
1310 cmd_read_data (SANE_Handle handle, unsigned char *buf, size_t *len)
1322 unsigned char *Last8; /* will point to the last 8 chars in buf */
1422 k_dev_init(Kodak_Device *dev, const char *devname, int conntype)
1438 k_set_model(KodakAio_Scanner * s, const char *model, size_t len)
1440 unsigned char *buf;
1441 unsigned char *p;
1463 dev->model = strndup((const char *) buf, len);
1571 unsigned char reply[8];
1592 unsigned char rs, source;
1748 unsigned char mask = 0x80 >> offset;
1869 unsigned char rx[8];
1938 get_device_from_identification (const char *ident, const char *vid, const char *pid)
1996 split_scanner_name (const char *name, char * IP, unsigned int *model)
1998 const char *device = name;
1999 const char *qm;
2043 char IP[1024];
2172 device_detect(const char *name, int type, SANE_Status *status)
2261 ProcessAvahiDevice(const char *device_id, const char *vid, const char *pid, const char *ip_addr)
2285 const char *name,
2286 const char *type,
2287 const char *domain,
2288 const char *host_name,
2296 char *pidkey, *pidvalue;
2297 char *vidkey, *vidvalue;
2311 char a[AVAHI_ADDRESS_STR_MAX];
2358 const char *name,
2359 const char *type,
2360 const char *domain,
2413 kodak_network_discovery(const char*host)
2475 attach(const char *name, int type)
2492 attach_one_usb(const char *dev)
2499 attach_one_net(const char *dev, unsigned int model)
2501 char name[1024];
2514 attach_one_config(SANEI_Config __sane_unused__ *config, const char *line,
2554 const char *name =
2556 char IP[1024];
3120 strcpy((char *) value, sopt->constraint.string_list[sval->w]);
3142 change_source(KodakAio_Scanner *s, SANE_Int optindex, char *value)
3226 (char *) value);
3295 change_source(s, optindex, (char *) value);