brother_mfp: first draft prototype

Supports only grey/dithered_gray and text on MFC-4320DW.
Supports only USB.
brother_mfp_backend
Ralph Little 2022-08-31 19:45:58 -07:00
rodzic 8096f84a6f
commit a9853d1bb8
4 zmienionych plików z 2239 dodań i 4 usunięć

Wyświetl plik

@ -66,7 +66,7 @@ EXTRA_DIST += saned.conf.in
# Backends are not required to have a config file. Any backend
# that wants to install a config file should list it here.
BACKEND_CONFS= abaton.conf agfafocus.conf apple.conf artec.conf \
artec_eplus48u.conf avision.conf bh.conf \
artec_eplus48u.conf avision.conf bh.conf brother_mfp.conf \
canon630u.conf canon.conf canon_dr.conf \
canon_lide70.conf \
canon_pp.conf cardscan.conf coolscan2.conf coolscan3.conf \
@ -160,7 +160,7 @@ clean-local:
# example of working around that issue.
be_convenience_libs = libabaton.la libagfafocus.la \
libapple.la libartec.la libartec_eplus48u.la \
libas6e.la libavision.la libbh.la \
libas6e.la libavision.la libbh.la libbrother_mfp.la \
libcanon.la libcanon630u.la libcanon_dr.la \
libcanon_lide70.la \
libcanon_pp.la libcardscan.la libcoolscan.la \
@ -194,7 +194,7 @@ be_convenience_libs = libabaton.la libagfafocus.la \
# Format is libsane-${backend}.la.
be_dlopen_libs = libsane-abaton.la libsane-agfafocus.la \
libsane-apple.la libsane-artec.la libsane-artec_eplus48u.la \
libsane-as6e.la libsane-avision.la libsane-bh.la \
libsane-as6e.la libsane-avision.la libsane-bh.la libsane-brother_mfp.la \
libsane-canon.la libsane-canon630u.la libsane-canon_dr.la \
libsane-canon_lide70.la \
libsane-canon_pp.la libsane-cardscan.la libsane-coolscan.la \
@ -381,6 +381,27 @@ libsane_bh_la_LIBADD = $(COMMON_LIBS) libbh.la \
$(SCSI_LIBS) $(RESMGR_LIBS)
EXTRA_DIST += bh.conf.in
libbrother_mfp_la_SOURCES = brother_mfp.c #brother_mfp.h
libbrother_mfp_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=brother_mfp
nodist_libsane_brother_mfp_la_SOURCES = brother_mfp-s.c
libsane_brother_mfp_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=brother_mfp
libsane_brother_mfp_la_LDFLAGS = $(DIST_SANELIBS_LDFLAGS)
libsane_brother_mfp_la_LIBADD = $(COMMON_LIBS) libbrother_mfp.la \
../sanei/sanei_init_debug.lo \
../sanei/sanei_constrain_value.lo \
../sanei/sanei_usb.lo \
../sanei/sanei_config.lo \
sane_strstatus.lo \
$(USB_LIBS)
EXTRA_DIST += brother_mfp.conf.in
libcanon_la_SOURCES = canon.c canon.h
libcanon_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=canon

2206
backend/brother_mfp.c 100644

Plik diff jest za duży Load Diff

Wyświetl plik

@ -0,0 +1,8 @@
# Options for the brother_mfp backend
# Brother MFC-J4320DW
usb 0x04f9 0x033a
# device list for non-linux-systems (enable if autodetect fails):
#/dev/scanner
#/dev/usb/scanner0

Wyświetl plik

@ -667,7 +667,7 @@ AC_ARG_ENABLE(local-backends,
[turn off compilation of all backends but net]))
ALL_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e \
avision bh canon canon630u canon_dr canon_lide70 canon_pp cardscan \
avision bh brother_mfp canon canon630u canon_dr canon_lide70 canon_pp cardscan \
coolscan coolscan2 coolscan3 dc25 dc210 dc240 \
dell1600n_net dmc epjitsu epson epson2 epsonds escl fujitsu \
genesys gphoto2 gt68xx hp hp3500 hp3900 hp4200 hp5400 \