Skip to content

nqddiff(3)

nqddiff — what changed between two capsules

libnqd, -lnqd -lnoqtis

#include <nqd.h>

int
nqddiff(const char *a, const char *b, nqdrep **rep);

() compares the capsule in folder a with the one in b and reports, as nqdchk(3) does, one failed row per difference: a ‘manifest’ row (passed) with the file counts, or saying a folder is not sealed; ‘file’ rows for files added, removed or changed between the manifests (read with nqfiles(3)); and rows named ‘source’, ‘schema’, ‘stats’, ‘check’, ‘env’, ‘cite’, ‘steps’ and ‘commits’ for the differences of the data records, as noqtis-diff(1) describes. Nothing is checked.

NQOK when nothing differs, NQEVRFY when something does, with *rep set in both cases; NQEARG or NQEMEM without a report.

noqtis-diff(1), nqdchk(3), nqfiles(3), noqtis-data(5)