We don't need the end, but I prefer to get rid of the exception,
as we now require libknot > 2.6 anyway and it only implies adding
a few more binding lines.
uint16_t pos;
uint16_t count;
} knot_pktsection_t;
+struct knot_compr {
+ uint8_t *wire;
+ knot_rrinfo_t *rrinfo;
+ struct {
+ uint16_t pos;
+ uint8_t labels;
+ } suffix;
+};
+typedef struct knot_compr knot_compr_t;
struct knot_pkt {
uint8_t *wire;
size_t size;
knot_rrinfo_t *rr_info;
knot_rrset_t *rr;
knot_mm_t mm;
- char _stub[]; /* TMP: do NOT replace yet (changed in libknot-2.6.0) */
+ knot_compr_t compr;
};
typedef struct knot_pkt knot_pkt_t;
typedef struct {
struct knot_rdataset
knot_rrset_t
knot_pktsection_t
+ struct knot_compr
+ knot_compr_t
struct knot_pkt
knot_pkt_t
# generics