diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-04 17:57:57 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-05 11:06:24 +0200 |
commit | 0220246c2683e363d4871c7b93480438a5d88a7a (patch) | |
tree | 1d25b82a24386c6331f42b172fdccfaf2f591409 /source3 | |
parent | 9cc52e8411c5b5bda73bbbe58d98a73ebd671b65 (diff) | |
download | samba-0220246c2683e363d4871c7b93480438a5d88a7a.tar.gz samba-0220246c2683e363d4871c7b93480438a5d88a7a.tar.bz2 samba-0220246c2683e363d4871c7b93480438a5d88a7a.zip |
s3: Add messaging_server_id
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/messages.h | 2 | ||||
-rw-r--r-- | source3/lib/messages.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/messages.h b/source3/include/messages.h index 0e0019e8ab..a64469e069 100644 --- a/source3/include/messages.h +++ b/source3/include/messages.h @@ -127,6 +127,8 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, struct server_id server_id, struct event_context *ev); +struct server_id messaging_server_id(const struct messaging_context *msg_ctx); + /* * re-init after a fork */ diff --git a/source3/lib/messages.c b/source3/lib/messages.c index d53297e502..ba0cd8023c 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -223,6 +223,11 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, return ctx; } +struct server_id messaging_server_id(const struct messaging_context *msg_ctx) +{ + return msg_ctx->id; +} + /* * re-init after a fork */ |