1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

s3:smbd/server: move smbd_open_socket and smbd_parent_context to the top

metze
This commit is contained in:
Stefan Metzmacher 2011-12-13 14:38:55 +01:00
parent 6630b20046
commit 297f1b1f12

View File

@ -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,