source: trunk/gui/src/RpInit.c @ 785

Last change on this file since 785 was 702, checked in by mmc, 17 years ago
  • Added Rappture::daemon function so that any process can be forked and run as a daemon process in the background. This was needed for the middleware filexfer server.
  • Fixed download for binary data stored in <string> results.
  • Fixed "binary" example in the zoo. You can now upload a tarball, run the simulation, and download the same tarball.
File size: 1.5 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 *  RpInit
4 *
5 *  This file contains the function that initializes all of the various
6 *  extensions in this package.
7 * ======================================================================
8 *  AUTHOR:  Michael McLennan, Purdue University
9 *  Copyright (c) 2004-2006  Purdue Research Foundation
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#include <tcl.h>
16
17int RpRlimit_Init _ANSI_ARGS_((Tcl_Interp *interp));
18int RpRusage_Init _ANSI_ARGS_((Tcl_Interp *interp));
19int RpSignal_Init _ANSI_ARGS_((Tcl_Interp *interp));
20int RpDaemon_Init _ANSI_ARGS_((Tcl_Interp *interp));
21
22#ifdef BUILD_Rappture
23__declspec( dllexport )
24#endif
25int
26Rappturegui_Init(Tcl_Interp *interp)   /* interpreter being initialized */
27{
28#ifdef _WIN32
29    rpWinInitJob();
30#endif
31    if (Tcl_InitStubs(interp, "8.4", 0) == NULL) {
32        return TCL_ERROR;
33    }
34    if (Tcl_PkgProvide(interp, "RapptureGUI", PACKAGE_VERSION) != TCL_OK) {
35        return TCL_ERROR;
36    }
37    if (RpRlimit_Init(interp) != TCL_OK) {
38        return TCL_ERROR;
39    }
40    if (RpRusage_Init(interp) != TCL_OK) {
41        return TCL_ERROR;
42    }
43    if (RpSignal_Init(interp) != TCL_OK) {
44        return TCL_ERROR;
45    }
46    if (RpDaemon_Init(interp) != TCL_OK) {
47        return TCL_ERROR;
48    }
49    return TCL_OK;
50}
Note: See TracBrowser for help on using the repository browser.