ObjFW  Diff

Differences From Artifact [cb52fc4c79]:

To Artifact [30273f1f1b]:


637
638
639
640
641
642
643
644

645
646
647
648
649
650
651
652
653

654
655
656
657
658
659
660
661
637
638
639
640
641
642
643

644
645
646
647
648
649
650
651
652

653

654
655
656
657
658
659
660







-
+








-
+
-







extern OFString *_Nonnull OFDNSRecordTypeName(OFDNSRecordType recordType);

/**
 * @brief Parses the specified string as an @ref OFDNSClass.
 *
 * @param string The string to parse as an @ref OFDNSClass
 * @return The parsed OFDNSClass
 * @throw OFInvalidArgumentException The specified string is not valid DNS class
 * @throw OFInvalidFormatException The specified string is not valid DNS class
 */
extern OFDNSClass OFDNSClassParseName(OFString *_Nonnull string);

/**
 * @brief Parses the specified string as an @ref OFDNSRecordType.
 *
 * @param string The string to parse as an @ref OFDNSRecordType
 * @return The parsed OFDNSRecordType
 * @throw OFInvalidArgumentException The specified string is not valid record
 * @throw OFInvalidFormatException The specified string is not valid DNS class
 *				     type
 */
extern OFDNSRecordType OFDNSRecordTypeParseName(OFString *_Nonnull string);
#ifdef __cplusplus
}
#endif

OF_ASSUME_NONNULL_END