xref: /illumos-gate/usr/src/uts/common/smbsrv/ndl/msgsvc.ndl (revision 45ede40b2394db7967e59f19288fae9b62efd4aa)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23 * Use is subject to license terms.
24 *
25 * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
26 */
27
28#ifndef _MSGSVC_NDL_
29#define	_MSGSVC_NDL_
30
31/*
32 * Message Service
33 */
34
35#include <libmlrpc/ndrtypes.ndl>
36
37#define	MSGSVCSEND_OPNUM_NetrSendMessage	0x00
38
39struct msgsvc_uuid {
40	DWORD	data1;
41	WORD	data2;
42	WORD	data3;
43	BYTE	data4[8];
44};
45typedef struct msgsvc_uuid msgsvc_uuid_t;
46
47OPERATION(MSGSVCSEND_OPNUM_NetrSendMessage)
48struct msgsvcsend_NetrSendMessage {
49	IN	msgsvc_uuid_t handle;
50	IN	LPTSTR from;
51	IN	LPTSTR to;
52	IN	LPTSTR text;
53	OUT	DWORD status;
54};
55typedef struct msgsvcsend_NetrSendMessage msgsvcsend_NetrSendMessage_t;
56
57
58/*
59 ***********************************************************************
60 * MSGSVC interface definiton.
61 ***********************************************************************
62 */
63INTERFACE(0)
64union msgsvcsend_interface {
65	CASE(MSGSVCSEND_OPNUM_NetrSendMessage)
66		struct msgsvcsend_NetrSendMessage NetrSendMessage;
67};
68typedef union msgsvcsend_interface msgsvcsend_interface_t;
69EXTERNTYPEINFO(msgsvcsend_interface)
70
71#endif /* _MSGSVC_NDL_ */
72