misc: move couple enums from global scope to file scope

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-11-13 21:43:37 +00:00
parent 74b697321f
commit 887845df2a
No known key found for this signature in database
GPG key ID: A9553245FDE9B739
3 changed files with 43 additions and 45 deletions

View file

@ -75,14 +75,6 @@ union ipaddr_t {
unsigned char v6[16];
};
/*! \enum dhcpd_magic_numbers
* \brief MAXLEN is maximum expected line length in dhcpd.conf and
* dhcpd.leases.
*/
enum dhcpd_magic_numbers {
MAXLEN = 1024
};
/*! \enum dhcp_version
* \brief The IP version, IPv4 or IPv6, served by the dhcpd.
*/
@ -108,28 +100,6 @@ enum prefix_t {
NUM_OF_PREFIX
};
/*! \enum output_formats
* \brief Enumeration of output formats. Keep the text and html first, they
* are used color array selector.
*/
enum output_formats {
OUT_FORM_TEXT,
OUT_FORM_HTML,
NUM_OF_OUT_FORMS
};
/*! \enum count_status_t
* \brief Enumeration of possible range and shared net statuses.
*/
enum count_status_t {
STATUS_OK,
STATUS_WARN,
STATUS_CRIT,
STATUS_IGNORED,
STATUS_SUPPRESSED,
COLOR_RESET
};
enum color_mode {
color_unknown,
color_off,
@ -174,19 +144,6 @@ struct output_helper_t {
double bup;
};
/*! \enum isc_conf_parser
* \brief Configuration file parsing state flags.
*/
enum isc_conf_parser {
ITS_NOTHING_INTERESTING,
ITS_A_RANGE_FIRST_IP,
ITS_A_RANGE_SECOND_IP,
ITS_A_SHAREDNET,
ITS_AN_INCLUDE,
ITS_A_SUBNET,
ITS_A_NETMASK
};
/*! \enum ltype
* \brief Lease state types.
*/