Lines Matching defs:diff
35 #include <dns/diff.h>
988 dns_journal_writediff(dns_journal_t *j, dns_diff_t *diff) {
996 REQUIRE(DNS_DIFF_VALID(diff));
1000 (void)dns_diff_print(diff, NULL);
1007 for (t = ISC_LIST_HEAD(diff->tuples); t != NULL;
1031 for (t = ISC_LIST_HEAD(diff->tuples); t != NULL;
1181 dns_journal_write_transaction(dns_journal_t *j, dns_diff_t *diff) {
1183 CHECK(dns_diff_sort(diff, ixfr_order));
1185 CHECK(dns_journal_writediff(j, diff));
1235 dns_diff_t diff;
1243 dns_diff_init(j->mctx, &diff);
1316 CHECK(dns_difftuple_create(diff.mctx, op, name, ttl, rdata,
1318 dns_diff_append(&diff, &tuple);
1322 "%s: applying diff to database (%u)",
1324 (void)dns_diff_print(&diff, NULL);
1325 CHECK(dns_diff_apply(&diff, db, ver));
1326 dns_diff_clear(&diff);
1336 "%s: applying final diff to database (%u)",
1338 (void)dns_diff_print(&diff, NULL);
1339 CHECK(dns_diff_apply(&diff, db, ver));
1340 dns_diff_clear(&diff);
1353 dns_diff_clear(&diff);
1405 dns_diff_t diff;
1425 dns_diff_init(j->mctx, &diff);
1464 CHECK(dns_difftuple_create(diff.mctx, n_soa == 1 ?
1467 dns_diff_append(&diff, &tuple);
1470 result = dns_diff_print(&diff, file);
1471 dns_diff_clear(&diff);
1482 result = dns_diff_print(&diff, file);
1483 dns_diff_clear(&diff);
1497 dns_diff_clear(&diff);
1727 * Construct a diff containing all the RRs at the current name of the
1729 * Set '*name' to the current name, and append the diff to 'diff'.
1738 dns_diff_t *diff)
1768 result = dns_difftuple_create(diff->mctx, op, name,
1775 dns_diff_append(diff, &tuple);
1816 dns_diff_subtract(dns_diff_t diff[2], dns_diff_t *r) {
1822 CHECK(dns_diff_sort(&diff[0], rdata_order));
1823 CHECK(dns_diff_sort(&diff[1], rdata_order));
1826 p[0] = ISC_LIST_HEAD(diff[0].tuples);
1827 p[1] = ISC_LIST_HEAD(diff[1].tuples);
1833 ISC_LIST_UNLINK(diff[i].tuples, p[i], link);
1839 ISC_LIST_UNLINK(diff[0].tuples, p[0], link);
1844 ISC_LIST_UNLINK(diff[1].tuples, p[1], link);
1855 ISC_LIST_UNLINK(diff[i].tuples, p[i], link);
1881 dns_diff_t diff[2];
1887 dns_diff_init(mctx, &diff[0]);
1888 dns_diff_init(mctx, &diff[1]);
1911 &diff[i]));
1918 INSIST(ISC_LIST_EMPTY(diff[0].tuples));
1919 INSIST(ISC_LIST_EMPTY(diff[1].tuples));
1926 diff[i].tuples, link);
1927 INSIST(ISC_LIST_EMPTY(diff[i].tuples));
1937 diff[0].tuples, link);
1938 INSIST(ISC_LIST_EMPTY(diff[0].tuples));
1944 diff[1].tuples, link);
1945 INSIST(ISC_LIST_EMPTY(diff[1].tuples));
1950 CHECK(dns_diff_subtract(diff, resultdiff));
1951 INSIST(ISC_LIST_EMPTY(diff[0].tuples));
1952 INSIST(ISC_LIST_EMPTY(diff[1].tuples));
1961 INSIST(ISC_LIST_EMPTY(diff[0].tuples));
1962 INSIST(ISC_LIST_EMPTY(diff[1].tuples));