Lines Matching refs:rdataset

27 /*! \file dns/rdataset.h
29 * A DNS rdataset is a handle that can be associated with a collection of
69 void (*disassociate)(dns_rdataset_t *rdataset);
70 isc_result_t (*first)(dns_rdataset_t *rdataset);
71 isc_result_t (*next)(dns_rdataset_t *rdataset);
72 void (*current)(dns_rdataset_t *rdataset,
76 unsigned int (*count)(dns_rdataset_t *rdataset);
77 isc_result_t (*addnoqname)(dns_rdataset_t *rdataset,
79 isc_result_t (*getnoqname)(dns_rdataset_t *rdataset,
83 isc_result_t (*addclosest)(dns_rdataset_t *rdataset,
85 isc_result_t (*getclosest)(dns_rdataset_t *rdataset,
89 isc_result_t (*getadditional)(dns_rdataset_t *rdataset,
100 isc_result_t (*setadditional)(dns_rdataset_t *rdataset,
110 dns_rdataset_t *rdataset,
113 void (*settrust)(dns_rdataset_t *rdataset,
115 void (*expire)(dns_rdataset_t *rdataset);
125 * rdataset implementations may change any of the fields.
134 * once you have the rdataset.
159 * These are for use by the rdataset implementation, and MUST NOT
175 * Used by message.c to indicate that the rdataset was rendered.
178 * Used by message.c to indicate that the rdataset's rdata had differing
179 * TTL values, and the rdataset->ttl holds the smallest.
215 dns_rdataset_init(dns_rdataset_t *rdataset);
217 * Make 'rdataset' a valid, disassociated rdataset.
220 *\li 'rdataset' is not NULL.
223 *\li 'rdataset' is a valid, disassociated rdataset.
227 dns_rdataset_invalidate(dns_rdataset_t *rdataset);
229 * Invalidate 'rdataset'.
232 *\li 'rdataset' is a valid, disassociated rdataset.
235 *\li If assertion checking is enabled, future attempts to use 'rdataset'
240 dns_rdataset_disassociate(dns_rdataset_t *rdataset);
242 * Disassociate 'rdataset' from its rdata, allowing it to be reused.
245 *\li The client must ensure it has no references to rdata in the rdataset
249 *\li 'rdataset' is a valid, associated rdataset.
252 *\li 'rdataset' is a valid, disassociated rdataset.
256 dns_rdataset_isassociated(dns_rdataset_t *rdataset);
258 * Is 'rdataset' associated?
261 *\li 'rdataset' is a valid rdataset.
264 *\li #ISC_TRUE 'rdataset' is associated.
265 *\li #ISC_FALSE 'rdataset' is not associated.
269 dns_rdataset_makequestion(dns_rdataset_t *rdataset, dns_rdataclass_t rdclass,
272 * Make 'rdataset' a valid, associated, question rdataset, with a
279 *\li 'rdataset' is a valid, disassociated rdataset.
282 *\li 'rdataset' is a valid, associated, question rdataset.
288 * Make 'target' refer to the same rdataset as 'source'.
291 *\li 'source' is a valid, associated rdataset.
293 *\li 'target' is a valid, dissociated rdataset.
296 *\li 'target' references the same rdataset as 'source'.
300 dns_rdataset_count(dns_rdataset_t *rdataset);
302 * Return the number of records in 'rdataset'.
305 *\li 'rdataset' is a valid, associated rdataset.
308 *\li The number of records in 'rdataset'.
312 dns_rdataset_first(dns_rdataset_t *rdataset);
314 * Move the rdata cursor to the first rdata in the rdataset (if any).
317 *\li 'rdataset' is a valid, associated rdataset.
325 dns_rdataset_next(dns_rdataset_t *rdataset);
327 * Move the rdata cursor to the next rdata in the rdataset (if any).
330 *\li 'rdataset' is a valid, associated rdataset.
338 dns_rdataset_current(dns_rdataset_t *rdataset, dns_rdata_t *rdata);
345 * rdataset; in particular, subsequent changes in the cursor position
349 *\li 'rdataset' is a valid, associated rdataset.
351 *\li The rdata cursor of 'rdataset' is at a valid location (i.e. the
356 *\li 'rdataset'.
360 dns_rdataset_totext(dns_rdataset_t *rdataset,
366 * Convert 'rdataset' to text format, storing the result in 'target'.
379 *\li 'rdataset' is a valid rdataset.
381 *\li 'rdataset' is not empty.
385 dns_rdataset_towire(dns_rdataset_t *rdataset,
392 * Convert 'rdataset' to wire format, compressing names as specified
401 *\li 'rdataset' is a valid rdataset.
403 *\li 'rdataset' is not empty.
409 * for the data contained in 'rdataset'. Any error return leaves
424 dns_rdataset_towiresorted(dns_rdataset_t *rdataset,
434 * the integer value returned by 'order' when called with the rdataset
443 dns_rdataset_towirepartial(dns_rdataset_t *rdataset,
453 * Like dns_rdataset_towiresorted() except that a partial rdataset
459 * rdataset will be remembered if the rdataset in not
471 dns_rdataset_additionaldata(dns_rdataset_t *rdataset,
474 * For each rdata in rdataset, call 'add' for each name and type in the
479 *\li 'rdataset' is a valid, non-question rdataset.
486 * each rdata in 'rdataset'.
499 dns_rdataset_getnoqname(dns_rdataset_t *rdataset, dns_name_t *name,
505 *\li 'rdataset' to be valid and #DNS_RDATASETATTR_NOQNAME to be set.
511 dns_rdataset_addnoqname(dns_rdataset_t *rdataset, dns_name_t *name);
515 * Adjusts the 'rdataset->ttl' to minimum of the 'rdataset->ttl' and
519 *\li 'rdataset' to be valid and #DNS_RDATASETATTR_NOQNAME to be set.
525 dns_rdataset_getclosest(dns_rdataset_t *rdataset, dns_name_t *name,
531 *\li 'rdataset' to be valid and #DNS_RDATASETATTR_CLOSEST to be set.
537 dns_rdataset_addclosest(dns_rdataset_t *rdataset, dns_name_t *name);
541 * Adjusts the 'rdataset->ttl' to minimum of the 'rdataset->ttl' and
545 *\li 'rdataset' to be valid and #DNS_RDATASETATTR_CLOSEST to be set.
550 dns_rdataset_getadditional(dns_rdataset_t *rdataset,
563 * 'rdataset.' 'type' is one of dns_rdatasetadditional_fromauth,
569 * \li 'rdataset' is a valid rdataset.
581 * information for 'rdataset.'
586 dns_rdataset_setadditional(dns_rdataset_t *rdataset,
597 * 'rdataset.' See dns_rdataset_getadditional for the semantics of 'type'
601 * \li 'rdataset' is a valid rdataset.
618 dns_rdataset_t *rdataset,
623 * 'rdataset.' See dns_rdataset_getadditional for the semantics of 'type'
627 * \li 'rdataset' is a valid rdataset.
638 * information for 'rdataset.'
642 dns_rdataset_settrust(dns_rdataset_t *rdataset, dns_trust_t trust);
644 * Set the trust of the 'rdataset' to trust in any in the backing database.
645 * The local trust level of 'rdataset' is also set.
649 dns_rdataset_expire(dns_rdataset_t *rdataset);
651 * Mark the rdataset to be expired in the backing database.