GnuCash  5.6-150-g038405b370+
Macros | Functions
qof-string-cache.h File Reference

QOF String cache functions. More...

Go to the source code of this file.

Macros

#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("")
 

Functions

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.

Author
Copyright (C) 1997 Robin D. Clark rclar.nosp@m.k@cs.nosp@m..hmc..nosp@m.edu
Copyright (C) 2000 Bill Gribble grib@.nosp@m.bill.nosp@m.gribb.nosp@m.le.c.nosp@m.om
Copyright (C) 1997-2002,2004 Linas Vepstas linas.nosp@m.@lin.nosp@m.as.or.nosp@m.g
Copyright 2006 Neil Williams linux.nosp@m.@cod.nosp@m.ehelp.nosp@m..co..nosp@m.uk
Copyright 2012 Phil Longstaff phil..nosp@m.long.nosp@m.staff.nosp@m.@yah.nosp@m.oo.ca

Definition in file qof-string-cache.h.