summaryrefslogtreecommitdiff
path: root/lib/epson-net-lpr.h
diff options
context:
space:
mode:
authorTaeksu Shin <taeksu.shin@samsung.com>2012-08-21 18:39:39 +0900
committerTaeksu Shin <taeksu.shin@samsung.com>2012-08-21 18:39:39 +0900
commit2742d6ca5da37180225fab6ef8bf55467956d25c (patch)
treec850c3679b282551927505d3162e6c60118d0609 /lib/epson-net-lpr.h
parentb5dc236b1575fe5846d01881893b3aaef43ecbcc (diff)
downloadepson-inkjet-printer-escpr-master.tar.gz
epson-inkjet-printer-escpr-master.tar.bz2
epson-inkjet-printer-escpr-master.zip
Diffstat (limited to 'lib/epson-net-lpr.h')
-rw-r--r--lib/epson-net-lpr.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/lib/epson-net-lpr.h b/lib/epson-net-lpr.h
new file mode 100644
index 0000000..6c19c8d
--- /dev/null
+++ b/lib/epson-net-lpr.h
@@ -0,0 +1,75 @@
+/*_______________________________ epson-net-lpr.h ________________________________*/
+
+/* 1 2 3 4 5 6 7 8 */
+/*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/
+/*******************************************|********************************************/
+/*
+* Copyright (c) 2009 Seiko Epson Corporation All rights reserved.
+*
+* Copyright protection claimed includes all forms and matters of
+* copyrightable material and information now allowed by statutory or judicial
+* law or hereinafter granted, including without limitation, material generated
+* from the software programs which are displayed on the screen such as icons,
+* screen display looks, etc.
+*
+*/
+/*******************************************|********************************************/
+/* */
+/* Epson LPR Protocol Definitions */
+/* */
+/*******************************************|********************************************/
+
+#ifndef __EPSON_NET_LPR_H__
+#define __EPSON_NET_LPR_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*------------------------------------ Includes -------------------------------------*/
+/*******************************************|********************************************/
+#include "epson-typedefs.h"
+
+/*-------------------------- Public Function Declarations ---------------------------*/
+/*******************************************|********************************************/
+/* Initialize */
+extern void lprSetupSTFunctions (const EPS_PRINTER_INN* );
+extern EPS_UINT16 lprGetDefautiPort (void );
+
+/* Discovery message related Functions */
+extern EPS_ERR_CODE lprFindStart (EPS_SOCKET*, const EPS_INT8*, EPS_BOOL );
+extern EPS_ERR_CODE lprFind (EPS_SOCKET, EPS_PRINTER_INN** );
+extern EPS_ERR_CODE lprFindEnd (EPS_SOCKET );
+extern EPS_ERR_CODE lprProbePrinterByID (EPS_INT8*, EPS_UINT32, EPS_PRINTER_INN** );
+
+/* Job Functions */
+extern EPS_ERR_CODE lprStartJob (void );
+extern EPS_ERR_CODE lprEndJob (void );
+extern EPS_ERR_CODE lprRestartJob (void );
+extern EPS_ERR_CODE lprWritePrintData (const EPS_UINT8*, EPS_UINT32, EPS_UINT32* );
+extern EPS_ERR_CODE lprResetPrinter (void );
+extern EPS_ERR_CODE lprStartPage (void );
+extern EPS_ERR_CODE lprEndPage (void );
+extern EPS_ERR_CODE lprMechCommand (const EPS_PRINTER_INN*, EPS_INT32 );
+
+/* Printer status Functions */
+extern EPS_ERR_CODE lprGetStatus (EPS_STATUS_INFO*, EPS_BOOL*, EPS_BOOL* );
+extern EPS_ERR_CODE lprGetInkInfo (EPS_STATUS_INFO* );
+extern EPS_ERR_CODE lprGetJobStatus (EPS_STATUS_INFO* );
+extern EPS_ERR_CODE lprGetPMString (const EPS_PRINTER_INN*, EPS_INT32,
+ EPS_UINT8*, EPS_INT32* );
+
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* def __EPSON_NET_LPR_H__ */
+
+/*_______________________________ epson-net-lpr.h ________________________________*/
+
+/*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/
+/* 1 2 3 4 5 6 7 8 */
+/*******************************************|********************************************/
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+/***** End of File *** End of File *** End of File *** End of File *** End of File ******/
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/