mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
output: move shared net andn range status check to output_helper
Having same logic in many places is error prone if and when the logic needs maintenance. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
15f08bbf02
commit
a64630aa49
3 changed files with 35 additions and 48 deletions
|
|
@ -336,10 +336,10 @@ extern double get_range_size_v4(const struct range_t *r);
|
|||
extern double get_range_size_v6(const struct range_t *r);
|
||||
|
||||
/* output.c */
|
||||
extern void range_output_helper(struct conf_t *state, struct output_helper_t *oh,
|
||||
struct range_t *range_p);
|
||||
extern void shnet_output_helper(struct conf_t *state, struct output_helper_t *oh,
|
||||
struct shared_network_t *shared_p);
|
||||
extern int range_output_helper(struct conf_t *state, struct output_helper_t *oh,
|
||||
struct range_t *range_p);
|
||||
extern int shnet_output_helper(struct conf_t *state, struct output_helper_t *oh,
|
||||
struct shared_network_t *shared_p);
|
||||
extern int output_analysis(struct conf_t *state, const char output_format);
|
||||
|
||||
/* sort.c */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue