diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-12-03 17:27:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-12-03 21:17:49 +0100 |
commit | 1b4f6e79ec51a57003896a0b605fba427b4a98d2 (patch) | |
tree | 88f95d5b8e9db07c62bfef5c8d789a1b6659d824 /docs/var-log | |
parent | 2a44bec4f62833222a85ad8c90054468dfa75013 (diff) |
resolved: optionally, allocate DnsResourceKey objects on the stack
Sometimes when looking up entries in hashmaps indexed by a
DnsResourceKey it is helpful not having to allocate a full
DnsResourceKey dynamically just to use it as search key. Instead,
optionally allow allocation of a DnsResourceKey on the stack. Resource
keys allocated like that of course are subject to other lifetime cycles
than the usual Resource keys, hence initialize the reference counter to
to (unsigned) -1.
While we are at it, remove the prototype for
dns_resource_key_new_dname() which was never implemented.
Diffstat (limited to 'docs/var-log')
0 files changed, 0 insertions, 0 deletions