sys_notify_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_notify.o
[SUBSYSTEM::sys_lease_linux]
-PRIVATE_DEPENDENCIES = LIBEVENTS
+PRIVATE_DEPENDENCIES = LIBTEVENT
sys_lease_linux_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_lease_linux.o
*/
#include "includes.h"
+#include <tevent.h>
#include "system/filesys.h"
-#include "lib/events/events.h"
#include "ntvfs/sysdep/sys_lease.h"
#include "ntvfs/ntvfs.h"
#include "librpc/gen_ndr/ndr_opendb.h"
/* the global linked list of pending leases */
static struct linux_lease_pending *leases;
-static void linux_lease_signal_handler(struct event_context *ev_ctx,
- struct signal_event *se,
+static void linux_lease_signal_handler(struct tevent_context *ev_ctx,
+ struct tevent_signal *se,
int signum, int count,
void *_info, void *private_data)
{
static NTSTATUS linux_lease_init(struct sys_lease_context *ctx)
{
- struct signal_event *se;
+ struct tevent_signal *se;
- se = event_add_signal(ctx->event_ctx, ctx,
- LINUX_LEASE_RT_SIGNAL, SA_SIGINFO,
- linux_lease_signal_handler, ctx);
+ se = tevent_add_signal(ctx->event_ctx, ctx,
+ LINUX_LEASE_RT_SIGNAL, SA_SIGINFO,
+ linux_lease_signal_handler, ctx);
NT_STATUS_HAVE_NO_MEMORY(se);
return NT_STATUS_OK;