summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-06-01 00:00:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:21 -0500
commit03c2d642a620380d96a9e745ceb1cd19ffea2160 (patch)
tree351938707b57f8f3ed29a966d48d858f562d250d /source4/librpc
parent5ec5e7aa29ef4abf6b60a0de4947693d3e587f74 (diff)
downloadsamba-03c2d642a620380d96a9e745ceb1cd19ffea2160.tar.gz
samba-03c2d642a620380d96a9e745ceb1cd19ffea2160.tar.bz2
samba-03c2d642a620380d96a9e745ceb1cd19ffea2160.zip
r7159: Improve the messages from pidl's validator module.
Change the IDL file for the echo interface to match the one we use for Windows. The only thing different between the two files currently is the names of the scalar types and the handling of strings. (This used to be commit b264c61061d222347919837600adf809fbadfb13)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/echo.idl17
1 files changed, 6 insertions, 11 deletions
diff --git a/source4/librpc/idl/echo.idl b/source4/librpc/idl/echo.idl
index b0defe59dd..d841a0974a 100644
--- a/source4/librpc/idl/echo.idl
+++ b/source4/librpc/idl/echo.idl
@@ -5,7 +5,6 @@
uuid("60a15ec5-4de8-11d7-a637-005056a20182"),
endpoint("ncacn_np:[\\pipe\\rpcecho]", "ncacn_ip_tcp:", "ncalrpc:"),
pointer_default(unique),
- pointer_default_top(unique),
version(1.0),
helpstring("Simple echo pipe")
]
@@ -13,7 +12,8 @@ interface rpcecho
{
/* Add one to an integer */
void echo_AddOne(
- [in,out,ref] uint32 *v
+ [in] uint32 in_data,
+ [out] uint32 *out_data
);
/* Echo an array of bytes back at the caller */
void echo_EchoData(
@@ -24,15 +24,14 @@ interface rpcecho
/* Sink data to the server */
void echo_SinkData(
[in] uint32 len,
- [in,ref,size_is(len)] uint8 *data
+ [in,size_is(len)] uint8 data[]
);
/* Source data from server */
void echo_SourceData(
[in] uint32 len,
- [out,ref,size_is(len)] uint8 *data
+ [out,size_is(len)] uint8 data[]
);
-
/* test strings */
void echo_TestCall (
[in] unistr *s1,
@@ -67,10 +66,6 @@ interface rpcecho
echo_info1 info1;
} echo_info6;
- typedef union {
- [case(1)] echo_info1 info1;
- } echo_XXX;
-
typedef struct {
uint8 v1;
echo_info4 info4;
@@ -110,7 +105,7 @@ interface rpcecho
echo_Enum1_32 e2;
} echo_Enum2;
- typedef [switch_type(echo_Enum1)] union {
+ typedef [switch_type(uint16)] union {
[case(ECHO_ENUM1)] echo_Enum1 e1;
[case(ECHO_ENUM2)] echo_Enum2 e2;
} echo_Enum3;
@@ -130,5 +125,5 @@ interface rpcecho
[in,out,ref] echo_Surrounding *data
);
- uint16 echo_TestDoublePointer([in,ref] uint16 ***data);
+ uint16 echo_TestDoublePointer([in] uint16 ***data);
}