diff options
author | Austin Clements <amdragon@mit.edu> | 2014-10-06 17:17:07 -0600 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-10-11 07:09:54 +0200 |
commit | 54ec8a0fd87ae7a32c8208be67a345c0eeea7f69 (patch) | |
tree | dd3ad3869bff03bab4dae8e58ea8e7f7bfa25fe1 /lib/notmuch-private.h | |
parent | 1c3b8fba226b4626212a37b503d9ebae3314edf4 (diff) |
lib: Move message ID compression to _notmuch_message_create_for_message_id
Previously, this was performed by notmuch_database_add_message. This
happens to be the only caller currently (which is why this was safe),
but we're about to introduce more callers, and it makes more sense to
put responsibility for ID compression in the lower-level function
rather than requiring each caller to handle it.
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r-- | lib/notmuch-private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 17f30613..36cc12b0 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -174,6 +174,9 @@ typedef struct _notmuch_doc_id_set notmuch_doc_id_set_t; const char * _find_prefix (const char *name); +char * +_notmuch_message_id_compressed (void *ctx, const char *message_id); + notmuch_status_t _notmuch_database_ensure_writable (notmuch_database_t *notmuch); |