File: msg.h

package info (click to toggle)
htp 1.11-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 316 kB
  • ctags: 429
  • sloc: ansic: 5,108; makefile: 55
file content (45 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
//
// msg.h
//
// Copyright (c) 1995-96 Jim Nelson.  Permission to distribute
// granted by the author.  No warranties are made on the fitness of this
// source code.
//
*/

#ifndef MSG_H
#define MSG_H

/*
// message severity levels
*/
#define MSG_ERROR               (2)
#define MSG_WARNING             (1)
#define MSG_INFO                (0)

/*
// set the printable message level ... if the message being written
// does not meet the level, it is not printed
*/
void SetMessageSeverityLevel(uint level);

/*
// error/warning/info message display function
*/
#ifndef DUMB_MSG_PROTOTYPE
void HtpMsg(uint severityLevel, TEXTFILE *textFile, const char *format, ...);
#endif

/*
// debug message display, which also will dump to disk
*/
void DebugInit(const char *debugMsgFilename);
void DebugTerminate(void);

#ifndef DUMB_MSG_PROTOTYPE
void DebugMsg(const char *format, ...);
#endif

#endif