1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r6019: Add IDL and server side code for Test_DoublePointer

(This used to be commit 0559f22bbe)
This commit is contained in:
Jelmer Vernooij 2005-03-24 00:58:52 +00:00 committed by Gerald (Jerry) Carter
parent fa9fa3d99e
commit d600b78c33
2 changed files with 14 additions and 0 deletions

View File

@ -146,4 +146,6 @@ interface rpcecho
void echo_TestSurrounding(
[in,out,ref] echo_Surrounding *data
);
uint16 echo_TestDoublePointer([in] uint16 ***data);
}

View File

@ -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;