s4:sys_lease_linux: use tevent
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Dec 2008 16:33:51 +0000 (17:33 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 29 Dec 2008 18:57:00 +0000 (19:57 +0100)
metze

source4/ntvfs/sysdep/config.mk
source4/ntvfs/sysdep/sys_lease_linux.c

index 49ad70b95edc278c16ec4b57a2be645c7ab42397..5feca6143a40f929a7e55cda19b095380b5e995c 100644 (file)
@@ -18,7 +18,7 @@ sys_notify_inotify_OBJ_FILES = $(ntvfssrcdir)/sysdep/inotify.o
 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
 
index 41f1cbd7105a5f63fe0897aeb57f94264f68def1..d1473627a7db3be3dde4a16ce7505783bb4bf87d 100644 (file)
@@ -22,8 +22,8 @@
 */
 
 #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"
@@ -41,8 +41,8 @@ struct linux_lease_pending {
 /* 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)
 {
@@ -89,11 +89,11 @@ static int linux_lease_pending_destructor(struct linux_lease_pending *p)
 
 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;