[f8327d]: src / dmh.h  Maximize  Restore  History

Download this file

66 lines (57 with data), 1.7 kB

 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef DMH_H
/*
* dmh.h
*
* $Id$
*
* Written by Keith Marshall <keithmarshall@users.sourceforge.net>
* Copyright (C) 2009, MinGW Project
*
*
* This header file provides the public API declarations for the
* diagnostic message handling subsystem.
*
*
* This is free software. Permission is granted to copy, modify and
* redistribute this software, under the provisions of the GNU General
* Public License, Version 3, (or, at your option, any later version),
* as published by the Free Software Foundation; see the file COPYING
* for licensing details.
*
* Note, in particular, that this software is provided "as is", in the
* hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not
* even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
* PARTICULAR PURPOSE. Under no circumstances will the author, or the
* MinGW Project, accept liability for any damages, however caused,
* arising from the use of this software.
*
*/
#define DMH_H 1
#include <stdint.h>
#undef EXTERN_C
#ifdef __cplusplus
# define EXTERN_C extern "C"
#else
# define EXTERN_C
#endif
typedef
enum dmh_class
{
DMH_SUBSYSTEM_TTY = 0,
DMH_SUBSYSTEM_GUI
} dmh_class;
typedef
enum dmh_severity
{
DMH_INFO = 0,
DMH_WARNING,
DMH_ERROR,
DMH_FATAL
} dmh_severity;
EXTERN_C void dmh_init( const dmh_class, const char* );
EXTERN_C int dmh_notify( const dmh_severity, const char *fmt, ... );
EXTERN_C int dmh_printf( const char *fmt, ... );
#define DMH_BEGIN_DIGEST 0x0001U, ~0x0001U
#define DMH_END_DIGEST 0x0100U, 0x0000U
EXTERN_C uint16_t dmh_control( const uint16_t, const uint16_t );
#endif /* DMH_H: $RCSfile$: end of file */