dhcpd-pools
3.0
ISC dhcpd lease usage analyser
|
Mustache templating specific functions. More...
#include <config.h>
#include <fcntl.h>
#include <errno.h>
#include <error.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include "close-stream.h"
#include "dhcpd-pools.h"
#include "mustach.h"
#include "xalloc.h"
Data Structures | |
struct | expl |
A structure that travels through mustach via closure void pointer. More... | |
Functions | |
static int | must_enter (void *closure, const char *name) |
Function that is called when mustach is searching output loops from template file. More... | |
static int | must_leave (void *closure) |
Function that is called when all elements within a print loop are outputed. More... | |
static int | must_put_base (void *closure, const char *name, int escape __attribute__((unused)), FILE *file) |
Template base level tag parser and printer. More... | |
static int | must_put_range (void *closure, const char *name, int escape __attribute__((unused)), FILE *file) |
Mustach range aka {{#subnets}} tag parser and printer. More... | |
static int | must_put_shnet (void *closure, const char *name, int escape __attribute__((unused)), FILE *file) |
Mustach shared networks aka {{#shared-networks}} tag parser and printer. More... | |
static int | must_next_range (void *closure) |
A function to move to next range when {{/subnets}} is encountered. More... | |
static int | must_next_shnet (void *closure) |
A function to move to next shared network when {{/shared-networks}} is encountered. More... | |
static char * | must_read_template (const char *filename) |
Read mustach template to memory. More... | |
int | mustach_dhcpd_pools (struct conf_t *state) |
Start mustach processing. More... | |
Variables | |
static struct mustach_itf | itf |
Mustache templating specific functions.
|
static |
Function that is called when mustach is searching output loops from template file.
|
static |
Function that is called when all elements within a print loop are outputed.
|
static |
A function to move to next range when {{/subnets}} is encountered.
Referenced by must_enter().
|
static |
A function to move to next shared network when {{/shared-networks}} is encountered.
Referenced by must_enter().
|
static |
Template base level tag parser and printer.
Referenced by must_leave().
|
static |
Mustach range aka {{#subnets}} tag parser and printer.
Referenced by must_enter().
|
static |
Mustach shared networks aka {{#shared-networks}} tag parser and printer.
Referenced by must_enter().
|
static |
Read mustach template to memory.
Referenced by mustach_dhcpd_pools().
int mustach_dhcpd_pools | ( | struct conf_t * | state | ) |
Start mustach processing.
Referenced by output_analysis().
|
static |