s3:modules: s/struct event_context/struct tevent_context
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Feb 2013 08:59:08 +0000 (09:59 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 19 Feb 2013 22:47:53 +0000 (23:47 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/modules/vfs_aio_fork.c
source3/modules/vfs_aio_linux.c
source3/modules/vfs_aio_pthread.c
source3/modules/vfs_notify_fam.c
source3/modules/vfs_preopen.c

index 3db336f9d5b9da3fa38138ed5e4781398eca043a..4f6574bb475e05c83da08a29dda09bf62c0b5fc8 100644 (file)
@@ -256,7 +256,7 @@ static ssize_t write_fd(int fd, void *ptr, size_t nbytes, int sendfd)
        return (sendmsg(fd, &msg, 0));
 }
 
-static void aio_child_cleanup(struct event_context *event_ctx,
+static void aio_child_cleanup(struct tevent_context *event_ctx,
                              struct timed_event *te,
                              struct timeval now,
                              void *private_data)
index 4ccdd8fb7ef2372e5f36d732d220cb49600b3da4..a8bc6797035fe9280b377c7f3d4491df41e227fc 100644 (file)
@@ -33,7 +33,7 @@ static struct fd_event *aio_read_event;
 static bool used;
 static unsigned num_busy;
 
-static void aio_linux_done(struct event_context *event_ctx,
+static void aio_linux_done(struct tevent_context *event_ctx,
                           struct fd_event *event,
                           uint16 flags, void *private_data);
 
@@ -246,7 +246,7 @@ static struct tevent_req *aio_linux_fsync_send(
        return req;
 }
 
-static void aio_linux_done(struct event_context *event_ctx,
+static void aio_linux_done(struct tevent_context *event_ctx,
                           struct fd_event *event,
                           uint16 flags, void *private_data)
 {
index 6edb12d95e9dc8d2da872d5e1c826cde2cc844f7..aa10921a3de279e8f1b1b647067f47bf9c429508 100644 (file)
@@ -37,9 +37,9 @@
  Ensure thread pool is initialized.
 ***********************************************************************/
 
-static bool init_aio_threadpool(struct event_context *ev_ctx,
+static bool init_aio_threadpool(struct tevent_context *ev_ctx,
                                struct pthreadpool **pp_pool,
-                               void (*completion_fn)(struct event_context *,
+                               void (*completion_fn)(struct tevent_context *,
                                                struct fd_event *,
                                                uint16,
                                                void *))
@@ -150,7 +150,7 @@ static struct aio_open_private_data *find_open_private_data_by_mid(uint64_t mid)
  Callback when an open completes.
 ***********************************************************************/
 
-static void aio_open_handle_completion(struct event_context *event_ctx,
+static void aio_open_handle_completion(struct tevent_context *event_ctx,
                                struct fd_event *event,
                                uint16 flags,
                                void *p)
index dcc843f6d8d0a484480be217bb59878bc3895efb..c456cadd26db4fefa80f83a4599dc8b8a0cc2388 100644 (file)
@@ -67,13 +67,13 @@ static FAMConnection fam_connection;
 static bool fam_connection_initialized = False;
 
 static struct fam_watch_context *fam_notify_list;
-static void fam_handler(struct event_context *event_ctx,
+static void fam_handler(struct tevent_context *event_ctx,
                        struct fd_event *fd_event,
                        uint16 flags,
                        void *private_data);
 
 static NTSTATUS fam_open_connection(FAMConnection *fam_conn,
-                                   struct event_context *event_ctx)
+                                   struct tevent_context *event_ctx)
 {
        int res;
        char *name;
@@ -127,7 +127,7 @@ static NTSTATUS fam_open_connection(FAMConnection *fam_conn,
 }
 
 static void fam_reopen(FAMConnection *fam_conn,
-                      struct event_context *event_ctx,
+                      struct tevent_context *event_ctx,
                       struct fam_watch_context *notify_list)
 {
        struct fam_watch_context *ctx;
@@ -146,7 +146,7 @@ static void fam_reopen(FAMConnection *fam_conn,
        }
 }
 
-static void fam_handler(struct event_context *event_ctx,
+static void fam_handler(struct tevent_context *event_ctx,
                        struct fd_event *fd_event,
                        uint16 flags,
                        void *private_data)
index 108ca2908891efd6951e78738263caa413ceb6dc..4aae77d613d6c8202aa291df086db7173a417271 100644 (file)
@@ -106,7 +106,7 @@ static void preopen_queue_run(struct preopen_state *state)
        }
 }
 
-static void preopen_helper_readable(struct event_context *ev,
+static void preopen_helper_readable(struct tevent_context *ev,
                                    struct fd_event *fde, uint16_t flags,
                                    void *priv)
 {