|
plptools
|
#include "config.h"#include <cli_utils.h>#include <tcpsocket.h>#include <wprt.h>#include <psibitmap.h>#include <iostream>#include <string>#include <stdlib.h>#include <stdarg.h>#include <stdio.h>#include <syslog.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include "ignore-value.h"#include <getopt.h>
Go to the source code of this file.
Classes | |
| struct | fontmap_entry_s |
| struct | const_fontmap_entry_s |
Macros | |
| #define | _GNU_SOURCE |
| #define | TEMPLATE "plpprint_XXXXXX" |
| #define | PRINTCMD "lpr -Ppsion" |
| #define | SPOOLDIR "/var/spool/plpprint" |
| #define | PSDICT "/prolog.ps" |
| #define | FALLBACK_FONT "Courier" |
Typedefs | |
| typedef struct fontmap_entry_s | fontmap_entry |
| typedef struct const_fontmap_entry_s | const_fontmap_entry |
Functions | |
| static void | _log (int priority, const char *fmt, va_list ap) |
| void | debuglog (const char *fmt,...) |
| void | errorlog (const char *fmt,...) |
| void | infolog (const char *fmt,...) |
| static void | init_fontmap () |
| static void | ps_setfont (FILE *f, const char *fname, bool bold, bool italic, unsigned long fsize) |
| static void | ps_escape (string &text) |
| static void | ps_bitmap (FILE *f, unsigned long llx, unsigned long lly, unsigned long urx, unsigned long ury, const char *buf) |
| static void | convertPage (FILE *f, int page, bool last, bufferStore buf) |
| static const void | service_loop () |
| static void | help () |
| static void | usage () |
| int | main (int argc, char **argv) |
Variables | |
| const char * | spooldir = SPOOLDIR |
| const char * | printcmd = PRINTCMD |
| wprt * | wPrt |
| bool | serviceLoop |
| bool | debug = false |
| int | verbose = 0 |
| static int | minx |
| static int | maxx |
| static int | miny |
| static int | maxy |
| string | usedfonts |
| static const_fontmap_entry | default_fontmap [] |
| static fontmap_entry * | fontmap = NULL |
| static unsigned char | fakePage [15] |
| static struct option | opts [] |
| #define _GNU_SOURCE |
Definition at line 42 of file plpprintd.cc.
| #define FALLBACK_FONT "Courier" |
Definition at line 118 of file plpprintd.cc.
| #define PRINTCMD "lpr -Ppsion" |
Definition at line 47 of file plpprintd.cc.
| #define PSDICT "/prolog.ps" |
Definition at line 49 of file plpprintd.cc.
| #define SPOOLDIR "/var/spool/plpprint" |
Definition at line 48 of file plpprintd.cc.
| #define TEMPLATE "plpprint_XXXXXX" |
Definition at line 46 of file plpprintd.cc.
| typedef struct const_fontmap_entry_s const_fontmap_entry |
| typedef struct fontmap_entry_s fontmap_entry |
|
static |
Definition at line 61 of file plpprintd.cc.
|
static |
Definition at line 285 of file plpprintd.cc.
| void debuglog | ( | const char * | fmt, |
| ... | |||
| ) |
Definition at line 74 of file plpprintd.cc.
| void errorlog | ( | const char * | fmt, |
| ... | |||
| ) |
Definition at line 83 of file plpprintd.cc.
|
static |
Definition at line 889 of file plpprintd.cc.
| void infolog | ( | const char * | fmt, |
| ... | |||
| ) |
Definition at line 92 of file plpprintd.cc.
|
static |
Definition at line 144 of file plpprintd.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 922 of file plpprintd.cc.
|
static |
Definition at line 267 of file plpprintd.cc.
|
static |
Definition at line 257 of file plpprintd.cc.
|
static |
Definition at line 228 of file plpprintd.cc.
|
static |
Definition at line 767 of file plpprintd.cc.
|
static |
Definition at line 905 of file plpprintd.cc.
| bool debug = false |
Definition at line 57 of file plpprintd.cc.
|
static |
Definition at line 120 of file plpprintd.cc.
|
static |
Definition at line 760 of file plpprintd.cc.
|
static |
Definition at line 141 of file plpprintd.cc.
|
static |
Definition at line 100 of file plpprintd.cc.
|
static |
Definition at line 100 of file plpprintd.cc.
|
static |
Definition at line 100 of file plpprintd.cc.
|
static |
Definition at line 100 of file plpprintd.cc.
|
static |
Definition at line 910 of file plpprintd.cc.
| const char* printcmd = PRINTCMD |
Definition at line 54 of file plpprintd.cc.
| bool serviceLoop |
Definition at line 56 of file plpprintd.cc.
| const char* spooldir = SPOOLDIR |
Definition at line 53 of file plpprintd.cc.
| string usedfonts |
Definition at line 101 of file plpprintd.cc.
| int verbose = 0 |
Definition at line 58 of file plpprintd.cc.
| wprt* wPrt |
Definition at line 55 of file plpprintd.cc.