pthreadpool_tevent: Move the pthreadpool_tevent_job_state declaration
authorVolker Lendecke <vl@samba.org>
Fri, 9 Sep 2016 11:27:13 +0000 (13:27 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 22:06:21 +0000 (00:06 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/pthreadpool/pthreadpool_tevent.c

index 0b7a55a620dac93ba6cdffaccb8f7bfb17272cae..e4efc2d8e0c82834653ec3145ea29d2de108a085 100644 (file)
@@ -31,6 +31,18 @@ struct pthreadpool_tevent {
        struct pthreadpool_tevent_job_state *jobs;
 };
 
+struct pthreadpool_tevent_job_state {
+       struct pthreadpool_tevent_job_state *prev, *next;
+       struct pthreadpool_tevent *pool;
+       struct tevent_context *ev;
+       struct tevent_threaded_context *tctx;
+       struct tevent_immediate *im;
+       struct tevent_req *req;
+
+       void (*fn)(void *private_data);
+       void *private_data;
+};
+
 static int pthreadpool_tevent_destructor(struct pthreadpool_tevent *pool);
 
 static int pthreadpool_tevent_job_signal(int jobid,
@@ -79,18 +91,6 @@ static int pthreadpool_tevent_destructor(struct pthreadpool_tevent *pool)
        return 0;
 }
 
-struct pthreadpool_tevent_job_state {
-       struct pthreadpool_tevent_job_state *prev, *next;
-       struct pthreadpool_tevent *pool;
-       struct tevent_context *ev;
-       struct tevent_threaded_context *tctx;
-       struct tevent_immediate *im;
-       struct tevent_req *req;
-
-       void (*fn)(void *private_data);
-       void *private_data;
-};
-
 static void pthreadpool_tevent_job_fn(void *private_data);
 static void pthreadpool_tevent_job_done(struct tevent_context *ctx,
                                        struct tevent_immediate *im,