File: omniParTcl.h

package info (click to toggle)
omniorb 1%3A3.0.4.1-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 13,024 kB
  • ctags: 19,172
  • sloc: cpp: 80,906; python: 17,895; ansic: 17,630; yacc: 3,441; lex: 1,306; sh: 1,191; xml: 871; perl: 383; makefile: 108; tcl: 18
file content (37 lines) | stat: -rwxr-xr-x 923 bytes parent folder | download | duplicates (4)
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
//
// omniParTcl.h
// 
// Header file for creating Tcl/Tk user interfaces for Orbix and other C++ programs.
// The mechanism employed is loose synchronization of a single thread running
// Tcl/Tk and one or more threads running C++ code.
//
// $Id: omniParTcl.h,v 1.1 1995/08/21 13:19:36 krw Exp $ $Author: krw $
//

#ifndef _omniParTcl_h
#define _omniParTcl_h

#include "omniParTcl/tclDStringClass.h"
#include "omnithread.h"

extern "C" 
{
#include <tk.h>
}

// 
// Init function to be called from Tcl_AppInit().
//
int omniParTcl_Init(Tcl_Interp *interp);

// 
// Functions to set up Tcl/Tk invocations from C++.  The first will arrange
// to have the Tcl/Tk script evaluated as soon as possible, and will not
// return until the script has been evalulated.  The second will make the
// same arrangement, but will return immediately.  
//
void omniTclMeAndWait(char *script);
void omniTclMeAndRun(char *script);

#endif