1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb/libctdb/local_tdb.h
Rusty Russell 1dc7f2c4f8 libctdb: first cut, supports getrecmaster only
This is a completely standalone library using only ctdb_protocol.h.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Header from folded patch 'libctdb-message-handling.patch':

libctdb: add message handling to libctdb.

Now clients can send and receive ctdb messages.


(This used to be ctdb commit 732cf6ead4aa2fbefc2b81328171f52c8d935341)
2010-05-21 12:07:41 +09:30

11 lines
316 B
C

#ifndef _LIBCTDB_LOCAL_TDB_H
#define _LIBCTDB_LOCAL_TDB_H
struct ctdb_ltdb_header *ctdb_local_fetch(struct tdb_context *tdb,
TDB_DATA key, TDB_DATA *data);
int ctdb_local_store(struct tdb_context *tdb, TDB_DATA key,
struct ctdb_ltdb_header *header, TDB_DATA data);
#endif /* _LIBCTDB_LOCAL_TDB_H */