|
@@ -266,38 +266,6 @@ private:
|
|
|
RdataEncoderImpl* impl_;
|
|
|
};
|
|
|
|
|
|
-// We use the following quick-hack version of "foreach"
|
|
|
-// operators until we implement the complete versions. The plan is to
|
|
|
-// update the test cases that use these functions with the complete
|
|
|
-// functions/classes, and then remove the entire namespace.
|
|
|
-namespace testing {
|
|
|
-// Callbacks used in foreachRdataField.
|
|
|
-typedef boost::function<void(const dns::LabelSequence&,
|
|
|
- RdataNameAttributes)> NameCallback;
|
|
|
-typedef boost::function<void(const uint8_t*, size_t)> DataCallback;
|
|
|
-
|
|
|
-// Iterate over each field (in terms of the internal encoding) of each
|
|
|
-// RDATA stored in encoded_data, and call the given callback for each
|
|
|
-// data (for domain name fields, name_callback will be called; for
|
|
|
-// normal data fields data_callback will be called). rdata_count is
|
|
|
-// the number of RDATAs. If the encoded data contain variable-length
|
|
|
-// data fields, varlen_list should store a sequence of their lengths,
|
|
|
-// in the order of the appearance.
|
|
|
-void foreachRdataField(dns::RRClass rrclass, dns::RRType rrtype,
|
|
|
- size_t rdata_count,
|
|
|
- const std::vector<uint8_t>& encoded_data,
|
|
|
- const std::vector<uint16_t>& varlen_list,
|
|
|
- NameCallback name_callback, DataCallback data_callback);
|
|
|
-
|
|
|
-// Iterate over each RRSIG stored in encoded_data, and call the given
|
|
|
-// callback for each. rrsiglen_list should store a sequence of their lengths,
|
|
|
-// in the order of the appearance. Its size is the number of RRSIGs.
|
|
|
-// The list can be empty, in which case this function does nothing.
|
|
|
-void foreachRRSig(const std::vector<uint8_t>& encoded_data,
|
|
|
- const std::vector<uint16_t>& rrsiglen_list,
|
|
|
- DataCallback data_callback);
|
|
|
-}
|
|
|
-
|
|
|
} // namespace memory
|
|
|
} // namespace datasrc
|
|
|
} // namespace isc
|