FreeBASIC  0.91.0
fb_printer.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DEV_LPT_PROTOCOL
 
struct  DEV_LPT_INFO
 

Functions

int fb_DevLptParseProtocol (DEV_LPT_PROTOCOL **lpt_proto_out, const char *proto_raw, size_t proto_raw_len, int substprn)
 Tests for the right file name for LPT access. More...
 
int fb_DevLptTestProtocol (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevLptOpen (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevLptWrite (FB_FILE *handle, const void *value, size_t valuelen)
 
int fb_DevLptWriteWstr (FB_FILE *handle, const FB_WCHAR *value, size_t valuelen)
 
int fb_DevLptClose (FB_FILE *handle)
 
int fb_DevPrinterSetWidth (const char *pszDevice, int width, int default_width)
 
int fb_DevPrinterGetOffset (const char *pszDevice)
 
int fb_PrinterOpen (DEV_LPT_INFO *devInfo, int iPort, const char *pszDevice)
 
int fb_PrinterWrite (DEV_LPT_INFO *devInfo, const void *data, size_t length)
 
int fb_PrinterWriteWstr (DEV_LPT_INFO *devInfo, const FB_WCHAR *data, size_t length)
 
int fb_PrinterClose (DEV_LPT_INFO *devInfo)
 

Function Documentation

int fb_DevLptClose ( FB_FILE handle)

Definition at line 5 of file dev_lpt_close.c.

Here is the call graph for this function:

int fb_DevLptOpen ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 64 of file dev_lpt.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevLptParseProtocol ( DEV_LPT_PROTOCOL **  lpt_proto_out,
const char *  proto_raw,
size_t  proto_raw_len,
int  subst_prn 
)

Tests for the right file name for LPT access.

Allowed file names are:

  • PRN:
  • LPT:
  • LPTx: with x>=1
  • LPT:printer_name,EMU=?,TITLE=?,OPT=?, ...

Definition at line 17 of file dev_lpt_test.c.

Here is the caller graph for this function:

int fb_DevLptTestProtocol ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 144 of file dev_lpt_test.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevLptWrite ( FB_FILE handle,
const void *  value,
size_t  valuelen 
)

Definition at line 5 of file dev_lpt_write.c.

Here is the call graph for this function:

int fb_DevLptWriteWstr ( FB_FILE handle,
const FB_WCHAR value,
size_t  valuelen 
)

Definition at line 5 of file dev_lpt_write_wstr.c.

Here is the call graph for this function:

int fb_DevPrinterGetOffset ( const char *  pszDevice)

Definition at line 167 of file dev_lpt.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevPrinterSetWidth ( const char *  pszDevice,
int  width,
int  default_width 
)

Definition at line 135 of file dev_lpt.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_PrinterClose ( DEV_LPT_INFO devInfo)

Definition at line 57 of file io_printer.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_PrinterOpen ( DEV_LPT_INFO devInfo,
int  iPort,
const char *  pszDevice 
)

Definition at line 7 of file io_printer.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_PrinterWrite ( DEV_LPT_INFO devInfo,
const void *  data,
size_t  length 
)

Definition at line 34 of file io_printer.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_PrinterWriteWstr ( DEV_LPT_INFO devInfo,
const FB_WCHAR data,
size_t  length 
)

Definition at line 43 of file io_printer.c.

Here is the call graph for this function:

Here is the caller graph for this function: