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:
parent
fa9fa3d99e
commit
d600b78c33
@ -146,4 +146,6 @@ interface rpcecho
|
||||
void echo_TestSurrounding(
|
||||
[in,out,ref] echo_Surrounding *data
|
||||
);
|
||||
|
||||
uint16 echo_TestDoublePointer([in] uint16 ***data);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user