Cache of config variables. More...
#include "config.h"
#include <stdbool.h>
#include <string.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "config_cache.h"
#include "neomutt.h"
Go to the source code of this file.
Functions | |
static int | cc_config_observer (struct NotifyCallback *nc) |
Notification that a Config Variable has changed - Implements observer_t -. | |
static void | cache_setup (void) |
Setup a cache of some config variables. | |
const struct Slist * | cc_assumed_charset (void) |
Get the cached value of $assumed_charset. | |
const char * | cc_charset (void) |
Get the cached value of $charset. | |
const char * | cc_maildir_field_delimiter (void) |
Get the cached value of $maildir_field_delimiter. | |
void | config_cache_cleanup (void) |
Cleanup the cache of charset config variables. | |
Variables | |
static bool | CacheActive = false |
Is the cache enabled? | |
static const struct Slist * | CachedAssumedCharset = NULL |
Cached value of $assumed_charset. | |
static const char * | CachedCharset = NULL |
Cached value of $charset. | |
static const char * | CachedMaildirFieldDelimiter = NULL |
Cached value of $maildir_field_delimiter. | |
Cache of config variables.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file config_cache.c.
|
static |
Setup a cache of some config variables.
Definition at line 83 of file config_cache.c.
const struct Slist * cc_assumed_charset | ( | void | ) |
Get the cached value of $assumed_charset.
ptr | Value of $assumed_charset |
Definition at line 101 of file config_cache.c.
const char * cc_charset | ( | void | ) |
Get the cached value of $charset.
ptr | Value of $charset |
Definition at line 116 of file config_cache.c.
const char * cc_maildir_field_delimiter | ( | void | ) |
Get the cached value of $maildir_field_delimiter.
ptr | Value of $maildir_field_delimiter |
Definition at line 131 of file config_cache.c.
void config_cache_cleanup | ( | void | ) |
Cleanup the cache of charset config variables.
Definition at line 145 of file config_cache.c.
|
static |
Is the cache enabled?
Definition at line 39 of file config_cache.c.
|
static |
Cached value of $assumed_charset.
Definition at line 41 of file config_cache.c.
|
static |
Cached value of $charset.
Definition at line 43 of file config_cache.c.
|
static |
Cached value of $maildir_field_delimiter.
Definition at line 45 of file config_cache.c.