2003-11-21 16:14:17 +03:00
2003-11-09 11:31:36 +03:00
[
2004-10-27 08:48:41 +04:00
uuid("60a15ec5-4de8-11d7-a637-005056a20182"),
2004-10-24 18:57:16 +04:00
endpoint("ncacn_np:[\\pipe\\rpcecho]", "ncacn_ip_tcp:", "ncalrpc:"),
2005-02-13 02:03:26 +03:00
pointer_default(unique),
2004-08-16 23:03:22 +04:00
version(1.0),
2006-09-19 01:52:00 +04:00
helpstring("Simple echo pipe")
2003-11-09 11:31:36 +03:00
]
interface rpcecho
{
/* Add one to an integer */
void echo_AddOne(
2005-06-01 04:00:50 +04:00
[in] uint32 in_data,
[out] uint32 *out_data
2003-11-09 11:31:36 +03:00
);
/* Echo an array of bytes back at the caller */
void echo_EchoData(
[in] uint32 len,
2003-11-13 12:26:53 +03:00
[in] [size_is(len)] uint8 in_data[],
[out] [size_is(len)] uint8 out_data[]
2003-11-09 11:31:36 +03:00
);
/* Sink data to the server */
void echo_SinkData(
[in] uint32 len,
2005-06-01 04:00:50 +04:00
[in,size_is(len)] uint8 data[]
2003-11-09 11:31:36 +03:00
);
/* Source data from server */
void echo_SourceData(
[in] uint32 len,
2005-06-01 04:00:50 +04:00
[out,size_is(len)] uint8 data[]
2003-11-09 11:31:36 +03:00
);
2003-11-13 12:26:53 +03:00
2003-11-19 15:03:11 +03:00
/* test strings */
2003-12-14 16:22:12 +03:00
void echo_TestCall (
2005-06-18 20:31:48 +04:00
[in,string,charset(UTF16)] uint16 *s1,
2006-09-16 00:07:55 +04:00
[out,string,charset(UTF16)] uint16 **s2
2003-11-19 15:03:11 +03:00
);
/* test some alignment issues */
typedef struct {
uint8 v;
} echo_info1;
typedef struct {
uint16 v;
} echo_info2;
typedef struct {
uint32 v;
} echo_info3;
typedef struct {
2005-01-27 09:33:07 +03:00
hyper v;
2003-11-19 15:03:11 +03:00
} echo_info4;
typedef struct {
uint8 v1;
2005-01-27 09:33:07 +03:00
hyper v2;
2003-11-19 15:03:11 +03:00
} echo_info5;
typedef struct {
uint8 v1;
echo_info1 info1;
} echo_info6;
typedef struct {
uint8 v1;
echo_info4 info4;
} echo_info7;
2005-03-06 20:02:14 +03:00
typedef [switch_type(uint16)] union {
2003-11-19 15:03:11 +03:00
[case(1)] echo_info1 info1;
[case(2)] echo_info2 info2;
[case(3)] echo_info3 info3;
[case(4)] echo_info4 info4;
[case(5)] echo_info5 info5;
[case(6)] echo_info6 info6;
[case(7)] echo_info7 info7;
} echo_Info;
2003-12-14 16:22:12 +03:00
NTSTATUS echo_TestCall2 (
2003-11-20 04:32:43 +03:00
[in] uint16 level,
2003-11-19 15:03:11 +03:00
[out,switch_is(level)] echo_Info *info
2003-11-13 12:26:53 +03:00
);
2004-08-30 11:36:16 +04:00
uint32 echo_TestSleep(
[in] uint32 seconds
);
2005-01-05 02:27:12 +03:00
typedef enum {
ECHO_ENUM1 = 1,
ECHO_ENUM2 = 2
} echo_Enum1;
typedef [v1_enum] enum {
ECHO_ENUM1_32 = 1,
ECHO_ENUM2_32 = 2
} echo_Enum1_32;
typedef struct {
echo_Enum1 e1;
echo_Enum1_32 e2;
} echo_Enum2;
2005-06-01 04:00:50 +04:00
typedef [switch_type(uint16)] union {
2005-01-05 02:27:12 +03:00
[case(ECHO_ENUM1)] echo_Enum1 e1;
[case(ECHO_ENUM2)] echo_Enum2 e2;
} echo_Enum3;
void echo_TestEnum(
[in,out,ref] echo_Enum1 *foo1,
[in,out,ref] echo_Enum2 *foo2,
[in,out,ref,switch_is(*foo1)] echo_Enum3 *foo3
);
2005-02-19 02:06:13 +03:00
typedef struct {
uint32 x;
[size_is(x)] uint16 surrounding[*];
} echo_Surrounding;
void echo_TestSurrounding(
[in,out,ref] echo_Surrounding *data
);
2005-02-20 05:57:38 +03:00
2005-06-01 04:00:50 +04:00
uint16 echo_TestDoublePointer([in] uint16 ***data);
2003-11-09 11:31:36 +03:00
}