Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
msg.h
Go to the documentation of this file.
1 /* Created: 22oct1996 R. Hackenburg */
2 
3 static const char sccsid_msgH[] = "@(#)"__FILE__"\t\t1.55\tCreated 3/8/98 02:07:33, \tcompiled "__DATE__" "__TIME__;
4 
5 
6 /*
7  This contains prototypes for the msg library, C-interface.
8 
9  Modified 15-Oct-1996 Robert Hackenburg (for version 1.00)
10  Created 2-Dec-1994 Robert Hackenburg
11 */
12 
13 #define VERSION 1.0
14 
15 #ifndef FILE
16 #include <stdio.h>
17 #endif
18 
19 #ifndef NULL
20 #include <stdlib.h>
21 #endif
22 
23 #ifndef pid_t
24 #include <sys/types.h>
25 #endif
26 
27 #ifndef TRUE
28 #define TRUE -1
29 #endif
30 #ifndef FALSE
31 #define FALSE 0
32 #endif
33 
34 typedef void (*funcPoint)(const char*, const char*, const int*);
35 
36 
37  void Message( const char *msg, int *ID );
38  void MessageOut( const char *msg );
39  void MsgAbortCheck( const int ID );
40  void MsgAlarm( const char *msg, int severity );
41  void MsgAlarmRegister( funcPoint AlarmRoutine );
42  void MsgAlarmRoutineSample( char* Prefix, char* sansPrefix, int *Level );
43  void MsgAppendReturn( void );
44  void MsgNoAppendReturn( void );
45  char *MsgCela(int ELA);
46  void MsgCheck( const char *msg, int *ID, int *Active, int *Alarming, int *Counting );
47  void MsgClassDefine( const char *Class, const char *State, int CountLimit, int AbortLimit );
48  void MsgClean( int length, char string[] );
49  void MsgCount( const char *Prefix );
50  char *MsgCtime(void);
51  char *MsgCCPU(int CPU);
52  long MsgCPU(void);
53  void MsgDeleteID( const int ID );
54  void MsgDisable( const char *Prefix );
55  void MsgDisableAlarm( const char *Prefix );
56  void MsgDisplay( const char *msg, int *ID );
57  void MsgDisplayOut( const char *msg );
58  void MsgDisplayAndFile( const char *msg, FILE *fid, int *ID );
59  void MsgDisplayAndFileOut( const char *msg, FILE *fid );
60  void MsgEnable( const char *Prefix );
61  void MsgEnableAlarm( const char *Prefix );
62  int MsgEnabled( const char *Prefix, int *ID );
63  void MsgEnter( const char *Prefix, int *ID );
64  int MsgEnterClass( const char *Class, int *ID );
65  FILE *MsgFileOpen( const char* FileName, const char* FileAccessMode );
66  int MsgFind( const char *Prefix, int *ID, int *Active, int *Alarming, int *Counting );
67  int MsgFindClass( const char *Clas , int *ID );
68  void MsgGetClass( const char *Prefix, char *Class );
69  void MsgIncr( const int ID );
70  void MsgIni( int LUN );
71  void MsgFinish( const char *switches, int Nevents );
72  void MsgInit( const char *switches, ... );
73  int MsgJournalClose( void );
74  int MsgJournalEnabled( void );
75  FILE *MsgJournalGet( void );
76  void MsgJournalOff( void );
77  void MsgJournalOn( void );
78  int MsgJournalOpen( const char* FileName );
79  void MsgJournalPage( void );
80  int MsgLNB( const char *string, int n );
81  void MsgMark( const char *Prefix, int *ID );
82  void MsgNoCount( const char *Prefix );
83  void MsgNodeNameGet( char *NodeName );
84  void MsgNodeNameSet( const char *NodeName );
85  void MsgParse( const char *msg, char *prefix, char **message );
86  void MsgParsePrefix( const char *Prefix, char *PrefixStripped, int *PrefixNumber );
87  void MsgPrefixGet( const char *Prefix, int *Counts, int *CountLimit, int *Level
88  , int *AbortLimit, int *Active, int *Counting, int *Alarming, char State[9] );
89  void MsgPrefixSet( const char *Prefix, int CountLimit, int Level
90  , int AbortLimit, int Active, int Counting, int Alarming );
91  int MsgRemoveSharedMemory( const pid_t ProcessID );
92  void MsgResetID( const int ID );
93  void MsgSetAbortLimit( const char *Prefix, int Limit );
94  int MsgSetByCommand( const char *Command );
95  int MsgSetFromFile( FILE *fid );
96  void MsgSetLimit( const char *Prefix, int Limit );
97  void MsgSetLevel( const char *Prefix, int Level );
98  void MsgSetSummaryModeAborted( int Mode );
99  void MsgSetSummaryModeActive( int Mode );
100  void MsgSetSummaryModeCounting( int Mode );
101  void MsgSetSummaryModeInactive( int Mode );
102  void MsgSetSummaryPageLength( int Page_Length );
103  void MsgSetTimeStampCPU( int Mode );
104  int MsgShare( void );
105  int MsgShareNoCreate( const pid_t ProcessID );
106  void MsgSort( void );
107  void MsgState( int Counts, int Limit, int Level, int AbortLimit, int Active, int Counting, int Alarming, char State[9] );
108  int MsgStateLoad( const char *fileName );
109  int MsgStateStore( const char *fileName );
110  void MsgStateZero( void );
111  void MsgSummaryFile( FILE* fid );
112  void MsgSummaryCPUFile( FILE* fid );
113  void MsgSummaryEventFile( FILE* fid, int EVENTS );
114  long MsgTime( void );
115  void MsgTimeStampFile( FILE *fid );
116  void MsgTimeStampFileOut( FILE *fid );
117  void MsgToJournal( const char *msg, int *ID );
118  void MsgToJournalOut( const char *msg );
119  void MsgToFile( const char *msg, FILE *fid, int *ID );
120  void MsgToFileOut( const char *msg, FILE *fid );
121  long MsgTPS(void);
122  void MsgTruncate( char *string, int Size );
123 
124 /* Back compatibility prototypes: */
125  void MsgDisplayAndEcho( const char *msg, int LUN, int *ID );
126  void MsgDisplayAndEchoOut( const char *msg, int LUN );
127  void MsgGetLUN( int *Terminal_LUN, int *Journal_LUN );
128  void MsgLUNPage( int LUN );
129  void MsgNameNode( const char *NodeName );
130  void MsgSetLUN( int TERMINAL_LUN, int JOURNAL_LUN );
131  void MsgSummary( int LUN );
132  void MsgSummaryCPU( int LUN );
133  void MsgSummaryEvent( int LUN, int EVENTS );
134  void MsgTimeStamp( int LUN );
135  void MsgTimeStampOut( int LUN );
136  void MsgToLUN( const char *msg, int LUN, int *ID );
137  void MsgToLUNOut( const char *msg, int LUN );
void MsgTimeStampOut(int LUN)
void MsgSetLevel(const char *Prefix, int Level)
void MsgPrefixSet(const char *Prefix, int CountLimit, int Level, int AbortLimit, int Active, int Counting, int Alarming)
void MsgSetSummaryModeInactive(int Mode)
void MsgResetID(const int ID)
void MsgDisableAlarm(const char *Prefix)
void MsgClean(int length, char string[])
void MsgPrefixGet(const char *Prefix, int *Counts, int *CountLimit, int *Level, int *AbortLimit, int *Active, int *Counting, int *Alarming, char State[9])
void MsgGetLUN(int *Terminal_LUN, int *Journal_LUN)
void MsgAlarmRoutineSample(char *Prefix, char *sansPrefix, int *Level)
void MessageOut(const char *msg)
void MsgDisplayAndEcho(const char *msg, int LUN, int *ID)
int MsgSetByCommand(const char *Command)
void MsgParsePrefix(const char *Prefix, char *PrefixStripped, int *PrefixNumber)
long MsgCPU(void)
void MsgNodeNameSet(const char *NodeName)
void MsgDisable(const char *Prefix)
void MsgSummaryFile(FILE *fid)
void MsgAbortCheck(const int ID)
void MsgJournalOff(void)
void MsgSummaryEventFile(FILE *fid, int EVENTS)
int MsgShare(void)
void MsgSetLUN(int TERMINAL_LUN, int JOURNAL_LUN)
int MsgFindClass(const char *Clas, int *ID)
long MsgTime(void)
void MsgStateZero(void)
void(* funcPoint)(const char *, const char *, const int *)
Definition: msg.h:34
void MsgSetSummaryModeAborted(int Mode)
int MsgStateStore(const char *fileName)
void MsgNameNode(const char *NodeName)
void MsgSetSummaryModeActive(int Mode)
int MsgEnabled(const char *Prefix, int *ID)
void MsgLUNPage(int LUN)
void MsgSummaryCPU(int LUN)
void MsgNoCount(const char *Prefix)
int MsgShareNoCreate(const pid_t ProcessID)
void MsgFinish(const char *switches, int Nevents)
FILE * MsgFileOpen(const char *FileName, const char *FileAccessMode)
void MsgToLUN(const char *msg, int LUN, int *ID)
void MsgTimeStamp(int LUN)
void MsgGetClass(const char *Prefix, char *Class)
void MsgAlarm(const char *msg, int severity)
void MsgJournalPage(void)
void MsgDisplayAndFileOut(const char *msg, FILE *fid)
void MsgEnable(const char *Prefix)
void MsgNodeNameGet(char *NodeName)
void MsgTimeStampFileOut(FILE *fid)
void MsgParse(const char *msg, char *prefix, char **message)
void MsgToJournal(const char *msg, int *ID)
char * MsgCtime(void)
int MsgJournalOpen(const char *FileName)
void MsgTimeStampFile(FILE *fid)
void MsgSetAbortLimit(const char *Prefix, int Limit)
void MsgJournalOn(void)
void MsgCheck(const char *msg, int *ID, int *Active, int *Alarming, int *Counting)
void MsgSetSummaryModeCounting(int Mode)
char * MsgCCPU(int CPU)
int MsgLNB(const char *string, int n)
void MsgSort(void)
void MsgIncr(const int ID)
void MsgEnter(const char *Prefix, int *ID)
int MsgSetFromFile(FILE *fid)
void MsgSummary(int LUN)
int MsgFind(const char *Prefix, int *ID, int *Active, int *Alarming, int *Counting)
void MsgTruncate(char *string, int Size)
int MsgJournalClose(void)
void MsgDisplayAndFile(const char *msg, FILE *fid, int *ID)
long MsgTPS(void)
void MsgDeleteID(const int ID)
void MsgSetSummaryPageLength(int Page_Length)
void MsgSetLimit(const char *Prefix, int Limit)
double Nevents
FILE * MsgJournalGet(void)
void MsgDisplayOut(const char *msg)
void MsgAppendReturn(void)
void MsgIni(int LUN)
void Message(const char *msg, int *ID)
int MsgJournalEnabled(void)
void MsgDisplayAndEchoOut(const char *msg, int LUN)
void MsgSummaryEvent(int LUN, int EVENTS)
void MsgSummaryCPUFile(FILE *fid)
void MsgInit(const char *switches,...)
void MsgCount(const char *Prefix)
void MsgAlarmRegister(funcPoint AlarmRoutine)
void MsgSetTimeStampCPU(int Mode)
static const char sccsid_msgH[]
Definition: msg.h:3
void MsgClassDefine(const char *Class, const char *State, int CountLimit, int AbortLimit)
void MsgMark(const char *Prefix, int *ID)
void MsgDisplay(const char *msg, int *ID)
void MsgToFileOut(const char *msg, FILE *fid)
void MsgToJournalOut(const char *msg)
void MsgNoAppendReturn(void)
void MsgToLUNOut(const char *msg, int LUN)
void MsgToFile(const char *msg, FILE *fid, int *ID)
void MsgState(int Counts, int Limit, int Level, int AbortLimit, int Active, int Counting, int Alarming, char State[9])
void MsgEnableAlarm(const char *Prefix)
int MsgStateLoad(const char *fileName)
int MsgRemoveSharedMemory(const pid_t ProcessID)
char * MsgCela(int ELA)
int MsgEnterClass(const char *Class, int *ID)