summaryrefslogtreecommitdiff
path: root/trunk/CIAO/tests/Bug_2130_Regression/interfaces/ENW.idl
blob: f62febba8a37e5aa0157f673d1aa1250f5302d91 (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
51
52
//$Id$ 

#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