build: Build with system md5.h on OpenIndiana
[Samba.git] / source3 / lib / msg_channel.h
blob4c7ae420cbcfdf9a4a32c78fce43d1a05e05aead
1 /*
2 Unix SMB/CIFS implementation.
3 Samba3 message streams
4 Copyright (C) Volker Lendecke 2012
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _MSG_STREAM_H_
21 #define _MSG_STREAM_H_
23 #include <talloc.h>
24 #include <tevent.h>
25 #include "messages.h"
26 #include "librpc/gen_ndr/messaging.h"
28 struct msg_channel;
30 struct tevent_req *msg_channel_init_send(TALLOC_CTX *mem_ctx,
31 struct tevent_context *ev,
32 struct messaging_context *msg,
33 uint32_t msgtype);
34 int msg_channel_init_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
35 struct msg_channel **pchannel);
36 int msg_channel_init(TALLOC_CTX *mem_ctx, struct messaging_context *msg,
37 uint32_t msgtype, struct msg_channel **pchannel);
39 struct tevent_req *msg_read_send(TALLOC_CTX *mem_ctx,
40 struct tevent_context *ev,
41 struct msg_channel *channel);
42 int msg_read_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
43 struct messaging_rec **prec);
45 #endif