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:
@@ -15,12 +15,12 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: soa_6.c,v 1.20 1999/08/02 22:18:01 halley Exp $ */
|
||||
/* $Id: soa_6.c,v 1.21 1999/08/12 01:32:31 halley Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_SOA_6_C
|
||||
#define RDATA_GENERIC_SOA_6_C
|
||||
|
||||
static dns_result_t
|
||||
static inline dns_result_t
|
||||
fromtext_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
@@ -59,7 +59,7 @@ static char *soa_fieldnames[5] = {
|
||||
"serial", "refresh", "retry", "expire", "minimum"
|
||||
} ;
|
||||
|
||||
static dns_result_t
|
||||
static inline dns_result_t
|
||||
totext_soa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
@@ -128,7 +128,7 @@ totext_soa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static dns_result_t
|
||||
static inline dns_result_t
|
||||
fromwire_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
@@ -167,7 +167,7 @@ fromwire_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static dns_result_t
|
||||
static inline dns_result_t
|
||||
towire_soa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
@@ -202,7 +202,7 @@ towire_soa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static int
|
||||
static inline int
|
||||
compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
isc_region_t region1;
|
||||
isc_region_t region2;
|
||||
@@ -246,7 +246,7 @@ compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
return (compare_region(®ion1, ®ion2));
|
||||
}
|
||||
|
||||
static dns_result_t
|
||||
static inline dns_result_t
|
||||
fromstruct_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
@@ -260,7 +260,7 @@ fromstruct_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static dns_result_t
|
||||
static inline dns_result_t
|
||||
tostruct_soa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
isc_region_t region;
|
||||
dns_rdata_soa_t *soa = target;
|
||||
@@ -296,7 +296,7 @@ tostruct_soa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static void
|
||||
static inline void
|
||||
freestruct_soa(void *source) {
|
||||
dns_rdata_soa_t *soa = source;
|
||||
|
||||
@@ -305,7 +305,7 @@ freestruct_soa(void *source) {
|
||||
/* No action required */
|
||||
}
|
||||
|
||||
static dns_result_t
|
||||
static inline dns_result_t
|
||||
additionaldata_soa(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||
void *arg)
|
||||
{
|
||||
|
Reference in New Issue
Block a user