summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/PEMNaming.idl
blob: 52069315e1cf90db0712450c0b737d0317087af2 (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
53
54
55
56
57
58
59
60
61

#ifndef _PEM_NAMING_IDL_
#define _PEM_NAMING_IDL_

module Plesk
{
  typedef long TObjectID;

  enum TBool
  {
	  TB_NO,
	  TB_YES,
	  TB_MAYBE
  };

  struct TProperty
  {
	  string name;
	  string value;
  };

  typedef sequence<TProperty> TPropertyList;

  exception ExSystem
  {
	  string		    module_id;
	  long		      extype_id;
	  long		      errcode;
    long		      errcode_minor;
    string		    errmsg;
	  TPropertyList	props;
	  TBool		      transient;
  };

  module Naming
  {

	  struct NamingContext
    {
		  string kernel_resolver_ior;
	  };

	  const long ERR_NO_SUCH_OBJ		= 6; // don't change it
						       // reserved for Naming

	  interface ObjectResolver
    {
#		  pragma version ObjectResolver 1.2

		  Object
		  resolve(in string service_type, inout TObjectID sc_id)
			  raises (ExSystem);

		  Object
		  resolve_sc(in string service_type, in string version, inout TObjectID sc_id)
			  raises (ExSystem);
	  };
  }; // module Naming
}; // module Plesk

#endif // _PEM_NAMING_IDL_