FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
fb_printer.h
Go to the documentation of this file.
1
typedef
struct
{
2
char
*
proto
;
3
int
iPort
;
4
char
*
name
;
5
char
*
title
;
6
char
*
emu
;
7
char
raw
[];
8
}
DEV_LPT_PROTOCOL
;
9
10
typedef
struct
{
11
void
*
driver_opaque
;
/* this member must be first */
12
char
*
pszDevice
;
13
int
iPort
;
14
size_t
uiRefCount
;
15
}
DEV_LPT_INFO
;
16
17
int
fb_DevLptParseProtocol
(
DEV_LPT_PROTOCOL
** lpt_proto_out,
const
char
* proto_raw,
size_t
proto_raw_len,
int
substprn );
18
int
fb_DevLptTestProtocol
(
FB_FILE
*
handle
,
const
char
*
filename
,
size_t
filename_len );
19
20
int
fb_DevLptOpen
(
FB_FILE
*
handle
,
const
char
*
filename
,
size_t
filename_len );
21
int
fb_DevLptWrite
(
FB_FILE
*
handle
,
const
void
* value,
size_t
valuelen );
22
int
fb_DevLptWriteWstr
(
FB_FILE
*
handle
,
const
FB_WCHAR
* value,
size_t
valuelen );
23
int
fb_DevLptClose
(
FB_FILE
*
handle
);
24
25
int
fb_DevPrinterSetWidth
(
const
char
*pszDevice,
int
width,
int
default_width );
26
int
fb_DevPrinterGetOffset
(
const
char
*pszDevice );
27
28
int
fb_PrinterOpen
(
DEV_LPT_INFO
*devInfo,
int
iPort,
const
char
*pszDevice );
29
int
fb_PrinterWrite
(
DEV_LPT_INFO
*devInfo,
const
void
*data,
size_t
length );
30
int
fb_PrinterWriteWstr
(
DEV_LPT_INFO
*devInfo,
const
FB_WCHAR
*data,
size_t
length );
31
int
fb_PrinterClose
(
DEV_LPT_INFO
*devInfo );
rtlib
fb_printer.h
Generated on Thu Jan 23 2014 19:40:11 for FreeBASIC by
1.8.4