summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-13 14:38:55 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-13 20:31:10 +0100
commit297f1b1f126163f890b926aa4d87dff886e6ecb8 (patch)
tree87ac15efcee0014a98ef8dd331b147284c46dabd /source3
parent6630b20046915d883a1cc1a1e8c8272756c60e6a (diff)
downloadsamba-297f1b1f126163f890b926aa4d87dff886e6ecb8.tar.gz
samba-297f1b1f126163f890b926aa4d87dff886e6ecb8.tar.bz2
samba-297f1b1f126163f890b926aa4d87dff886e6ecb8.zip
s3:smbd/server: move smbd_open_socket and smbd_parent_context to the top
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 9966cf46a0..7cd1b83326 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -42,6 +42,25 @@
#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,