File: plserver.h

package info (click to toggle)
plplot 5.10.0%2Bdfsg2-0.4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 25,792 kB
  • ctags: 13,517
  • sloc: ansic: 83,001; xml: 27,081; ada: 18,878; cpp: 15,966; tcl: 11,651; python: 7,075; f90: 7,058; ml: 6,974; java: 6,665; perl: 5,029; sh: 2,208; makefile: 210; lisp: 75; sed: 25; fortran: 7
file content (55 lines) | stat: -rw-r--r-- 1,483 bytes parent folder | download | duplicates (2)
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
54
55
// $Id: plserver.h 12007 2011-10-28 12:02:58Z andrewross $
//
// 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__