#ifndef __HAVE_CTDB_TEST_H #define __HAVE_CTDB_TEST_H #include /* We hang all libctdb allocations off this talloc tree. */ extern void *allocations; void check_allocations(void); /* Our own working state gets hung off this tree. */ extern void *working; /* The ctdb connection; created by 'connect' command. */ struct ctdb_connection *get_ctdb(void); /* Talloc bytes from an fd until EOF. Nul terminate. */ void *grab_fd(int fd, size_t *size); /* Check the databases are still ok. */ void check_databases(void); /* Save and restore databases, in case children do damage. */ void *save_databases(void); void restore_databases(void *); struct ctdb_db *find_db_by_id(unsigned int id); #endif /* __HAVE_CTDB_TEST_H */