mirror of
https://github.com/samba-team/samba.git
synced 2025-01-07 17:18:11 +03:00
6fe216642a
metze
43 lines
670 B
Plaintext
43 lines
670 B
Plaintext
#ifndef MIDLTESTS_C_CODE
|
|
|
|
[
|
|
uuid("225b9fcb-eb3d-497b-8b0b-591f049a2507"),
|
|
pointer_default(unique)
|
|
]
|
|
interface midltests
|
|
{
|
|
[switch_type(short)] union u {
|
|
[case(0)];
|
|
[case(2)] short s;
|
|
[case(4)] long l;
|
|
[case(8)] hyper h;
|
|
};
|
|
|
|
long midltests_fn(
|
|
[in] short level,
|
|
[in,switch_is(level)] union u u
|
|
);
|
|
}
|
|
|
|
#elif MIDLTESTS_C_CODE
|
|
|
|
static void midltests(void)
|
|
{
|
|
union u u;
|
|
u.h = 0xFFFFFFFFFFFFFFFFLL;
|
|
|
|
cli_midltests_fn(0, u);
|
|
cli_midltests_fn(2, u);
|
|
cli_midltests_fn(4, u);
|
|
cli_midltests_fn(8, u);
|
|
}
|
|
|
|
long srv_midltests_fn(short level, union u u)
|
|
{
|
|
printf("srv_midltests_fn: Start\n");
|
|
printf("srv_midltests_fn: End\n");
|
|
return 0x65757254;
|
|
}
|
|
|
|
#endif
|