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

@ -59,6 +59,28 @@
#include "dhcpd-pools.h"
/*! \enum colored_formats
* \brief Enumeration of output formats. Keep the text and html first, they
* are used color array selector.
*/
enum colored_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
};
static const char *color_tags[][NUM_OF_OUT_FORMS] = {
[STATUS_OK] = { "", "" },
[STATUS_WARN] = { "\033[1;33m", " style=\"color:magenta;font-style:italic\"" },
@ -68,8 +90,6 @@ static const char *color_tags[][NUM_OF_OUT_FORMS] = {
[COLOR_RESET] = { "\033[0m", "" }
};
/*! \brief Calculate range percentages and such. */
int range_output_helper(struct conf_t *state, struct output_helper_t *oh,
struct range_t *range_p)