Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /* |
---|
3 | * Copyright (C) 2004-2013 HUBzero Foundation, LLC |
---|
4 | * |
---|
5 | * Author: Leif Delgass <ldelgass@purdue.edu> |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef GEOVIS_RENDERERCMD_H |
---|
9 | #define GEOVIS_RENDERERCMD_H |
---|
10 | |
---|
11 | #include <cstdio> |
---|
12 | #include <tcl.h> |
---|
13 | |
---|
14 | #include "ReadBuffer.h" |
---|
15 | #include "ResponseQueue.h" |
---|
16 | |
---|
17 | namespace GeoVis { |
---|
18 | |
---|
19 | extern ssize_t queueResponse(const void *bytes, size_t len, |
---|
20 | Response::AllocationType allocType, |
---|
21 | Response::ResponseType type = Response::DATA); |
---|
22 | |
---|
23 | #ifdef USE_READ_THREAD |
---|
24 | extern int queueCommands(Tcl_Interp *interp, |
---|
25 | ClientData clientData, |
---|
26 | ReadBuffer *inBufPtr); |
---|
27 | #endif |
---|
28 | |
---|
29 | extern int processCommands(Tcl_Interp *interp, |
---|
30 | ClientData clientData, |
---|
31 | ReadBuffer *inBufPtr, |
---|
32 | int fdOut, |
---|
33 | long timeout = -1); |
---|
34 | |
---|
35 | extern int handleError(Tcl_Interp *interp, |
---|
36 | ClientData clientData, |
---|
37 | int status, |
---|
38 | int fdOut); |
---|
39 | |
---|
40 | extern void initTcl(Tcl_Interp *interp, |
---|
41 | ClientData clientData); |
---|
42 | |
---|
43 | extern void exitTcl(Tcl_Interp *interp); |
---|
44 | |
---|
45 | } |
---|
46 | |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.