#include "idtree.h"
#include "ctdb_client.h"
+/* Allow use of deprecated function tevent_loop_allow_nesting() */
+#define TEVENT_DEPRECATED
+/* Saves ctdb from massive churn. */
+#define TEVENT_COMPAT_DEFINES 1
+
+#include "tevent.h"
+
typedef bool BOOL;
#define True 1
#ifndef __TEVENT_H__
#define __TEVENT_H__
-#ifndef TEVENT_DEPRECATED
-#define TEVENT_DEPRECATED
-#endif
-
#include <stdint.h>
#include <talloc.h>
#include <sys/time.h>
void *stack_ptr,
const char *location);
#ifdef TEVENT_DEPRECATED
-#if (TEVENT_DEPRECATED_QUIET != 1)
#ifndef _DEPRECATED_
#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
#define _DEPRECATED_ __attribute__ ((deprecated))
#define _DEPRECATED_
#endif
#endif
-#else
-#undef _DEPRECATED_
-#define _DEPRECATED_
-#endif
void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
void tevent_loop_set_nesting_hook(struct tevent_context *ev,
tevent_nesting_hook hook,
* @{
*/
-/* Saves ctdb from massive churn. */
-#define TEVENT_COMPAT_DEFINES 1
#ifdef TEVENT_COMPAT_DEFINES
#define event_context tevent_context