GnuCash  4.11-11-ge9df8d41d2+
Macros | Functions
qof-string-cache.h File Reference

QOF String cache functions. More...

Go to the source code of this file.


#define QOF_MOD_UTIL   "qof.utilities"
#define CACHE_INSERT(str)   qof_string_cache_insert((str))
#define CACHE_REMOVE(str)   qof_string_cache_remove((str))
#define CACHE_REPLACE(dst, src)
#define QOF_CACHE_NEW(void)   qof_string_cache_insert("")


void qof_string_cache_init (void)
 The QOF String Cache: More...
void qof_string_cache_destroy (void)
 Destroy the qof_string_cache.
void qof_string_cache_remove (const char *key)
 You can use this function as a destroy notifier for a GHashTable that uses common strings as keys (or values, for that matter.)
const char * qof_string_cache_insert (const char *key)
 You can use this function with g_hash_table_insert(), for the key (or value), as long as you use the destroy notifier above.
const char * qof_string_cache_replace (const char *dst, const char *src)
 Same as CACHE_REPLACE below, but safe to call from C++.

Detailed Description

QOF String cache functions.

Copyright (C) 1997 Robin D. Clark
Copyright (C) 2000 Bill Gribble
Copyright (C) 1997-2002,2004 Linas Vepstas
Copyright 2006 Neil Williams
Copyright 2012 Phil Longstaff

Definition in file qof-string-cache.h.