r6019: Add IDL and server side code for Test_DoublePointer
authorJelmer Vernooij <jelmer@samba.org>
Thu, 24 Mar 2005 00:58:52 +0000 (00:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:15 +0000 (13:11 -0500)
(This used to be commit 0559f22bbe854b7d5e15db471e51264cce413e6f)

testprogs/win32/rpcecho/rpcecho.idl
testprogs/win32/rpcecho/server.c

index a0d9dbc4c6ca47fc4400ccf6d79d78aa5869133f..38fa58af411cb87138e25ed3e312bc8a76088f2a 100644 (file)
@@ -146,4 +146,6 @@ interface rpcecho
        void echo_TestSurrounding(
                [in,out,ref] echo_Surrounding *data
        );
        void echo_TestSurrounding(
                [in,out,ref] echo_Surrounding *data
        );
+
+       uint16 echo_TestDoublePointer([in] uint16 ***data);
 }
 }
index 888199db3d2604a3319d56e2598460164dbf7b10..17b13f0013d743fa6ebd3f1485373a0b9ba04719 100644 (file)
@@ -139,6 +139,18 @@ void echo_TestSurrounding(echo_Surrounding *data)
        data->x *= 2;
 }
 
        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;
 void main(int argc, char **argv)
 {
        RPC_STATUS status;