diff options
| author | David Bremner <david@tethera.net> | 2020-08-08 11:16:51 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-02-06 19:25:35 -0400 |
| commit | dd6b50709970ad08fbf0a09111bd3a0c31455518 (patch) | |
| tree | c95b5cf1fdcca51cf876fcf97d9d10bccd8a646d /notmuch-config.c | |
| parent | d613d10ddd5948b4fa5a186fc54752047b25023d (diff) | |
cli/config: add accessor for config file name
This is intended for use in temporary code transitioning to the new
configuration system. The name is chosen to avoid cluttering the
notmuch_config_* namespace further with non-library functions.
Diffstat (limited to 'notmuch-config.c')
| -rw-r--r-- | notmuch-config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-config.c b/notmuch-config.c index 4fa274c7..0193401f 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -510,6 +510,9 @@ notmuch_config_close (notmuch_config_t *config) talloc_free (config); } +const char *_notmuch_config_get_path (notmuch_config_t *config) { + return config->filename; +} /* Save any changes made to the notmuch configuration. * * Any comments originally in the file will be preserved. |
