2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break.

This commit is contained in:
Michael Graff
1999-12-23 00:09:04 +00:00
parent 542189f21b
commit 3ddd814a97
131 changed files with 1299 additions and 1297 deletions

View File

@@ -15,14 +15,14 @@
* SOFTWARE.
*/
/* $Id: rt_21.c,v 1.13 1999/09/15 23:03:32 explorer Exp $ */
/* $Id: rt_21.c,v 1.14 1999/12/23 00:08:57 explorer Exp $ */
/* RFC 1183 */
#ifndef RDATA_GENERIC_RT_21_C
#define RDATA_GENERIC_RT_21_C
static inline dns_result_t
static inline isc_result_t
fromtext_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_lex_t *lexer, dns_name_t *origin,
isc_boolean_t downcase, isc_buffer_t *target)
@@ -48,7 +48,7 @@ fromtext_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
}
static inline dns_result_t
static inline isc_result_t
totext_rt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
isc_buffer_t *target)
{
@@ -75,7 +75,7 @@ totext_rt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
return(dns_name_totext(&prefix, sub, target));
}
static inline dns_result_t
static inline isc_result_t
fromwire_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
isc_buffer_t *source, dns_decompress_t *dctx,
isc_boolean_t downcase, isc_buffer_t *target)
@@ -106,7 +106,7 @@ fromwire_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
return (dns_name_fromwire(&name, source, dctx, downcase, target));
}
static inline dns_result_t
static inline isc_result_t
towire_rt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
dns_name_t name;
isc_region_t region;
@@ -164,7 +164,7 @@ compare_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
return (dns_name_rdatacompare(&name1, &name2));
}
static inline dns_result_t
static inline isc_result_t
fromstruct_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
isc_buffer_t *target)
{
@@ -179,7 +179,7 @@ fromstruct_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
return (DNS_R_NOTIMPLEMENTED);
}
static inline dns_result_t
static inline isc_result_t
tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 21);
@@ -196,7 +196,7 @@ freestruct_rt(void *source) {
REQUIRE(ISC_FALSE); /*XXX*/
}
static inline dns_result_t
static inline isc_result_t
additionaldata_rt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{
@@ -220,7 +220,7 @@ additionaldata_rt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
return ((add)(arg, &name, dns_rdatatype_a));
}
static inline dns_result_t
static inline isc_result_t
digest_rt(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg) {
isc_region_t r1, r2;
isc_result_t result;