2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

initalisation routines need to return dns_result_t

This commit is contained in:
Mark Andrews 1999-02-17 06:25:36 +00:00
parent d97e14cc78
commit dd3d17d365

View File

@ -67,15 +67,15 @@ Functions:
Returns allowed compression methods based on type, edns, and whether Returns allowed compression methods based on type, edns, and whether
we are about to compress a owner name. we are about to compress a owner name.
void dns_result_t
dns_compress_init(dns_compress_t *cctx, isc_boolean_t global16, dns_compress_init(dns_compress_t *cctx, isc_boolean_t global16,
isc_mem_t *mctx); isc_mem_t *mctx);
Initalises cctx to empty and sets whether 16 bit global Initalises cctx to empty and sets whether 16 bit global
compression targets are to be added to the global RBT. compression targets are to be added to the global RBT.
void dns_result_t
dns_compress_localinit(dns_compress_t *cctx, dns_name_t owner, dns_compress_localinit(dns_compress_t *cctx, dns_name_t *owner,
isc_buffer_t *target); isc_buffer_t *target);
Initalise a RBT for local compression, freeing and existing RBT. Initalise a RBT for local compression, freeing and existing RBT.
@ -108,3 +108,9 @@ Functions:
dns_rbt_t *global; /* Global RBT */ dns_rbt_t *global; /* Global RBT */
isc_mem_t *mctx; /* Required by RBT */ isc_mem_t *mctx; /* Required by RBT */
}; };
Dependancy:
Requires RBT deepest match.
Requires the ability to walk the RBT and remove any node which
meets the removal condition.