pcb 4.1.1
An interactive printed circuit board layout editor.

lpr.c File Reference

#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "global.h"
#include "data.h"
#include "misc.h"
#include "hid.h"
#include "../hidint.h"
#include "../ps/ps.h"
#include "hid/common/hidnogui.h"
#include "hid/common/hidinit.h"
Include dependency graph for lpr.c:

Go to the source code of this file.

Defines

#define CRASH

Functions

static HID_Attributelpr_get_export_options (int *n)
static void lpr_do_export (HID_Attr_Val *options)
static void lpr_parse_arguments (int *argc, char ***argv)
static void lpr_calibrate (double xval, double yval)
void hid_lpr_init ()

Variables

static HID_Attribute base_lpr_options []
static HID_Attributelpr_options = 0
static int num_lpr_options = 0
static HID_Attr_Vallpr_values
static HID lpr_hid

Define Documentation

#define CRASH
Value:
fprintf(stderr, \
    _("HID error: pcb called unimplemented PS function %s.\n"), \
    __FUNCTION__); abort()

Definition at line 25 of file lpr.c.


Function Documentation

static void lpr_calibrate ( double  xval,
double  yval 
) [static]

Definition at line 119 of file lpr.c.

References ps_calibrate_1().

Referenced by hid_lpr_init().

Here is the call graph for this function:

static void lpr_do_export ( HID_Attr_Val options) [static]

Definition at line 81 of file lpr.c.

References _, f, filename, lpr_get_export_options(), lpr_values, num_lpr_options, ps_hid_export_to_file(), and HID_Attr_Val::str_value.

Referenced by hid_lpr_init().

Here is the call graph for this function:

static HID_Attribute* lpr_get_export_options ( int *  n) [static]
static void lpr_parse_arguments ( int *  argc,
char ***  argv 
) [static]

Definition at line 111 of file lpr.c.

References hid_parse_command_line(), hid_register_attributes(), lpr_get_export_options(), and num_lpr_options.

Referenced by hid_lpr_init().

Here is the call graph for this function:


Variable Documentation

Initial value:
 {


  {N_("lprcommand"), N_("Command to use for printing"),
   HID_String, 0, 0, {0, 0, 0}, 0, 0},
#define HA_lprcommand 0
}

Definition at line 29 of file lpr.c.

HID lpr_hid [static]

Definition at line 124 of file lpr.c.

HID_Attribute* lpr_options = 0 [static]

Definition at line 48 of file lpr.c.

Referenced by lpr_get_export_options().

Definition at line 50 of file lpr.c.

Referenced by lpr_do_export().

int num_lpr_options = 0 [static]

Definition at line 49 of file lpr.c.

Referenced by lpr_do_export(), lpr_get_export_options(), and lpr_parse_arguments().