s3:smbd/server: move smbd_open_socket and smbd_parent_context to the top
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2011 13:38:55 +0000 (14:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2011 19:31:10 +0000 (20:31 +0100)
metze

source3/smbd/server.c

index 9966cf46a0fc5f2aea40ac2031a37699dcde44b3..7cd1b833263ee786671e0f7a1e740bd5a5592f7d 100644 (file)
 #include "lib/id_cache.h"
 #include "lib/param/param.h"
 
+struct smbd_open_socket;
+
+struct smbd_parent_context {
+       bool interactive;
+
+       struct tevent_context *ev_ctx;
+       struct messaging_context *msg_ctx;
+
+       /* the list of listening sockets */
+       struct smbd_open_socket *sockets;
+};
+
+struct smbd_open_socket {
+       struct smbd_open_socket *prev, *next;
+       struct smbd_parent_context *parent;
+       int fd;
+       struct tevent_fd *fde;
+};
+
 extern void start_epmd(struct tevent_context *ev_ctx,
                       struct messaging_context *msg_ctx);
 
@@ -339,25 +358,6 @@ static void smbd_setup_sig_chld_handler(struct tevent_context *ev_ctx)
        }
 }
 
-struct smbd_open_socket;
-
-struct smbd_parent_context {
-       bool interactive;
-
-       struct tevent_context *ev_ctx;
-       struct messaging_context *msg_ctx;
-
-       /* the list of listening sockets */
-       struct smbd_open_socket *sockets;
-};
-
-struct smbd_open_socket {
-       struct smbd_open_socket *prev, *next;
-       struct smbd_parent_context *parent;
-       int fd;
-       struct tevent_fd *fde;
-};
-
 static void smbd_open_socket_close_fn(struct tevent_context *ev,
                                      struct tevent_fd *fde,
                                      int fd,