blob: 30285cd9d12fe53e7f9ed905d0e5615f34093dd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// $Id$
interface Cubit
{
// = TITLE
// Defines an interface that encapsulates operations that cube
// numbers.
//
// = DESCRIPTION
// This interface encapsulates operations that cube
// octets, shorts, longs, structs and unions.
struct Many
{
octet o; // + 3 bytes padding (normally) ...
long l;
short s; // + 2 bytes padding (normally) ...
};
octet cube_octet (in octet o);
// Cube an octet.
short cube_short (in short s);
// Cube a short.
long cube_long (in long l);
// Cube a long.
Many cube_struct (in Many values);
// Cube each of the members of a struct.
oneway void noop ();
// Null operation.
oneway void shutdown ();
// shut down the application
};
|