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

make rdata functions static inline

This commit is contained in:
Bob Halley
1999-08-12 01:32:42 +00:00
parent 00d8179488
commit 4529cdaeda
41 changed files with 403 additions and 403 deletions

View File

@@ -15,14 +15,14 @@
* SOFTWARE.
*/
/* $Id: rt_21.c,v 1.10 1999/08/03 20:55:19 halley Exp $ */
/* $Id: rt_21.c,v 1.11 1999/08/12 01:32:31 halley Exp $ */
/* RFC 1183 */
#ifndef RDATA_GENERIC_RT_21_C
#define RDATA_GENERIC_RT_21_C
static dns_result_t
static inline dns_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 dns_result_t
static inline dns_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 dns_result_t
static inline dns_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 dns_result_t
static inline dns_result_t
towire_rt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
dns_name_t name;
isc_region_t region;
@@ -133,7 +133,7 @@ towire_rt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
return (dns_name_towire(&name, cctx, target));
}
static int
static inline int
compare_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
dns_name_t name1;
dns_name_t name2;
@@ -164,7 +164,7 @@ compare_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
return (dns_name_rdatacompare(&name1, &name2));
}
static dns_result_t
static inline dns_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 dns_result_t
static inline dns_result_t
tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 21);
@@ -190,13 +190,13 @@ tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
return (DNS_R_NOTIMPLEMENTED);
}
static void
static inline void
freestruct_rt(void *source) {
REQUIRE(source != NULL);
REQUIRE(ISC_FALSE); /*XXX*/
}
static dns_result_t
static inline dns_result_t
additionaldata_rt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
void *arg)
{