kopia lustrzana https://gitlab.com/sane-project/backends
Added generic parallel-port function lib.
rodzic
049fb921b9
commit
161a762cb5
|
@ -43,7 +43,7 @@ SANE_INCLUDES = $(addprefix $(top_srcdir)/include/sane/,$(INSTALLED_INCLUDES)) \
|
|||
sanei_codec_ascii.h sanei_codec_bin.h sanei_config.h \
|
||||
sanei_debug.h sanei_lm983x.h sanei_net.h sanei_pa4s2.h \
|
||||
sanei_pio.h sanei_pv8630.h sanei_scsi.h sanei_thread.h \
|
||||
sanei_usb.h sanei_wire.h)
|
||||
sanei_usb.h sanei_wire.h sanei_pp.h)
|
||||
|
||||
OTHER_INCLUDES = $(addprefix $(top_srcdir)/include/,Makefile.in getopt.h \
|
||||
lalloca.h lassert.h md5.h )
|
||||
|
|
|
@ -0,0 +1,80 @@
|
|||
/* sane - Scanner Access Now Easy.
|
||||
Copyright (C) 2003 Gerhard Jaeger <gerhard@gjaeger.de>
|
||||
This file is part of the SANE package.
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||
MA 02111-1307, USA.
|
||||
|
||||
As a special exception, the authors of SANE give permission for
|
||||
additional uses of the libraries contained in this release of SANE.
|
||||
|
||||
The exception is that, if you link a SANE library with other files
|
||||
to produce an executable, this does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public
|
||||
License. Your use of that executable is in no way restricted on
|
||||
account of linking the SANE library code into it.
|
||||
|
||||
This exception does not, however, invalidate any other reasons why
|
||||
the executable file might be covered by the GNU General Public
|
||||
License.
|
||||
|
||||
If you submit changes to SANE to the maintainers to be included in
|
||||
a subsequent release, you agree by submitting the changes that
|
||||
those changes may be distributed with this exception intact.
|
||||
|
||||
If you write modifications of your own for SANE, it is your choice
|
||||
whether to permit this exception to apply to your modifications.
|
||||
If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
/** @file sanei_pp.h
|
||||
* This file implements an interface for accessing the parallel-port
|
||||
*
|
||||
* @sa sanei_pp.h
|
||||
*/
|
||||
#ifndef sanei_pp_h
|
||||
#define sanei_pp_h
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sane/sane.h>
|
||||
|
||||
/**
|
||||
*/
|
||||
extern SANE_Status sanei_pp_open( const char *dev, int *fd );
|
||||
|
||||
/**
|
||||
*/
|
||||
extern void sanei_pp_close( int fd );
|
||||
|
||||
/**
|
||||
*/
|
||||
extern SANE_Status sanei_pp_claim( int fd );
|
||||
|
||||
/**
|
||||
*/
|
||||
extern SANE_Status sanei_pp_release( int fd );
|
||||
|
||||
/**
|
||||
*/
|
||||
extern SANE_Status sanei_pp_outb_data( int fd, SANE_Byte val );
|
||||
extern SANE_Status sanei_pp_outb_ctrl( int fd, SANE_Byte val );
|
||||
extern SANE_Status sanei_pp_outb_addr( int fd, SANE_Byte val );
|
||||
|
||||
extern SANE_Byte sanei_pp_inb_data( int fd );
|
||||
extern SANE_Byte sanei_pp_inb_stat( int fd );
|
||||
extern SANE_Byte sanei_pp_inb_ctrl( int fd );
|
||||
extern SANE_Byte sanei_pp_inb_epp ( int fd );
|
||||
|
||||
#endif
|
|
@ -50,14 +50,14 @@ DISTCLEAN_FILES = @DISTCLEAN_FILES@
|
|||
LIBSANEI_OBJS = sanei_ab306.o sanei_constrain_value.o sanei_init_debug.o \
|
||||
sanei_net.o sanei_wire.o sanei_codec_ascii.o sanei_codec_bin.o \
|
||||
sanei_scsi.o sanei_config.o sanei_config2.o sanei_pio.o sanei_pa4s2.o \
|
||||
sanei_auth.o sanei_usb.o sanei_thread.o sanei_pv8630.o \
|
||||
sanei_auth.o sanei_usb.o sanei_thread.o sanei_pv8630.o sanei_pp.o \
|
||||
sanei_lm983x.o @SANEI_JPEG@
|
||||
|
||||
LIBSANEI_LTOBJS = sanei_ab306.lo sanei_constrain_value.lo sanei_init_debug.lo \
|
||||
sanei_net.lo sanei_wire.lo sanei_codec_ascii.lo sanei_codec_bin.lo \
|
||||
sanei_scsi.lo sanei_config.lo sanei_config2.lo sanei_pio.lo \
|
||||
sanei_pa4s2.lo sanei_auth.lo sanei_usb.lo sanei_thread.lo \
|
||||
sanei_pv8630.lo sanei_lm983x.lo @SANEI_JPEG_LO@
|
||||
sanei_pv8630.lo sanei_lm983x.lo sanei_pp.lo @SANEI_JPEG_LO@
|
||||
|
||||
TARGETS = libsanei.a $(LIBSANEI_LTOBJS)
|
||||
TESTPROGRAMS = test_wire
|
||||
|
@ -67,7 +67,7 @@ DISTFILES = Makefile.in linux_sg3_err.h os2_srb.h sanei_DomainOS.c \
|
|||
sanei_codec_bin.c sanei_config.c sanei_config2.c \
|
||||
sanei_constrain_value.c sanei_init_debug.c sanei_jpeg.c \
|
||||
sanei_net.c sanei_pa4s2.c sanei_pio.c sanei_pv8630.c sanei_lm983x.c \
|
||||
sanei_scsi.c sanei_thread.c sanei_usb.c \
|
||||
sanei_scsi.c sanei_thread.c sanei_usb.c sanei_pp.c \
|
||||
sanei_wire.c test_wire.c
|
||||
|
||||
.PHONY: all check clean depend dist distclean install uninstall
|
||||
|
|
Plik diff jest za duży
Load Diff
Ładowanie…
Reference in New Issue