kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Add file with class forward declarations
rodzic
f5410b7738
commit
a7ca16a415
|
@ -493,6 +493,7 @@ libgenesys_la_SOURCES = genesys/genesys.cpp genesys/genesys.h \
|
|||
genesys/device.h genesys/device.cpp \
|
||||
genesys/enums.h \
|
||||
genesys/error.h genesys/error.cpp \
|
||||
genesys/fwd.h \
|
||||
genesys/gl646.cpp genesys/gl646.h genesys/gl646_registers.h \
|
||||
genesys/gl124.cpp genesys/gl124.h genesys/gl124_registers.h \
|
||||
genesys/gl841.cpp genesys/gl841.h genesys/gl841_registers.h \
|
||||
|
|
|
@ -45,11 +45,11 @@
|
|||
#define BACKEND_GENESYS_COMMAND_SET_H
|
||||
|
||||
#include "device.h"
|
||||
#include "fwd.h"
|
||||
#include <cstdint>
|
||||
|
||||
namespace genesys {
|
||||
|
||||
class Genesys_Device;
|
||||
|
||||
/** Scanner command set description.
|
||||
|
||||
|
|
|
@ -0,0 +1,129 @@
|
|||
/* sane - Scanner Access Now Easy.
|
||||
|
||||
Copyright (C) 2019 Povilas Kanapickas <povilas@radix.lt>
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
#ifndef BACKEND_GENESYS_FWD_H
|
||||
#define BACKEND_GENESYS_FWD_H
|
||||
|
||||
namespace genesys {
|
||||
|
||||
// buffer.h
|
||||
struct Genesys_Buffer;
|
||||
|
||||
// calibration.h
|
||||
struct Genesys_Calibration_Cache;
|
||||
|
||||
// command_set.h
|
||||
class CommandSet;
|
||||
|
||||
// device.h
|
||||
class FixedFloat;
|
||||
struct Genesys_Gpo;
|
||||
struct MethodResolutions;
|
||||
struct Genesys_Model;
|
||||
struct Genesys_Device;
|
||||
|
||||
// error.h
|
||||
class DebugMessageHelper;
|
||||
class SaneException;
|
||||
|
||||
// genesys.h
|
||||
class GenesysButton;
|
||||
struct Genesys_Scanner;
|
||||
|
||||
// image.h
|
||||
class Image;
|
||||
|
||||
// image_buffer.h
|
||||
class ImageBuffer;
|
||||
class FakeBufferModel;
|
||||
class ImageBufferGenesysUsb;
|
||||
|
||||
// image_pipeline.h
|
||||
class ImagePipelineNode;
|
||||
// ImagePipelineNode* skipped
|
||||
class ImagePipelineStack;
|
||||
|
||||
// image_pixel.h
|
||||
struct Pixel;
|
||||
struct RawPixel;
|
||||
|
||||
// low.h
|
||||
struct Genesys_USB_Device_Entry;
|
||||
struct Motor_Profile;
|
||||
|
||||
// motor.h
|
||||
struct Genesys_Motor;
|
||||
struct Genesys_Motor_Slope;
|
||||
|
||||
// register.h
|
||||
class Genesys_Register_Set;
|
||||
struct GenesysRegister;
|
||||
struct GenesysRegisterSetState;
|
||||
|
||||
// row_buffer.h
|
||||
class RowBuffer;
|
||||
|
||||
// sanei.h
|
||||
class UsbDevice;
|
||||
|
||||
// scanner_interface.h
|
||||
class ScannerInterface;
|
||||
class ScannerInterfaceUsb;
|
||||
class TestScannerInterface;
|
||||
|
||||
// sensor.h
|
||||
class ResolutionFilter;
|
||||
struct GenesysFrontendLayout;
|
||||
struct Genesys_Frontend;
|
||||
struct SensorExposure;
|
||||
struct SensorProfile;
|
||||
struct Genesys_Sensor;
|
||||
|
||||
// settings.h
|
||||
struct Genesys_Settings;
|
||||
struct SetupParams;
|
||||
struct ScanSession;
|
||||
|
||||
} // namespace genesys
|
||||
|
||||
#endif
|
|
@ -84,6 +84,7 @@
|
|||
#include "device.h"
|
||||
#include "enums.h"
|
||||
#include "error.h"
|
||||
#include "fwd.h"
|
||||
#include "sanei.h"
|
||||
#include "sensor.h"
|
||||
#include "serialize.h"
|
||||
|
@ -209,10 +210,6 @@
|
|||
|
||||
namespace genesys {
|
||||
|
||||
/* Forward typedefs */
|
||||
struct Genesys_Scanner;
|
||||
typedef struct Genesys_Calibration_Cache Genesys_Calibration_Cache;
|
||||
|
||||
struct Genesys_USB_Device_Entry {
|
||||
|
||||
Genesys_USB_Device_Entry(unsigned v, unsigned p, const Genesys_Model& m) :
|
||||
|
|
Ładowanie…
Reference in New Issue