mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
f6eb8342cb
pipe. The server side code gets generated as librpc/gen_ndr/ndr_NAME_s.c and gets included in the pipe module (This used to be commit bd3dcfe5820489a838e19b244266bd9126af5eb4)
91 lines
1.5 KiB
Plaintext
91 lines
1.5 KiB
Plaintext
#include "idl_types.h"
|
|
|
|
|
|
[
|
|
uuid(60a15ec5-4de8-11d7-a637-005056a20182),
|
|
endpoints(rpcecho, TCP-0),
|
|
version(1.0)
|
|
]
|
|
interface rpcecho
|
|
{
|
|
/* Add one to an integer */
|
|
void echo_AddOne(
|
|
[in,out,ref] uint32 *v
|
|
);
|
|
/* Echo an array of bytes back at the caller */
|
|
void echo_EchoData(
|
|
[in] uint32 len,
|
|
[in] [size_is(len)] uint8 in_data[],
|
|
[out] [size_is(len)] uint8 out_data[]
|
|
);
|
|
/* Sink data to the server */
|
|
void echo_SinkData(
|
|
[in] uint32 len,
|
|
[in,ref,size_is(len)] uint8 *data
|
|
);
|
|
/* Source data from server */
|
|
void echo_SourceData(
|
|
[in] uint32 len,
|
|
[out,ref,size_is(len)] uint8 *data
|
|
);
|
|
|
|
|
|
/* test strings */
|
|
void echo_TestCall (
|
|
[in] unistr *s1,
|
|
[out] unistr *s2
|
|
);
|
|
|
|
|
|
/* test some alignment issues */
|
|
typedef struct {
|
|
uint8 v;
|
|
} echo_info1;
|
|
|
|
typedef struct {
|
|
uint16 v;
|
|
} echo_info2;
|
|
|
|
typedef struct {
|
|
uint32 v;
|
|
} echo_info3;
|
|
|
|
typedef struct {
|
|
HYPER_T v;
|
|
} echo_info4;
|
|
|
|
typedef struct {
|
|
uint8 v1;
|
|
HYPER_T v2;
|
|
} echo_info5;
|
|
|
|
typedef struct {
|
|
uint8 v1;
|
|
echo_info1 info1;
|
|
} echo_info6;
|
|
|
|
typedef union {
|
|
[case(1)] echo_info1 info1;
|
|
} echo_XXX;
|
|
|
|
typedef struct {
|
|
uint8 v1;
|
|
echo_info4 info4;
|
|
} echo_info7;
|
|
|
|
typedef union {
|
|
[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;
|
|
|
|
NTSTATUS echo_TestCall2 (
|
|
[in] uint16 level,
|
|
[out,switch_is(level)] echo_Info *info
|
|
);
|
|
}
|