summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-03-24 00:58:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:15 -0500
commitd600b78c33cd4950073d2848f1a9a0f17f17d20e (patch)
treed0b50e5088dcb7e13f558e89b5a4bb3c7007f76b
parentfa9fa3d99e056671df3dce87bffaee2ebcac9efc (diff)
downloadsamba-d600b78c33cd4950073d2848f1a9a0f17f17d20e.tar.gz
samba-d600b78c33cd4950073d2848f1a9a0f17f17d20e.tar.bz2
samba-d600b78c33cd4950073d2848f1a9a0f17f17d20e.zip
r6019: Add IDL and server side code for Test_DoublePointer
(This used to be commit 0559f22bbe854b7d5e15db471e51264cce413e6f)
-rw-r--r--testprogs/win32/rpcecho/rpcecho.idl2
-rw-r--r--testprogs/win32/rpcecho/server.c12
2 files changed, 14 insertions, 0 deletions
diff --git a/testprogs/win32/rpcecho/rpcecho.idl b/testprogs/win32/rpcecho/rpcecho.idl
index a0d9dbc4c6..38fa58af41 100644
--- a/testprogs/win32/rpcecho/rpcecho.idl
+++ b/testprogs/win32/rpcecho/rpcecho.idl
@@ -146,4 +146,6 @@ interface rpcecho
void echo_TestSurrounding(
[in,out,ref] echo_Surrounding *data
);
+
+ uint16 echo_TestDoublePointer([in] uint16 ***data);
}
diff --git a/testprogs/win32/rpcecho/server.c b/testprogs/win32/rpcecho/server.c
index 888199db3d..17b13f0013 100644
--- a/testprogs/win32/rpcecho/server.c
+++ b/testprogs/win32/rpcecho/server.c
@@ -139,6 +139,18 @@ void echo_TestSurrounding(echo_Surrounding *data)
data->x *= 2;
}
+short echo_TestDoublePointer(short ***data)
+{
+ if (!*data) {
+ return 0;
+ }
+ if (!**data) {
+ return 0;
+ }
+ printf("Incoming double pointer: %d\n", ***data);
+ return ***data;
+}
+
void main(int argc, char **argv)
{
RPC_STATUS status;