NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches

Get a Store version string. More...

+ Collaboration diagram for version():

Functions

static const char * store_bdb_version (void)
 Get a Store version string - Implements StoreOps::version() -.
 
static const char * store_gdbm_version (void)
 Get a Store version string - Implements StoreOps::version() -.
 
static const char * store_kyotocabinet_version (void)
 Get a Store version string - Implements StoreOps::version() -.
 
static const char * store_lmdb_version (void)
 Get a Store version string - Implements StoreOps::version() -.
 
static const char * store_qdbm_version (void)
 Get a Store version string - Implements StoreOps::version() -.
 
static const char * store_rocksdb_version (void)
 Get a Store version string - Implements StoreOps::version() -.
 
static const char * store_tokyocabinet_version (void)
 Get a Store version string - Implements StoreOps::version() -.
 
static const char * store_tdb_version (void)
 Get a Store version string - Implements StoreOps::version() -.
 

Detailed Description

Get a Store version string.

Return values
ptrString describing the currently used Store

Function Documentation

◆ store_bdb_version()

static const char * store_bdb_version ( void  )
static

Get a Store version string - Implements StoreOps::version() -.

Definition at line 274 of file bdb.c.

275{
276 return DB_VERSION_STRING;
277}

◆ store_gdbm_version()

static const char * store_gdbm_version ( void  )
static

Get a Store version string - Implements StoreOps::version() -.

Definition at line 149 of file gdbm.c.

150{
151 return gdbm_version;
152}

◆ store_kyotocabinet_version()

static const char * store_kyotocabinet_version ( void  )
static

Get a Store version string - Implements StoreOps::version() -.

< should be more than enough for KCVERSION

Definition at line 152 of file kc.c.

153{
154 static char version_cache[128] = { 0 };
155 if (version_cache[0] == '\0')
156 snprintf(version_cache, sizeof(version_cache), "kyotocabinet %s", KCVERSION);
157
158 return version_cache;
159}

◆ store_lmdb_version()

static const char * store_lmdb_version ( void  )
static

Get a Store version string - Implements StoreOps::version() -.

Definition at line 348 of file lmdb.c.

349{
350 return "lmdb " MDB_VERSION_STRING;
351}

◆ store_qdbm_version()

static const char * store_qdbm_version ( void  )
static

Get a Store version string - Implements StoreOps::version() -.

Definition at line 127 of file qdbm.c.

128{
129 return "qdbm " _QDBM_VERSION;
130}

◆ store_rocksdb_version()

static const char * store_rocksdb_version ( void  )
static

Get a Store version string - Implements StoreOps::version() -.

Definition at line 215 of file rocksdb.c.

216{
217/* return sth. like "RocksDB 6.7.3" */
218#define RDBVER(major, minor, patch) #major "." #minor "." #patch
219 return "RocksDB " RDBVER(ROCKSDB_MAJOR, ROCKSDB_MINOR, ROCKSDB_PATCH);
220}
#define RDBVER(major, minor, patch)

◆ store_tokyocabinet_version()

static const char * store_tokyocabinet_version ( void  )
static

Get a Store version string - Implements StoreOps::version() -.

Definition at line 146 of file tc.c.

147{
148 return "tokyocabinet " _TC_VERSION;
149}

◆ store_tdb_version()

static const char * store_tdb_version ( void  )
static

Get a Store version string - Implements StoreOps::version() -.

Definition at line 146 of file tdb.c.

147{
148 // TDB doesn't supply any version info
149 return "tdb";
150}