CC: | "Evan Hunt" <each@isc.org> |
Subject: | pre-release DynDB nits |
Date: | Tue, 16 Aug 2016 13:38:11 +0200 |
To: | bind-bugs@isc.org |
From: | "Petr Spacek" <pspacek@redhat.com> |
Hello Evan and others,
attempt to port bind-dyndb-ldap to dyndb API shipped with BIND 9.11 uncovered
couple of nits in current dyndb code.
I believe that it is worth fixing them before the final release:
1) Docs in the example driver were outdated. A patch is attached.
2) Function dns_dyndb_register_t register_func is given the text between {} in
dyndb section.
Following snippet is causing problems:
dyndb "name" "library.so" {
custom_structure {
blah 1;
nah 2;
};
};
When register_func is called, all inner curly braces are gone.
This makes impossible to re-use map parsers from libraries. I peeked at the
isc_tokentype_btext handling in isc_lex_gettoken() but I'm sure what is the
right approach to fix this.
Ideally, I would like to send the complete text into the plugin and let plugin
to deal with it (possibly by calling ISC parser with custom grammar definition).
It is possible to escape all the curly braces using \{ \} but that is quite
ugly for any non-trivial structures.
Would it be possible to convince the parser not to remove {} from the
isc_tokentype_btext?
--
Petr Spacek @ Red Hat
Message body is not shown because sender requested not to inline it.