source: branches/r9/packages/system/init.c @ 4852

Last change on this file since 4852 was 4852, checked in by gah, 10 years ago
File size: 1.7 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 *  Rappture_Init
4 *
5 *  This file contains the function that initializes all of the various
6 *  extensions in this package.
7 * ======================================================================
8 *  AUTHOR:  Derrick Kearney, Purdue University
9 *  Copyright (c) 2004-2012  HUBzero Foundation, LLC
10 *
11 *  See the file "license.terms" for information on usage and
12 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * ======================================================================
14 */
15
16#include <tcl.h>
17#include "config.h"
18
19#ifdef BUILD_rappture
20#undef TCL_STORAGE_CLASS
21#define TCL_STORAGE_CLASS DLLEXPORT
22#endif
23
24extern Tcl_AppInitProc RapptureSystem_Init;
25extern Tcl_AppInitProc RpRlimit_Init;
26extern Tcl_AppInitProc RpRusage_Init;
27extern Tcl_AppInitProc RpSignal_Init;
28extern Tcl_AppInitProc RpSlice_Init;
29extern Tcl_AppInitProc RpSysinfo_Init;
30extern Tcl_AppInitProc RpDaemon_Init;
31extern Tcl_AppInitProc RpCurses_Init;
32
33#ifdef BUILD_Rappture
34__declspec( dllexport )
35#endif
36int
37RapptureSystem_Init( Tcl_Interp * interp)
38{
39#ifdef _WIN32
40    rpWinInitJob();
41#endif
42    if (RpRlimit_Init(interp) != TCL_OK) {
43        return TCL_ERROR;
44    }
45    if (RpRusage_Init(interp) != TCL_OK) {
46        return TCL_ERROR;
47    }
48    if (RpSignal_Init(interp) != TCL_OK) {
49        return TCL_ERROR;
50    }
51    if (RpSlice_Init(interp) != TCL_OK) {
52        return TCL_ERROR;
53    }
54    if (RpSysinfo_Init(interp) != TCL_OK) {
55        return TCL_ERROR;
56    }
57    if (RpDaemon_Init(interp) != TCL_OK) {
58        return TCL_ERROR;
59    }
60    if (RpCurses_Init(interp) != TCL_OK) {
61        return TCL_ERROR;
62    }
63    return TCL_OK;
64}
65
Note: See TracBrowser for help on using the repository browser.