source: trunk/include/startstop_winlib.h @ 5054

Revision 2308, 2.8 KB checked in by stefan, 12 years ago (diff)

hydra console incorporation

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2/*
3 *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
4 *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
5 *
6 *
7 *    Revision history:
8 *     $Log$
9 *     Revision 1.2  2006/06/06 21:12:32  stefan
10 *     hydra console incorporation
11 *
12 *     Revision 1.1  20060210 20:05:54  lisowski
13 *     Initial revision
14 *
15 *         This is for use by both starstop_nt and startstop_service
16 *
17 */
18
19/*
20 * startstop_win.h: startstop parameter definitions for WindowsNT.
21 *
22 */
23
24#ifndef startstop_winlib_H
25#define startstop_winlib_H
26
27  /******************************************************************
28   *                         Includes                               *
29   *                                                                *
30   ******************************************************************/
31
32#include <startstop_lib.h>
33#include <service_ew.h>         /* the non-service needs to know about this too */
34
35  /******************************************************************
36   *                         #defines                               *
37   *                                                                *
38   ******************************************************************/
39
40/* The default startstop config file (in EW_PARAMS directory)
41 * This is used by pau, status and restart in addition to startstop
42 ******************************************************************/
43
44#define DEF_CONFIG "startstop_nt.d"
45/* MAX_RING_STR defined in earthworm_defs.h and at this time happens to be set to 32*/
46#define DEBUG
47
48  /******************************************************************
49   *                         Prototypes                             *
50   *                                                                *
51   ******************************************************************/
52
53/* GetConfig reads configuration file        */
54int GetConfig( METARING *, CHILD [MAX_CHILD], int * );
55
56/* SpawnChildren starts child processes besides statmanager      */
57void SpawnChildren( METARING *, CHILD [MAX_CHILD], int *, boolean, volatile int * );
58
59/* Encode status message           */
60void EncodeStatus( char [MAX_STATUS_LEN], METARING *, CHILD [MAX_CHILD], int * );
61
62/* Send a status msg via tranpsort */
63void SendStatus( int, METARING *, CHILD [MAX_CHILD], int * );
64
65/* Turn on one child process       */
66int  StartChild( int, METARING *, CHILD [MAX_CHILD] );
67
68/* Terminate specific child process*/
69int  TerminateChild( int, METARING *, CHILD [MAX_CHILD] );
70
71/* Terminate/restart child process */
72void RestartChild( char *, METARING *, CHILD [MAX_CHILD], int * );
73
74int     StartstopSetup ( METARING *, volatile int *, boolean, CHILD [MAX_CHILD], int * );
75
76int FinalLoop ( METARING *, volatile int *, char [MAX_STATUS_LEN], volatile int *, boolean, CHILD [MAX_CHILD], int * );
77
78/* Launch a command prompt console that can talk to startstop_service */
79void LaunchNewConsole();
80
81
82#endif
Note: See TracBrowser for help on using the repository browser.