|
Defines |
#define | LDNS_PARSE_SKIP_SPACE "\f\n\r\v" |
#define | LDNS_PARSE_NORMAL " \f\n\r\t\v" |
#define | LDNS_PARSE_NO_NL " \t" |
#define | LDNS_MAX_LINELEN 4096 |
#define | LDNS_MAX_KEYWORDLEN 32 |
Typedefs |
typedef enum ldns_enum_directive | ldns_directive |
Enumerations |
enum | ldns_enum_directive { LDNS_DIR_TTL,
LDNS_DIR_ORIGIN,
LDNS_DIR_INCLUDE
} |
| different type of directives in zone files We now deal with $TTL, $ORIGIN and $INCLUDE. More...
|
Functions |
ssize_t | ldns_fget_token (FILE *f, char *token, const char *delim, size_t limit) |
| returns a token/char from the stream F.
|
ssize_t | ldns_fget_token_l (FILE *f, char *token, const char *delim, size_t limit, int *line_nr) |
| returns a token/char from the stream F.
|
ssize_t | ldns_fget_keyword_data (FILE *f, const char *keyword, const char *k_del, char *data, const char *d_del, size_t data_limit) |
ssize_t | ldns_fget_keyword_data_l (FILE *f, const char *keyword, const char *k_del, char *data, const char *d_del, size_t data_limit, int *line_nr) |
ssize_t | ldns_bget_token (ldns_buffer *b, char *token, const char *delim, size_t limit) |
| returns a token/char from the buffer b.
|
ssize_t | ldns_bget_keyword_data (ldns_buffer *b, const char *keyword, const char *k_del, char *data, const char *d_del) |
char * | ldns_str_remove_comment (char *str) |
| removes comments from a string.
|
int | ldns_bgetc (ldns_buffer *buffer) |
| returns the next character from a buffer.
|
void | ldns_bskipcs (ldns_buffer *buffer, const char *s) |
| skips all of the characters in the given string in the buffer, moving the position to the first character that is not in *s.
|
void | ldns_fskipcs (FILE *fp, const char *s) |
| skips all of the characters in the given string in the fp, moving the position to the first character that is not in *s.
|
void | ldns_fskipcs_l (FILE *fp, const char *s, int *line_nr) |
| skips all of the characters in the given string in the fp, moving the position to the first character that is not in *s.
|