summaryrefslogtreecommitdiff
path: root/CIAO/tests/Bug_2130_Regression/interfaces/ENW.idl
blob: a194b0764552c61fdcca6bd7e3bcbf7b77ee923d (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
46
47
48
49
50
#ifndef ENW_IDL
#define ENW_IDL

#include <Components.idl>


module ENW
{
  exception EUnknownIdent
  {
  };

  exception EUnknownSession
  {
  };

  eventtype ET_LifeToken
  {
  };

  //////////////////////////////////////////////////////////////////////////////
  //
  // ICheckPoint-Interfaces
  //

  const long IdNotDefined = -1;

  interface TSession
  {
    long getIdent();
    boolean isInUse();
  };

  interface ISessionService
  {
    TSession createSession();
    boolean destroySession( in TSession Session );

    TSession acquireSession( in long Ident )
                             raises( EUnknownIdent );

    boolean releaseSession( in long Ident,
                            in TSession Session )
                            raises( EUnknownSession );
  };

};


#endif //ENW_IDL