Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00034 #ifndef UTIL_STATUS_H
00035 #define UTIL_STATUS_H
00036
00037 #include "config.h"
00038
00039 enum ods_enum_status {
00040 ODS_STATUS_OK,
00041 ODS_STATUS_ASSERT_ERR,
00042 ODS_STATUS_CFG_ERR,
00043 ODS_STATUS_CHDIR_ERR,
00044 ODS_STATUS_CHROOT_ERR,
00045 ODS_STATUS_CMDHANDLER_ERR,
00046 ODS_STATUS_CONFLICT_ERR,
00047 ODS_STATUS_ERR,
00048 ODS_STATUS_FOPEN_ERR,
00049 ODS_STATUS_FORK_ERR,
00050 ODS_STATUS_FREAD_ERR,
00051 ODS_STATUS_FWRITE_ERR,
00052 ODS_STATUS_HSM_ERR,
00053 ODS_STATUS_INSECURE,
00054 ODS_STATUS_MALLOC_ERR,
00055 ODS_STATUS_PARSE_ERR,
00056 ODS_STATUS_PRIVDROP_ERR,
00057 ODS_STATUS_RNG_ERR,
00058 ODS_STATUS_SETSID_ERR,
00059 ODS_STATUS_UNCHANGED,
00060 ODS_STATUS_WRITE_PIDFILE_ERR,
00061 ODS_STATUS_XML_ERR
00062 };
00063 typedef enum ods_enum_status ods_status;
00064
00065 typedef struct ods_struct_lookup_table ods_lookup_table;
00066 struct ods_struct_lookup_table {
00067 int id;
00068 const char* name;
00069 };
00070
00071 extern ods_lookup_table ods_status_str[];
00072
00073
00080 ods_lookup_table* ods_lookup_by_id(ods_lookup_table *table, int id);
00081
00088 const char *ods_status2str(ods_status status);
00089
00090 #endif