diff options
-rw-r--r-- | source3/include/messages.h | 21 | ||||
-rw-r--r-- | source3/lib/messages.c | 15 |
2 files changed, 15 insertions, 21 deletions
diff --git a/source3/include/messages.h b/source3/include/messages.h index d029d66c272..5784e41a05a 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 3d838fe908c..364bbbcea4f 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. ****************************************************************************/ |