blob: 3ce98797ae828a4c12901be404bfa6e20979ba94 (
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
40
41
42
43
44
45
|
//
// $Id$
//
module RtecEventComm {
exception Disconnected {};
#if 0
union EventData switch(short) {
case 1: double dval;
case 2: string sval;
case 3: sequence<octet> bval;
default: long lval;
};
#else
struct EventData {
long x;
long y;
};
#endif
typedef long EventSourceID;
// TODO: Use CosTimeService?
typedef long Time;
typedef long EventType;
struct Event {
EventSourceID source_;
EventType type_;
Time time_;
EventData data_;
};
typedef sequence<Event> EventSet;
interface PushConsumer {
oneway void push (in EventSet data); // raises(Disconnected);
oneway void disconnect_push_consumer();
};
interface PushSupplier {
oneway void disconnect_push_supplier();
};
};
|