summaryrefslogtreecommitdiffstats
path: root/lib/libcbor/src/cbor/internal/encoders.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2019-11-14 08:30:10 +0000
committerflorian <florian@openbsd.org>2019-11-14 08:30:10 +0000
commit8ea7b71c5b3e76d9d5b8d2dc304431e571f6a1a3 (patch)
tree72955da162f98bd14638ed850d7c046f8bbdd1ed /lib/libcbor/src/cbor/internal/encoders.c
parentChange new-session -A without a session name (that is, no -s option (diff)
downloadwireguard-openbsd-8ea7b71c5b3e76d9d5b8d2dc304431e571f6a1a3.tar.xz
wireguard-openbsd-8ea7b71c5b3e76d9d5b8d2dc304431e571f6a1a3.zip
Since resolve() switched to a callback mechanism all uw_resolver objects
pass through resolve() and either asr_resolve_done() or ub_resolve_done(). With that we can pull resolver_ref() and resolver_unref() into those functions to make the reference counting easier. Only check_resolver is special since it needs to refcount the to be checked resolver. But the resolver doing the actual work is automatically refcounted by resolve() and *_resolve_done(). One last piece of the puzzle is to track the uw_resolver object in cb_data so that the *_resolve_done() functions have access to it. This also allowes us to remove the ad-hoc passing of the resolver in query_imsg. Since the callback functions all need access to the resolver that did the work we pass it in as first argument. OK otto
Diffstat (limited to 'lib/libcbor/src/cbor/internal/encoders.c')
0 files changed, 0 insertions, 0 deletions