mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 08:47:00 +00:00
misc: move couple enums from global scope to file scope
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
74b697321f
commit
887845df2a
3 changed files with 43 additions and 45 deletions
24
src/output.c
24
src/output.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue