1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-31 18:24:25 +03:00

Cleaning wsrep-API dependencies from library code

Replace all wsrep_api.h dependencies with similar code
in library implementation.

Also add gcc/g++ 4.4 to travis automation to get better
compiler coverage.
This commit is contained in:
Teemu Ollakka
2019-02-16 17:09:18 +02:00
parent 58aa3e821f
commit 29835fbec0
14 changed files with 354 additions and 30 deletions

View File

@ -25,6 +25,7 @@
#include "buffer.hpp"
#include "client_id.hpp"
#include "transaction_id.hpp"
#include "compiler.hpp"
#include <cassert>
#include <cstring>
@ -404,6 +405,14 @@ namespace wsrep
*/
virtual void* native() const = 0;
/**
* Empty provider magic. If none provider is passed to make_provider(),
* a dummy provider is loaded.
*/
static WSREP_CONSTEXPR_OR_INLINE
const char* none() { return "none"; }
/**
* Create a new provider.
*