r6541: added double pointer test to win32 echo client
[samba.git] / testprogs / win32 / rpcecho / server.c
index 112eb24206adecca9251d1ca0fefea9fe8408672..b5127596dfc906be54eeeb9bad481af653b99d1f 100644 (file)
@@ -133,6 +133,26 @@ void echo_TestEnum(echo_Enum1 *foo1,
        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) {
+               printf("WARNING: *data == NULL\n");
+               return 0;
+       }
+       if (!**data) {
+               printf("WARNING: **data == NULL\n");
+               return 0;
+       }
+       printf("Incoming double pointer: %d\n", ***data);
+       return ***data;
+}
+
 void main(int argc, char **argv)
 {
        RPC_STATUS status;