| 1 | /* Copyright (C) 2015 Codership Oy <info@codership.com> |
| 2 | |
| 3 | This program is free software; you can redistribute it and/or modify |
| 4 | it under the terms of the GNU General Public License as published by |
| 5 | the Free Software Foundation; version 2 of the License. |
| 6 | |
| 7 | This program is distributed in the hope that it will be useful, |
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | GNU General Public License for more details. |
| 11 | |
| 12 | You should have received a copy of the GNU General Public License along |
| 13 | with this program; if not, write to the Free Software Foundation, Inc., |
| 14 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ |
| 15 | |
| 16 | #ifndef WSREP_XID_H |
| 17 | #define WSREP_XID_H |
| 18 | |
| 19 | #include <my_config.h> |
| 20 | |
| 21 | #ifdef WITH_WSREP |
| 22 | |
| 23 | #include "../wsrep/wsrep_api.h" |
| 24 | #include "handler.h" // XID typedef |
| 25 | |
| 26 | void wsrep_xid_init(xid_t*, const wsrep_uuid_t&, wsrep_seqno_t); |
| 27 | const wsrep_uuid_t* wsrep_xid_uuid(const XID&); |
| 28 | wsrep_seqno_t wsrep_xid_seqno(const XID&); |
| 29 | |
| 30 | //void wsrep_get_SE_checkpoint(XID&); /* uncomment if needed */ |
| 31 | bool wsrep_get_SE_checkpoint(wsrep_uuid_t&, wsrep_seqno_t&); |
| 32 | //void wsrep_set_SE_checkpoint(XID&); /* uncomment if needed */ |
| 33 | bool wsrep_set_SE_checkpoint(const wsrep_uuid_t&, wsrep_seqno_t); |
| 34 | |
| 35 | #endif /* WITH_WSREP */ |
| 36 | #endif /* WSREP_UTILS_H */ |
| 37 | |