r6019: Add IDL and server side code for Test_DoublePointer
[samba.git] / testprogs / win32 / rpcecho / server.c
index 112eb24206adecca9251d1ca0fefea9fe8408672..17b13f0013d743fa6ebd3f1485373a0b9ba04719 100644 (file)
@@ -133,6 +133,24 @@ void echo_TestEnum(echo_Enum1 *foo1,
        foo2->e1 = ECHO_ENUM2;
 }
 
        foo2->e1 = ECHO_ENUM2;
 }
 
+void echo_TestSurrounding(echo_Surrounding *data)
+{
+       printf("Incoming array of size %d\n", data->x);
+       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;