summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-05-29 16:44:55 +0200
committerJeremy Allison <jra@samba.org>2014-05-31 01:59:18 +0200
commitc487937b0146c19d4969208519f2c11b64666842 (patch)
tree54e30054045478c130ab524ef637429ec941bf73 /source3
parent8ddbf18115f2fc251a37d01907b572cc14161d01 (diff)
downloadsamba-c487937b0146c19d4969208519f2c11b64666842.tar.gz
samba-c487937b0146c19d4969208519f2c11b64666842.tar.xz
samba-c487937b0146c19d4969208519f2c11b64666842.zip
messaging3: Make messaging_context private
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/messages.h21
-rw-r--r--source3/lib/messages.c15
2 files changed, 15 insertions, 21 deletions
diff --git a/source3/include/messages.h b/source3/include/messages.h
index d029d66c27..5784e41a05 100644
--- a/source3/include/messages.h
+++ b/source3/include/messages.h
@@ -65,27 +65,6 @@
struct messaging_context;
struct messaging_rec;
-/*
- * struct messaging_context belongs to messages.c, but because we still have
- * messaging_dispatch, we need it here. Once we get rid of signals for
- * notifying processes, this will go.
- */
-
-struct messaging_context {
- struct server_id id;
- struct tevent_context *event_ctx;
- struct messaging_callback *callbacks;
-
- struct tevent_req **new_waiters;
- unsigned num_new_waiters;
-
- struct tevent_req **waiters;
- unsigned num_waiters;
-
- struct messaging_backend *local;
- struct messaging_backend *remote;
-};
-
struct messaging_backend {
NTSTATUS (*send_fn)(struct server_id src,
struct server_id pid, int msg_type,
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 3d838fe908..364bbbcea4 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -61,6 +61,21 @@ struct messaging_callback {
void *private_data;
};
+struct messaging_context {
+ struct server_id id;
+ struct tevent_context *event_ctx;
+ struct messaging_callback *callbacks;
+
+ struct tevent_req **new_waiters;
+ unsigned num_new_waiters;
+
+ struct tevent_req **waiters;
+ unsigned num_waiters;
+
+ struct messaging_backend *local;
+ struct messaging_backend *remote;
+};
+
/****************************************************************************
A useful function for testing the message system.
****************************************************************************/