NeoMutt  2024-10-02-37-gfa9146
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 276 of file bdb.c.

277{
278 return DB_VERSION_STRING;
279}

◆ store_gdbm_version()

static const char * store_gdbm_version ( void  )
static

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

Definition at line 151 of file gdbm.c.

152{
153 return gdbm_version;
154}

◆ 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 153 of file kc.c.

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

◆ store_lmdb_version()

static const char * store_lmdb_version ( void  )
static

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

Definition at line 355 of file lmdb.c.

356{
357 return "lmdb " MDB_VERSION_STRING;
358}

◆ 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 219 of file rocksdb.c.

220{
221/* return sth. like "RocksDB 6.7.3" */
222#define RDBVER(major, minor, patch) #major "." #minor "." #patch
223 return "RocksDB " RDBVER(ROCKSDB_MAJOR, ROCKSDB_MINOR, ROCKSDB_PATCH);
224}
#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 147 of file tc.c.

148{
149 return "tokyocabinet " _TC_VERSION;
150}

◆ store_tdb_version()

static const char * store_tdb_version ( void  )
static

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

Definition at line 148 of file tdb.c.

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