OpenDNSSEC-signer
1.3.9
Main Page
Data Structures
Files
File List
Globals
signer
src
shared
status.h
Go to the documentation of this file.
1
/*
2
* $Id$
3
*
4
* Copyright (c) 2010-2011 NLNet Labs. All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions
8
* are met:
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
* 2. Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in the
13
* documentation and/or other materials provided with the distribution.
14
*
15
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
21
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
*
27
*/
28
34
#ifndef UTIL_STATUS_H
35
#define UTIL_STATUS_H
36
37
#include "config.h"
38
39
enum
ods_enum_status
{
40
ODS_STATUS_OK
,
41
ODS_STATUS_ASSERT_ERR
,
42
ODS_STATUS_CFG_ERR
,
43
ODS_STATUS_CHDIR_ERR
,
44
ODS_STATUS_CHROOT_ERR
,
45
ODS_STATUS_CMDHANDLER_ERR
,
46
ODS_STATUS_CONFLICT_ERR
,
47
ODS_STATUS_ERR
,
48
ODS_STATUS_FOPEN_ERR
,
49
ODS_STATUS_FORK_ERR
,
50
ODS_STATUS_FREAD_ERR
,
51
ODS_STATUS_FWRITE_ERR
,
52
ODS_STATUS_HSM_ERR
,
53
ODS_STATUS_INSECURE
,
54
ODS_STATUS_MALLOC_ERR
,
55
ODS_STATUS_PARSE_ERR
,
56
ODS_STATUS_PRIVDROP_ERR
,
57
ODS_STATUS_RENAME_ERR
,
58
ODS_STATUS_RNG_ERR
,
59
ODS_STATUS_SETSID_ERR
,
60
ODS_STATUS_UNCHANGED
,
61
ODS_STATUS_WRITE_PIDFILE_ERR
,
62
ODS_STATUS_XML_ERR
63
};
64
typedef
enum
ods_enum_status
ods_status
;
65
66
typedef
struct
ods_struct_lookup_table
ods_lookup_table
;
67
struct
ods_struct_lookup_table
{
68
int
id
;
69
const
char
*
name
;
70
};
71
72
extern
ods_lookup_table
ods_status_str
[];
73
74
81
ods_lookup_table
*
ods_lookup_by_id
(
ods_lookup_table
*table,
int
id
);
82
89
const
char
*
ods_status2str
(
ods_status
status);
90
91
#endif
/* UTIL_STATUS_H */
Generated on Thu Sep 20 2012 16:21:41 for OpenDNSSEC-signer by
1.8.1.2