git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6630b20
)
s3:smbd/server: move smbd_open_socket and smbd_parent_context to the top
author
Stefan Metzmacher
<metze@samba.org>
Tue, 13 Dec 2011 13:38:55 +0000
(14:38 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 13 Dec 2011 19:31:10 +0000
(20:31 +0100)
metze
source3/smbd/server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/server.c
b/source3/smbd/server.c
index 9966cf46a0fc5f2aea40ac2031a37699dcde44b3..7cd1b833263ee786671e0f7a1e740bd5a5592f7d 100644
(file)
--- a/
source3/smbd/server.c
+++ b/
source3/smbd/server.c
@@
-42,6
+42,25
@@
#include "lib/id_cache.h"
#include "lib/param/param.h"
#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);
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,
static void smbd_open_socket_close_fn(struct tevent_context *ev,
struct tevent_fd *fde,
int fd,