1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/includes.h
Andrew Tridgell 050bea4a26 right include file path
(This used to be ctdb commit 5ebe14acdc972dc3ad37bdba6b3f113c36a814a7)
2006-11-18 10:55:55 +11:00

30 lines
800 B
C

#define HAVE_UNIXSOCKET 1
#include "replace.h"
#include "talloc.h"
#include "tdb.h"
#include "ctdb.h"
#include "lib/util/dlinklist.h"
typedef bool BOOL;
#define True 1
#define False 0
#define DEBUG(lvl, x) printf x
#define _PUBLIC_
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
struct timeval timeval_zero(void);
bool timeval_is_zero(const struct timeval *tv);
struct timeval timeval_current(void);
struct timeval timeval_set(uint32_t secs, uint32_t usecs);
int timeval_compare(const struct timeval *tv1, const struct timeval *tv2);
struct timeval timeval_until(const struct timeval *tv1,
const struct timeval *tv2);
_PUBLIC_ struct timeval timeval_current_ofs(uint32_t secs, uint32_t usecs);
char **file_lines_load(const char *fname, int *numlines, TALLOC_CTX *mem_ctx);