File: plserver.h

package info (click to toggle)
plplot 5.15.0%2Bdfsg2-20
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 31,496 kB
  • sloc: ansic: 79,703; xml: 28,583; cpp: 20,033; ada: 19,456; tcl: 12,081; f90: 11,431; ml: 7,276; java: 6,863; python: 6,792; sh: 3,274; perl: 829; makefile: 83; lisp: 75; sed: 34; fortran: 6
file content (53 lines) | stat: -rw-r--r-- 1,421 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Maurice LeBrun
// 6-May-93
//
// Declarations for plserver and associated files.
//

#ifndef __PLSERVER_H__
#define __PLSERVER_H__

#include "plDevs.h"
#include "pltkd.h"
#include "pltcl.h"

// State info for the rendering code

typedef struct
{
    char    *client;                    // Name of client main window
    PDFstrm *pdfs;                      // PDF stream descriptor
    PLiodev *iodev;                     // I/O info
    int     nbytes;                     // data bytes waiting to be read
    int     at_bop, at_eop;             // bop/eop condition flags

    short   xmin, xmax, ymin, ymax;     // Data minima and maxima
    PLFLT   xold, yold;                 // Endpoints of last line plotted
} PLRDev;

// External function prototypes.
// Note that tcl command functions are added during Pltk_Init and don't
// need to be called directly by the user

// plframe.c
// Invoked to process the "plframe" Tcl command.

int
plFrameCmd( ClientData clientData, Tcl_Interp *interp,
            int argc, const char **argv );
int
plPlotterCmd( ClientData clientData, Tcl_Interp *interp,
              int argc, const char **argv );

// plr.c
// Set default state parameters before anyone else has a chance to.

PLDLLIMPEXP_TCLTK void
plr_start( PLRDev *plr );

// Read & process commands until "nbyte_max" bytes have been read.

PLDLLIMPEXP_TCLTK int
plr_process( PLRDev *plr );

#endif  // __PLSERVER_H__