NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN

Get a Store version string. More...

+ Collaboration diagram for version():

Functions

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

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

Implements StoreOps::version() -.

Definition at line 247 of file bdb.c.

248 {
249  return DB_VERSION_STRING;
250 }

◆ store_gdbm_version()

static const char* store_gdbm_version ( void  )
static

Implements StoreOps::version() -.

Definition at line 142 of file gdbm.c.

143 {
144  return gdbm_version;
145 }

◆ store_kyotocabinet_version()

static const char* store_kyotocabinet_version ( void  )
static

Implements StoreOps::version() -.

< should be more than enough for KCVERSION

Definition at line 148 of file kc.c.

149 {
150  static char version_cache[128] = { 0 };
151  if (version_cache[0] == '\0')
152  snprintf(version_cache, sizeof(version_cache), "kyotocabinet %s", KCVERSION);
153 
154  return version_cache;
155 }

◆ store_lmdb_version()

static const char* store_lmdb_version ( void  )
static

Implements StoreOps::version() -.

Definition at line 318 of file lmdb.c.

319 {
320  return "lmdb " MDB_VERSION_STRING;
321 }

◆ store_qdbm_version()

static const char* store_qdbm_version ( void  )
static

Implements StoreOps::version() -.

Definition at line 121 of file qdbm.c.

122 {
123  return "qdbm " _QDBM_VERSION;
124 }

◆ store_rocksdb_version()

static const char* store_rocksdb_version ( void  )
static

Implements StoreOps::version() -.

Definition at line 184 of file rocksdb.c.

185 {
186 /* return sth. like "RocksDB 6.7.3" */
187 #define RDBVER(major, minor, patch) #major "." #minor "." #patch
188  return "RocksDB " RDBVER(ROCKSDB_MAJOR, ROCKSDB_MINOR, ROCKSDB_PATCH);
189 }
#define RDBVER(major, minor, patch)

◆ store_tokyocabinet_version()

static const char* store_tokyocabinet_version ( void  )
static

Implements StoreOps::version() -.

Definition at line 140 of file tc.c.

141 {
142  return "tokyocabinet " _TC_VERSION;
143 }

◆ store_tdb_version()

static const char* store_tdb_version ( void  )
static

Implements StoreOps::version() -.

Definition at line 136 of file tdb.c.

137 {
138  // TDB doesn't supply any version info
139  return "tdb";
140 }