11999-04-19  David Mosberger-Tang  <David.Mosberger@acm.org>
2
3	* Version 1.0.1 released.
4
5	* backend/artec.c (attach): Applied patch by Petter to fix URL in
6	debug output.
7
8	* backend/microtek2.c (chunky_proc_data): Apply Bernd's latest
9	patch to fix some color problems.
10
111999-04-17  David Mosberger-Tang  <David.Mosberger@acm.org>
12
13	* Patch by Mikko Työläjärvi:
14	* sanei/sanei_scsi.c: Check for cam_devices[fd]==NULL, not !=NULL.
15
16	* Patch from Petter:
17	* config.guess: Update to latest version.
18	* config.sub: Update to latest version.
19	* config.install-sh: Update to latest version.
20	* mkinstalldirs: Update to latest version.
21
221999-04-12  David Mosberger-Tang  <David.Mosberger@acm.org>
23
24	* doc/sane-dc25.man: Apply fixes by Peter Fales
25	<psfales@lucent.com>.
26	* backend/dc25.c: Apply patch by Peter Fales.
27
281999-04-11  David Mosberger-Tang  <David.Mosberger@acm.org>
29
30	* include/sane/config.h.in: Declare return type of strdup(),
31	strndup(), and strsep() if these functions are not part of the
32	standard libc.  This breaks the GNU convention of not declaring
33	standard C library functions but is required in these cases
34	because the functions return pointers.  On a 64 bit platform, bad
35	code is generated if a function is (implicitly) declared to return
36	an "int" and then returns a pointer.  To minimize the risk of
37	compile errors due to conflicting prototypes, we don't specify a
38	prototype though (just the return type).
39
40	* backend/dll.conf: Comment out dc25 and dc210 backends as those
41	are VERY slow to initialize when no camera is attached.
42
43	* backend/epson.desc: Add Epson GT-7000.
44
451999-04-06  David Mosberger-Tang  <David.Mosberger@acm.org>
46
47	* backend/sharp.c (sane_read_shuffled): Declare as "static".
48	(sane_read_direct): Ditto.
49	Applied latest patch by Kazuya and Abel.
50
51	* sanei/sanei_scsi.c [USE == FREEBSD_CAM_INTERFACE]: Fix bugs
52	(patch by Mikko Tyo"la"ja"rvi <mikko@securitydynamics.com>).
53
54	* backend/snapscan.c (start_reader): Don't redirect scanner file
55	descriptor to fd 0 (needlessly breaks FreeBSD and other platforms
56	that don't use real file descriptors for the scanner.
57
58	* backend/microtek2.c: Apply Bernd's patch to fix "green-ness"
59	bug.
60
61	* backend/umax.BUGS: Applied Oliver's latest patch.
62	* backend/umax.CHANGES: Ditto.
63	* backend/umax.FAQ: Ditto.
64	* backend/umax.TODO: Ditto.
65	* backend/umax.c: Ditto.
66	* backend/umax.desc: Ditto.
67	* doc/sane-umax-doc.html: Ditto.
68	* doc/sane-umax-doc.tex: Ditto.
69	* doc/sane-umax-doc.man: Ditto.
70
711999-04-06  Petter Reinholdtsen <pere@td.org.uit.no>
72
73	* backend/snapscan.c (sane_exit sane_get_devices): Removed memory
74	leak.
75	(sane_open): Give more sensible error message when unable to open
76	temp file.  Open temp file in /var/tmp, not in current directory.
77	(mini_inquiry add_device): Make sure to only match listed models.
78  	Earlier, substrings would also match.
79
80	* backend/snapscan.c (sane_snapscan_*): Changed API entries from
81	sane_snapscan_* to sane_*.
82
83	* backend/snapscan.c (add_device init_options inquiry
84 	sane_snapscan_get_parameters sane_snapscan_start
85 	sane_snapscan_set_io_mode sane_snapscan_read) backend/snapscan.h
86 	backend/snapscan.desc: Rewrote scanner detection code to loop over
87 	array of supported SCSI names.  Added AGFA SnapScan 1236s support.
88  	It seems to be compatible with SnapScan 600.
89	Make sure to not add the same device more then once to the device
90 	list.  Bugfix in sane_snapscan_read() triggered on EOF.
91
921999-04-04  David Mosberger-Tang  <David.Mosberger@acm.org>
93	* PROBLEMS: Note that /proc/sys/kernel/sg-big-buff is available
94	since Linux kernel v2.2.
95
96	* backend/agfafocus.desc: Changed status from "new" to "alpha".
97	* backend/hp.desc: Ditto.
98
99	* backend/microtek2.desc: Increase version number to 0.6.
100
1011999-04-04  Petter Reinholdtsen <pere@td.org.uit.no>
102	* PROBLEMS:  Updated note on SG_BIG_BUF.
103	* tools/README: Corrected typo.  Added some notes on
104	mustek600iin-off.
105	* tools/mustek600iin-off.c: Remove hardcoded path to mustek.conf.
106
1071999-04-03  David Mosberger-Tang  <David.Mosberger@acm.org>
108
109	* include/sane/sanei_debug.h: Define sanei_debug_BACKEND_NAME only
110	if STUBS is not defined.
111
112	* backend/microtek2.h: #ifdef out do_dummy_scan.
113
114	* backend/Makefile.in (V_REV): New variable.
115
116	* configure.in (V_REV): New variable.
117	(VERSION): Include ${V_REV} in version number.
118	Substitute V_REV.
119
120	* backend/umax.c (umax_do_request_sense): Make "static".
121
122	* backend/canon.h: Move array "option_name"...
123	* backend/canon-sane.c: ...to here and make "static".
124
125	* backend/pnm.c: Rolled back to version that shipped with
126	sane-0.74.  The scan area options were not well implemented.  If
127	someone wants to fix that code, the previous (unreliable) version
128	of the PNM backend is in backend/pnm.c-bad.
129
130	* doc/sane.tex (subsection{Resolution Option}: Remove section
131	4.5.5---it was a duplicate of section 4.5.2 (Scan Resolution
132	Option)!
133
134	* backend/microtek2.c (chunky_proc_data): Merge in latest changes
135	from Bernd.
136
1371999-04-02  David Mosberger-Tang  <David.Mosberger@acm.org>
138
139	* backend/net.c (sane_control_option): Ignore the option size
140	of BUTTONs and GROUPs as required by section 4.2.9.  (Bug
141	reported by Nick Lamb).
142
143	* frontend/xscanimage.c (null_print_func): Declare MSG param
144	as "const" to match declaration of glib-1.2.1.
145
146	* backend/ricoh.c (attach_one): return SANE_STATUS_GOOD.
147
148	* backend/microtek2.c (do_dummy_scan): #ifdef out since it
149	seems to be used for debugging only.
150
151	* backend/hp-option.c (_probe_int): Needed only if HP_EXPERIMENTAL
152	is defined.
153
154	* backend/coolscan.c: Updated with Didier's latest patch.
155
156	* backend/mustek.c: Applied Andreas's latest patch.
157
158	* doc/sane.tex (subsection{Device Descriptor Type}): Add AGFA.
159
160	* doc/net.tex (subsection{Primitive Data Types}): Clarify that
161	SANE_Char is encoded as ISO LATIN-1 and describe SANE_String
162	encoding (patch by Petter).
163
164	* frontend/saned.c (DBG): Remove extraneous parens around "msg".
165
166	* AUTHORS (Frontends): Update David Skoll's email address.
167
168	* frontend/saned.c (get_free_handle): Check for out of memory
169	situations and initialize newly allocated memory.
170	(auth_callback): Fail when we can _not_ authorize (i.e.,
171	!can_authorize), not the other way round.
172	(quit): Make sure quit() gets executed only once.
173
174	* backend/microtek2.c: Updated with Bernd's latest version.
175	* backend/microtek2.h: Ditto.
176
177	* backend/st400.desc: New file.
178
179	* backend/epson.c (sane_open): Check for NULL or empty
180	dummy_dev.sane.name to avoid segfaults.  (Suggested by Yuri
181	Dario).
182
183	* sanei/sanei_scsi.c [USE = LINUX_INTERFACE]: Make "cdb" last
184	member in "struct req" and change size of "data" to 1 byte to
185	allow dynamic sizing of data buffer based on the value of
186	sanei_scsi_max_request_size.
187	(sanei_scsi_req_enter): Calculate size of request based on
188	sanei_scsi_max_request_size.  A similar patch was proposed
189	by Petter Reinholdtsen.
190
1911999-03-13  Petter Reinholdtsen  <pere@td.org.uit.no>
192
193	* doc/saned.man: More info on how to use tcp_wrapper for access
194	control.
195
1961999-03-08  David Mosberger-Tang  <David.Mosberger@acm.org>
197
198	* backend/microtek2.c (sane_get_select_fd): Remove bogus cast.
199	Reported by Petter Reinholdtsen.
200
201	* sanei/sanei_config.c: Include <sane/config.h>.
202
203	* frontend/saned.c: Include <sys/types.h>.
204	(MAXHOSTNAMELEN): Define MAXHOSTNAMELEN if necessary.
205
206	* configure.os2 (LN_S): Updated with Yuri's latest version.
207
208	* backend/Makefile.in (install): Use $(LN_S) instead of ln -s.
209	(libsane-dll.la): Make dependent on $(DLL_PRELOAD_EXTRAS).
210	(libsane-hp.la): Make dependent on sanei_pio.lo.
211
212	* backend/hp.c (PATH_MAX): Define PATH_MAX if necessary.
213
214	* backend/hp-scl.c (sanei_hp_scsi_pipeout): Add SIGXCPU, SIGXFSZ,
215	and SIGVTALRM only if defined.
216
217	* backend/dc25.c (PATH_MAX): Define PATH_MAX if necessary.
218	(sane_init): Move up fclose(fp) to avoid segfault when fp==NULL.
219	* backend/dc210.c (sane_init): Ditto.
220
221	* backend/pnm.c: Apply Oliver's 4-liner to make TLX, TLY, BRX, and
222	BRY advanced options.
223
224	* backend/umax.c: Updated with Oliver's latest version.
225
226	* doc/sane-sharp.man: New file (by Kazuya Fukuda).
227	* backend/sharp.c: Updated with Kazuya's latest version.
228	* backend/sharp.h: Ditto.
229	* backend/sharp.desc: Ditto.
230
2311999-03-04  David Mosberger-Tang  <David.Mosberger@acm.org>
232
233	* backend/canon.c (adjust_hilo_points): Print values of type
234	size_t as described in backend/GUIDE..
235
236	* backend/canon-scsi.c: Comment out unused code.
237
238	* backend/canon.c: Updated with Manuel Panea latest version.
239
240	* Irix patches from Michael Sweet:
241
242	* sanei/sanei_scsi.c (sanei_scsi_find_devices): Update with
243	Michael's latest version.
244	* configure.in (CPPFLAGS): Don't check for libnsl or libsocket on
245	Irix.
246	(CPPFLAGS): Check for cfmakeraw.
247	* backend/sharp.h (mode_select_param): Remove double semicolon
248	(some compiler's don't grok those in structure declarations).
249	* backend/Makefile.in (libsane-abaton.la): Make dependent on
250	sanei_config2.lo.
251	* backend/dll.conf: Enable net backend, disable pnm backend by
252	default to lessen risk of confusing novice users.
253	* backend/abaton.c (sane_read): Change type of "size" from ssize_t
254	to size_t.
255	* backend/apple.c (sane_read): Ditto.
256
2571999-03-02  David Mosberger-Tang  <David.Mosberger@acm.org>
258
259	* backend/Makefile.in (EXTRA_dc210): New macro.
260
261	* sanei/sanei_ab306.c: Apply usleep() patch by Andreas
262	Czechanowski.
263
264	* backend/hp.c: Updated with Peter's latest version (v.082).
265
2661999-03-01  David Mosberger-Tang  <David.Mosberger@acm.org>
267
268	* include/sane/sanei_net.h: Changed copyright on this file (and
269	this file only!) to be public domain (same as sane.h).  This helps
270	ensuring that independent network implementations remain
271	compatible.
272
2731999-02-28  David Mosberger-Tang  <David.Mosberger@acm.org>
274
275	* backend/sharp.c: New file by FUKUDA Kazuya
276	<fukuda@avm.nhe.nec.co.jp>.
277	* backend/sharp.h: Ditto
278	* backend/sharp.conf: Ditto.
279	* backend/sharp.desc: Ditto.
280
281	* include/sane/sanei_debug.h: Define sanei_debug_BACKEND_NAME
282	only if BACKEND_NAME is defined.
283
284	* tools/find-scanner.c (main): Add NetBSD device names (patch by
285	Taniguchi Shinya <Taniguchi.Shinya@exc.epson.co.jp>).
286
287	* backend/epson.c (attach): Recognize Perfection636 scanner.
288	Suggested by Svend Daugaard Pedersen <sdp@vip.cybercity.dk>.
289
290	* backend/abaton.c (attach_one): Move past attach() to avoid
291	forward-reference.
292
293	* backend/umax.c (umax_do_request_sense): Make static.
294
295	* backend/snapscan-310.c (rgb_buf_can_get_line): Make static.
296	(rgb_buf_init): Ditto.
297	(rgb_buf_clean): Ditto.
298	(rgb_buf_push_line): Ditto.
299	(rgb_buf_get_line): Ditto.
300	(rgb_buf_set_diff): Ditto.
301	(transfer_data_diff): Ditto.
302
303	* backend/snapscan.c (gamma_8): Make static.
304	(start_reader): Ditto.
305
306	* backend/microtek.c (do_precalibrate): Make static.
307	(finagle_precal): Ditto.
308	(pack_flat_data): Ditto.
309	(pack_goofyrgb_data): Ditto.
310	(pack_into_ring): Ditto.
311	(pack_into_dest): Ditto.
312	(pack_seqrgb_data): Ditto.
313	(ring_alloc): Ditto.
314	(ring_expand): Ditto.
315	(ring_free): Ditto.
316	(set_pass_parameters): Ditto.
317
318	* backend/epson.c (epson_cmd): Make static.
319
320	* backend/dc25.c (pp): Make static.
321	(tmpname): Ditto.
322	(tmpnamebuf): Ditto.
323	(tty_baud): Ditto.
324
325	* backend/artec.c (artec_get_status): Make static.
326	(attach_one): Ditto.
327	(cap_data): Ditto.
328
329	* backend/abaton.c (mode_update): Make mode_update() static.
330	* backend/apple.c (mode_update): Ditto.
331	(gamma_update): Make static.
332	(xquant): Ditto.
333	(yquant): Ditto.
334
335	* backend/microtek2.c: Updated with Bernd's v0.6.
336	Add missing include of <errno.h>.
337
338	* backend/microtek2.h: Ditto.
339	* backend/microtek2.conf: Ditto.
340
3411999-02-27  David Mosberger-Tang  <David.Mosberger@acm.org>
342
343	* frontend/preview.c (preview_scan): Fix dpi calculation by
344	replacing gwidth by gheight.  Reported by Manuel Panea.
345
346	* doc/sane-net.man: Change service name from "saned" to "sane".
347
348	* sanei/sanei_scsi.c (MAX_DATA) [FREEDBSD_CAM_INTERFACE]:  Change
349	MAX_DATA from MAXPHYS to (DFLTPHYS - PAGE_SIZE).  Patch by
350	Parag Patel <parag@cgt.com>.
351
352	* AUTHORS (Backends): Updated Peter's email address.
353
354	* PROJECTS: Updated Peter's home page URL.
355
356	* backend/snapscan.c (EXPECTED_MAJOR): Update EXPECTED_MAJOR to 1.
357
358	* include/sane/sane.h (SANE_CURRENT_MAJOR): SANE_CURRENT_MAJOR and
359	V_MAJOR HAVE to be in sync, so I'm forced to fix SANE_CURRENT_MAJOR
360	now.  Embarrassing, but fortunately only the snapscan backend seems
361	affected by this change.
362
363	* backend/dll.c (load): Use SANE_CURRENT_MAJOR, not V_MAJOR (the
364	latter is used for shared lib versioning).
365
366	* tools/find-scanner.c (main): Make verbose output a bit
367	friendlier (patch by Petter).
368
369	* backend/umax.c: Updated with Oliver's latest version (v1.0c).
370
371	* Patch by Mike Sweet: * backend/Makefile.in (libsane-ricoh.la):
372	Make dependent on sanei_config2.lo.  * sanei/sanei_scsi.c
373	(sanei_scsi_find_devices): New function.
374	(WE_HAVE_FIND_DEVICES): Define.  * frontend/saned.c (check_host):
375	A "+" in saned.conf now matches any remote host (may be a bit
376	dangerous, so use this judiciously).  * frontend/gtkglue.c:
377	Include <string.h>.  * backend/hp-accessor.c (hp_data_alloc):
378	Round size up to a multiple of sizeof(long) to avoid alignment
379	problems.  * backend/abaton.h: Remove extraneous comma in enums.
380	* backend/artec.conf: Add "scsi ULTIMA" line.  *
381	backend/abaton.conf: Add "scsi ABATON" line.  *
382	backend/epson.conf: Add "scsi EPSON" line.  * backend/ricoh.conf:
383	Add "scsi RICOH IS60" line.  * backend/snapscan.conf: Add "scsi
384	AGFA" and "scsi COLOR" line.  * backend/tamarack.conf: Add "scsi
385	TAMARACK" line.  * backend/abaton.c (sane_init): Fix fall back
386	code to attach /dev/scanner when ABATON_CONFIG_FILE doesn't exist.
387	(sane_init): Use sanei_config_attach_matching_devices().
388	(attach_one): New function.
389	* backend/hp-device.c (sanei_hp_device_probe): Mention model
390	6250C.
391
392	* backend/saned.conf: Remove the stale comments about hostname
393	matching being case-sensitive.
394
395	* backend/microtek.h: Updated with Matto's v0.10.1.
396
397	* backend/mustek.c (send_gamma_se): Apply patch by Wilco Oelen
398	<woelen@noord.bart.nl> to clip gamma values to range 0..255.
399
400	* backend/artec.desc: Updated with Chris Pinkham's latest version.
401
402	* backend/umax.c (PATH_MAX): Do conditional define of PATH_MAX
403	_after_ including all the headers to avoid "duplicate define"
404	warning message.
405
406	* backend/ricoh.h: Include <sane/config.h> to get #define for
407	"inline" if necessary.
408
409	* backend/dc210.c (init_dc210): To send break, use tcsendbreak()
410	if available or TCSBKRP or TCKSBRK ioctl() if available or fall
411	back to doing nothing if none of these are supported.  This may
412	cause the backend to work incorrectly on platforms that do not
413	support one of the above methods for sending a break, but at least
414	it will compile that way.
415
4161998-12-12  David Mosberger-Tang  <David.Mosberger@acm.org>
417
418	* backend/hp.desc: Updated with Peter's latest version.
419
4201998-11-30  David Mosberger-Tang  <David.Mosberger@acm.org>
421
422	* LICENSE (terms): Add a pointer to backend/djpeg.README.gz.
423
424	* backend/djpeg.README.gz: New file (required to comply with JPG
425	licensing restriction).
426
427	* backend/snapscan.c (sane_snapscan_start): Use INT_MAX instead
428	of non-portable MAXINT.
429	Don't include Linux-specific <values.h>.
430
4311998-11-26  David Mosberger-Tang  <David.Mosberger@acm.org>
432
433	* doc/sane.tex (subsection{Device Descriptor Type}): Consistently
434	use "Noname" (instead of None/Noname) to indicate the absence of
435	a vendor.
436	(subsection{sane_strstatus}): Define how long the returned string
437	is valid.
438	(section{Code Flow}): Clarify that sane_cancel() has to be called
439	even if read returns SANE_STATUS_EOF.
440
4411998-11-22  David Mosberger-Tang  <David.Mosberger@acm.org>
442
443	* backend/ricoh.h (_4btol): Replace "__inline" by "inline".
444
445	* backend/abaton.c (sane_control_option): Assign word values to
446	s->val[foo].w not s->val[foo].  The latter compiles on gcc-2.7.2.3
447	without warning but causes an error on other compilers (e.g.,
448	egcs).
449