/Users/ericb/Desktop/NATIVEPRINTDLG01/extensions/source/scanner/sane.cxx File Reference

#include "precompiled_extensions.hxx"
#include <cstdarg>
#include <math.h>
#include <osl/file.h>
#include <tools/stream.hxx>
#include <sane.hxx>
#include <dlfcn.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sal/config.h>

Include dependency graph for sane.cxx:

Go to the source code of this file.

Defines

#define dump_state(a, b, c, d)   ;
#define FAIL_SHUTDOWN_STATE(x, y, z)
#define FAIL_STATE(x, y, z)
#define DUMP_STATE(x, y)
#define CHECK_STATE(x, y)
#define BYTE_BUFFER_SIZE   32768

Enumerations

enum  FrameStyleType { FrameStyle_BW, FrameStyle_Gray, FrameStyle_RGB, FrameStyle_Separated }

Functions

void dbg_msg (const char *pString,...)
static UINT8 _ReadValue (FILE *fp, int depth)

Variables

static BOOL bSaneSymbolLoadFailed = FALSE
static const char * ppUnits []


Define Documentation

#define BYTE_BUFFER_SIZE   32768

Definition at line 537 of file sane.cxx.

Referenced by Sane::Start().

#define CHECK_STATE ( x,
 ) 

Value:

if( x != SANE_STATUS_GOOD )                                                             \
        {                                                                                                               \
                dump_state( "%s returned error %d (%s)\n",                      \
                                 y, x, p_strstatus( x ) );                                      \
        }                                                                                                               \
        else

Definition at line 92 of file sane.cxx.

#define DUMP_STATE ( x,
 ) 

Value:

if( x != SANE_STATUS_GOOD )                                                             \
        {                                                                                                               \
                dump_state( "%s returned error %d (%s)\n",                      \
                                 y, x, p_strstatus( x ) );                                      \
        }

Definition at line 85 of file sane.cxx.

Referenced by Sane::ControlOption(), and Sane::Start().

#define dump_state ( a,
b,
c,
 )     ;

Definition at line 54 of file sane.cxx.

#define FAIL_SHUTDOWN_STATE ( x,
y,
 ) 

Value:

if( x != SANE_STATUS_GOOD )                                                             \
        {                                                                                                               \
                dump_state( "%s returned error %d (%s)\n",                      \
                                 y, x, p_strstatus( x ) );                                      \
                DeInit();                                                                                       \
                return z;                                                                                       \
        }

Definition at line 68 of file sane.cxx.

Referenced by Sane::Init().

#define FAIL_STATE ( x,
y,
 ) 

Value:

if( x != SANE_STATUS_GOOD )                                                             \
        {                                                                                                               \
                dump_state( "%s returned error %d (%s)\n",                      \
                                 y, x, p_strstatus( x ) );                                      \
                return z;                                                                                       \
        }

Definition at line 77 of file sane.cxx.

Referenced by Sane::Open().


Enumeration Type Documentation

enum FrameStyleType

Enumerator:
FrameStyle_BW 
FrameStyle_Gray 
FrameStyle_RGB 
FrameStyle_Separated 

Definition at line 533 of file sane.cxx.


Function Documentation

static UINT8 _ReadValue ( FILE *  fp,
int  depth 
) [inline, static]

Definition at line 539 of file sane.cxx.

Referenced by Sane::Start().

void dbg_msg ( const char *  pString,
  ... 
) [inline]

Definition at line 56 of file sane.cxx.

Referenced by Sane::CheckConsistency(), Sane::ControlOption(), and Sane::GetRange().


Variable Documentation

BOOL bSaneSymbolLoadFailed = FALSE [static]

Definition at line 128 of file sane.cxx.

Referenced by Sane::Init(), and Sane::LoadSymbol().

const char* ppUnits[] [static]

Initial value:

 {
        "",
        "[Pixel]",
        "[Bit]",
        "[mm]",
        "[DPI]",
        "[%]",
        "[usec]"
}

Definition at line 989 of file sane.cxx.


Generated on Thu Feb 28 17:53:28 2008 for AquaScanner by  doxygen 1.5.1