source: geovis/trunk/RendererCmd.h @ 4790

Last change on this file since 4790 was 4028, checked in by ldelgass, 10 years ago

Add map layer commands

File size: 1.2 KB
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
17namespace GeoVis {
18
19extern 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
24extern int queueCommands(Tcl_Interp *interp,
25                         ClientData clientData,
26                         ReadBuffer *inBufPtr);
27#endif
28
29extern int processCommands(Tcl_Interp *interp,
30                           ClientData clientData,
31                           ReadBuffer *inBufPtr,
32                           int fdOut,
33                           long timeout = -1);
34
35extern int handleError(Tcl_Interp *interp,
36                       ClientData clientData,
37                       int status,
38                       int fdOut);
39
40extern void initTcl(Tcl_Interp *interp,
41                    ClientData clientData);
42
43extern void exitTcl(Tcl_Interp *interp);
44
45}
46
47#endif
Note: See TracBrowser for help on using the repository browser.