Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00039 #ifndef LDNS_DNAME_H
00040 #define LDNS_DNAME_H
00041
00042 #include <ldns/common.h>
00043 #include <ldns/rdata.h>
00044
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048
00049 #define LDNS_DNAME_NORMALIZE tolower
00050
00057 ldns_rdf *ldns_dname_cat_clone(const ldns_rdf *rd1, const ldns_rdf *rd2);
00058
00065 ldns_status ldns_dname_cat(ldns_rdf *rd1, ldns_rdf *rd2);
00066
00073 ldns_rdf *ldns_dname_reverse(const ldns_rdf *d);
00074
00084 ldns_rdf *
00085 ldns_dname_clone_from(const ldns_rdf *d, uint16_t n);
00086
00094 ldns_rdf *ldns_dname_left_chop(const ldns_rdf *d);
00095
00101 uint8_t ldns_dname_label_count(const ldns_rdf *r);
00102
00108 ldns_rdf *ldns_dname_new_frm_str(const char *str);
00109
00116 ldns_rdf *ldns_dname_new(uint16_t s, void *data);
00117
00124 ldns_rdf *ldns_dname_new_frm_data(uint16_t size, const void *data);
00125
00131 void ldns_dname2canonical(const ldns_rdf *rdf);
00132
00141 bool ldns_dname_is_subdomain(const ldns_rdf *sub, const ldns_rdf *parent);
00142
00150 int ldns_dname_compare(const ldns_rdf *dname1, const ldns_rdf *dname2);
00151
00161 int ldns_dname_match_wildcard(const ldns_rdf *dname, const ldns_rdf *wildcard);
00162
00171 int ldns_dname_interval(const ldns_rdf *prev, const ldns_rdf *middle, const ldns_rdf *next);
00172
00178 bool ldns_dname_str_absolute(const char *dname_str);
00179
00188 ldns_rdf * ldns_dname_label(const ldns_rdf *rdf, uint8_t labelpos);
00189
00195 int ldns_dname_is_wildcard(const ldns_rdf* dname);
00196
00197 #ifdef __cplusplus
00198 }
00199 #endif
00200
00201 #endif