]> git.cworth.org Git - notmuch/commit
CLI: stash pointer to database in sprinter structs
authorDavid Bremner <david@tethera.net>
Sat, 1 Jan 2022 12:01:34 +0000 (08:01 -0400)
committerDavid Bremner <david@tethera.net>
Tue, 18 Jan 2022 12:08:22 +0000 (08:08 -0400)
commit417d202e642e0af0ef692e3ce250a6af985c7442
tree8617b002f1883a834ecb37a4e28d46749268c1c5
parent78e6cf12c05222c324110aa1eb9df9d99baa91a1
CLI: stash pointer to database in sprinter structs

We already use an allocated (and presumably open) database as a talloc
context. Keeping the pointer in the allocated struct will allow us to
e.g. interrogate the configuration in a sprinter function without
threading the database all the way through the various levels of function.
notmuch-client.h
sprinter-json.c
sprinter-sexp.c
sprinter-text.c
sprinter.h