mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-08-08 02:02:57 +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:
@@ -20,8 +20,6 @@
|
||||
#ifndef WSREP_SEQNO_HPP
|
||||
#define WSREP_SEQNO_HPP
|
||||
|
||||
#include "exception.hpp"
|
||||
|
||||
#include <iosfwd>
|
||||
|
||||
namespace wsrep
|
||||
@@ -33,6 +31,8 @@ namespace wsrep
|
||||
class seqno
|
||||
{
|
||||
public:
|
||||
typedef long long native_type;
|
||||
|
||||
seqno()
|
||||
: seqno_(-1)
|
||||
{ }
|
||||
@@ -77,8 +77,9 @@ namespace wsrep
|
||||
return (*this + seqno(other));
|
||||
}
|
||||
static seqno undefined() { return seqno(-1); }
|
||||
|
||||
private:
|
||||
long long seqno_;
|
||||
native_type seqno_;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, wsrep::seqno seqno);
|
||||
|
Reference in New Issue
Block a user