|
dhcpd-pools
3.0
ISC dhcpd lease usage analyser
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <errno.h>#include <ctype.h>#include "mustach.h"
Macros | |
| #define | _GNU_SOURCE |
| #define | NAME_LENGTH_MAX 1024 |
| #define | DEPTH_MAX 256 |
Functions | |
| static int | getpartial (struct mustach_itf *itf, void *closure, const char *name, char **result) |
| static int | process (const char *template, struct mustach_itf *itf, void *closure, FILE *file, const char *opstr, const char *clstr) |
| int | fmustach (const char *template, struct mustach_itf *itf, void *closure, FILE *file) |
| int | fdmustach (const char *template, struct mustach_itf *itf, void *closure, int fd) |
| fmustach - Renders the mustache 'template' in 'fd' for 'itf' and 'closure'. More... | |
| int | mustach (const char *template, struct mustach_itf *itf, void *closure, char **result, size_t *size) |
| fmustach - Renders the mustache 'template' in 'result' for 'itf' and 'closure'. More... | |
| #define _GNU_SOURCE |
| #define DEPTH_MAX 256 |
Referenced by process().
| #define NAME_LENGTH_MAX 1024 |
Referenced by process().
| int fdmustach | ( | const char * | template, |
| struct mustach_itf * | itf, | ||
| void * | closure, | ||
| int | fd | ||
| ) |
fmustach - Renders the mustache 'template' in 'fd' for 'itf' and 'closure'.
: the template string to instanciate : the interface to the functions that mustach calls : the closure to pass to functions called : the file descriptor number where to write the result
Returns 0 in case of success, -1 with errno set in case of system error a other negative value in case of error.

| int fmustach | ( | const char * | template, |
| struct mustach_itf * | itf, | ||
| void * | closure, | ||
| FILE * | file | ||
| ) |
Referenced by fdmustach(), mustach(), and mustach_dhcpd_pools().

|
static |
Referenced by process().
| int mustach | ( | const char * | template, |
| struct mustach_itf * | itf, | ||
| void * | closure, | ||
| char ** | result, | ||
| size_t * | size | ||
| ) |
fmustach - Renders the mustache 'template' in 'result' for 'itf' and 'closure'.
: the template string to instanciate : the interface to the functions that mustach calls : the closure to pass to functions called
Returns 0 in case of success, -1 with errno set in case of system error a other negative value in case of error.

|
static |
1.8.13