rr_functions.h
Go to the documentation of this file.
1 /*
2  * rr_functions.h
3  *
4  * the .h file with defs for the per rr
5  * functions
6  *
7  * a Net::DNS like library for C
8  *
9  * (c) NLnet Labs, 2005-2006
10  *
11  * See the file LICENSE for the license
12  */
13 #ifndef LDNS_RR_FUNCTIONS_H
14 #define LDNS_RR_FUNCTIONS_H
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
26 /* A / AAAA */
33 
41 
42 /* NS */
49 
50 /* MX */
63 
64 /* RRSIG */
182 
183 /* DNSKEY */
236 
244 size_t ldns_rr_dnskey_key_size_raw(const unsigned char *keydata,
245  const size_t len,
246  const ldns_algorithm alg);
247 
253 size_t ldns_rr_dnskey_key_size(const ldns_rr *key);
254 
266 typedef uint32_t (*ldns_soa_serial_increment_func_t)(uint32_t, void*);
267 
274 uint32_t ldns_soa_serial_identity(uint32_t unused, void *data);
275 
282 uint32_t ldns_soa_serial_increment(uint32_t s, void *unused);
283 
290 uint32_t ldns_soa_serial_increment_by(uint32_t s, void *data);
291 
303 uint32_t ldns_soa_serial_unixtime(uint32_t s, void *data);
304 
316 uint32_t ldns_soa_serial_datecounter(uint32_t s, void *data);
317 
323  ldns_rr *soa);
324 
334 
343  ldns_rr *soa, ldns_soa_serial_increment_func_t f, void *data);
344 
357  ldns_rr *soa, ldns_soa_serial_increment_func_t f, int data);
358 
359 #ifdef __cplusplus
360 }
361 #endif
362 
363 #endif /* LDNS_RR_FUNCTIONS_H */