Project

General

Profile

Statistics
| Branch: | Revision:

root / src / tkenv / tklib.h @ 3e29b8a0

History | View | Annotate | Download (1.05 KB)

1 01873262 Georg Kunz
//==========================================================================
2
//  TKLIB.H - part of
3
//
4
//                     OMNeT++/OMNEST
5
//            Discrete System Simulation in C++
6
//
7
//==========================================================================
8
9
/*--------------------------------------------------------------*
10
  Copyright (C) 1992-2008 Andras Varga
11
  Copyright (C) 2006-2008 OpenSim Ltd.
12

13
  This file is distributed WITHOUT ANY WARRANTY. See the file
14
  `license' for details on this and other legal matters.
15
*--------------------------------------------------------------*/
16
17
#ifndef __TKLIB_H
18
#define __TKLIB_H
19
20
#define WIN32_LEAN_AND_MEAN
21
#include <tk.h>
22
#include "platdefs.h"
23
24
NAMESPACE_BEGIN
25
26
struct OmnetTclCommand {
27
    const char *namestr;
28
    int (*func)(ClientData, Tcl_Interp *, int, const char **);
29
};
30
extern OmnetTclCommand tcl_commands[];
31
32
extern int exit_omnetpp;
33
34
Tcl_Interp *initTk(int argc, char **argv);
35
int createTkCommands(Tcl_Interp *interp, OmnetTclCommand *tcl_commands);
36
int runTk(Tcl_Interp *interp);
37
38
NAMESPACE_END
39
40
41
#endif