@@ -22,10 +22,11 @@ OF_ASSUME_NONNULL_BEGIN /*! @file */ +@class OFArray OF_GENERIC(ObjectType); @class OFData; /*! * @brief The DNS class. */ @@ -588,17 +589,17 @@ * @brief A class representing a TXT DNS resource record. */ OF_SUBCLASSING_RESTRICTED @interface OFTXTDNSResourceRecord: OFDNSResourceRecord { - OFData *_textData; + OFArray OF_GENERIC(OFData *) *_textStrings; } /*! * @brief The text of the resource record. */ -@property (readonly, nonatomic) OFData *textData; +@property (readonly, nonatomic) OFArray OF_GENERIC(OFData *) *textStrings; - (instancetype)initWithName: (OFString *)name DNSClass: (of_dns_class_t)DNSClass recordType: (of_dns_record_type_t)recordType TTL: (uint32_t)TTL OF_UNAVAILABLE; @@ -607,17 +608,17 @@ * @brief Initializes an already allocated OFTXTDNSResourceRecord with the * specified name, class, text data and time to live. * * @param name The name for the resource record * @param DNSClass The class code for the resource record - * @param textData The data for the resource record + * @param textStrings An array of text strings for the resource record * @param TTL The time to live for the resource record * @return An initialized OFTXTDNSResourceRecord */ - (instancetype)initWithName: (OFString *)name DNSClass: (of_dns_class_t)DNSClass - textData: (OFData *)textData + textStrings: (OFArray OF_GENERIC(OFData *) *)textStrings TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER; @end #ifdef __cplusplus extern "C" {