This has some gross gcc pragma stuff to hide the deprecation
warning.
#include <core/error.h>
#include <param.h>
+#define TEVENT_DEPRECATED 1
+#include <tevent.h>
/**
\file IMSProvider.c
* Log MAPI to one instance of a message store provider
*/
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
static NTSTATUS provider_rpc_connection(TALLOC_CTX *parent_ctx,
struct dcerpc_pipe **p,
const char *binding,
}
ev = tevent_context_init(talloc_autofree_context());
+ tevent_loop_allow_nesting(ev);
status = dcerpc_pipe_connect(parent_ctx,
p, binding, table,
errno = 0;
return status;
}
+#pragma GCC diagnostic warning "-Wdeprecated-declarations"
/**
#include <talloc.h>
#include <dcerpc.h>
#include <util/debug.h>
-#include <tevent.h>
#include <param.h>
#include <dlinklist.h>