diff options
| author | David Bremner <david@tethera.net> | 2022-01-01 08:01:34 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-01-18 08:08:22 -0400 |
| commit | 417d202e642e0af0ef692e3ce250a6af985c7442 (patch) | |
| tree | 8617b002f1883a834ecb37a4e28d46749268c1c5 /notmuch-client.h | |
| parent | 78e6cf12c05222c324110aa1eb9df9d99baa91a1 (diff) | |
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.
Diffstat (limited to 'notmuch-client.h')
| -rw-r--r-- | notmuch-client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index de318e1f..9f57ac5e 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -65,7 +65,7 @@ struct sprinter; struct notmuch_show_params; typedef struct notmuch_show_format { - struct sprinter *(*new_sprinter)(const void *ctx, FILE *stream); + struct sprinter *(*new_sprinter)(notmuch_database_t * db, FILE *stream); notmuch_status_t (*part)(const void *ctx, struct sprinter *sprinter, struct mime_node *node, int indent, const struct notmuch_show_params *params); |
