PLplot  5.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
plserver.h
Go to the documentation of this file.
1 // Maurice LeBrun
2 // 6-May-93
3 //
4 // Declarations for plserver and associated files.
5 //
6 
7 #ifndef __PLSERVER_H__
8 #define __PLSERVER_H__
9 
10 #include "plDevs.h"
11 #include "pltkd.h"
12 #include "pltcl.h"
13 
14 // State info for the rendering code
15 
16 typedef struct
17 {
18  char *client; // Name of client main window
19  PDFstrm *pdfs; // PDF stream descriptor
20  PLiodev *iodev; // I/O info
21  int nbytes; // data bytes waiting to be read
22  int at_bop, at_eop; // bop/eop condition flags
23 
24  short xmin, xmax, ymin, ymax; // Data minima and maxima
25  PLFLT xold, yold; // Endpoints of last line plotted
26 } PLRDev;
27 
28 // External function prototypes.
29 // Note that tcl command functions are added during Pltk_Init and don't
30 // need to be called directly by the user
31 
32 // plframe.c
33 // Invoked to process the "plframe" Tcl command.
34 
35 int
36 plFrameCmd( ClientData clientData, Tcl_Interp *interp,
37  int argc, const char **argv );
38 int
39 plPlotterCmd( ClientData clientData, Tcl_Interp *interp,
40  int argc, const char **argv );
41 
42 // plr.c
43 // Set default state parameters before anyone else has a chance to.
44 
46 plr_start( PLRDev *plr );
47 
48 // Read & process commands until "nbyte_max" bytes have been read.
49 
51 plr_process( PLRDev *plr );
52 
53 #endif // __PLSERVER_H__