source: trunk/third/bonobo-activation/idl/Bonobo_Activation_types.idl @ 18563

Revision 18563, 3.3 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18562, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2/*
3 * Bonobo_Activation_types.idl: Basic object factory interface, based on CORBA
4 * LifeCycle version
5 */
6
7#ifndef __BONOBO_ACTIVATION_TYPES_IDL__
8#define __BONOBO_ACTIVATION_TYPES_IDL__
9
10#ifndef  __Bonobo_Activation_types_COMPILATION
11#ifdef   __ORBIT_IDL__
12%{
13#pragma include_defs bonobo-activation/Bonobo_Activation_types.h
14%}
15#pragma inhibit push
16#endif
17#endif
18
19module Bonobo {
20        typedef sequence<string> StringList;
21
22        exception GeneralError {
23                string description;
24        };
25
26        module Activation {
27                exception NotListed {};
28                exception AlreadyListed {};
29                exception IncompleteContext {};
30                exception ParseFailed {
31                        string description;
32                };
33        };
34
35        typedef string ImplementationID;
36        typedef string ActivationID;
37
38        typedef long ActivationFlags;
39        const ActivationFlags ACTIVATION_FLAG_NO_LOCAL = 1<<0; // No shared libraries
40        const ActivationFlags ACTIVATION_FLAG_PRIVATE = 1<<1; // start a new server and don't register it
41        const ActivationFlags ACTIVATION_FLAG_EXISTING_ONLY = 1<<2; // don't start the server if not started
42
43        struct ActivationEnvValue {
44                string  name;
45                string  value;
46                boolean unset;
47        };
48
49        typedef sequence<ActivationEnvValue> ActivationEnvironment;
50
51        /* ActivationResult */
52        enum ActivationResultType {
53                ACTIVATION_RESULT_OBJECT,
54                ACTIVATION_RESULT_SHLIB,
55                ACTIVATION_RESULT_NONE
56        };
57
58        union ActivationResultData switch (ActivationResultType) {
59        case ACTIVATION_RESULT_OBJECT:
60                Object res_object;
61        case ACTIVATION_RESULT_SHLIB:
62                Bonobo::StringList res_shlib;
63        };
64
65        struct ActivationResult {
66                string aid;
67                ActivationResultData res;
68        };
69
70        /* ActivationProperty */
71        enum ActivationPropertyType {
72                ACTIVATION_P_STRING,
73                ACTIVATION_P_NUMBER,
74                ACTIVATION_P_BOOLEAN,
75                ACTIVATION_P_STRINGV
76        };
77
78        union ActivationPropertyValue switch (ActivationPropertyType) {
79        case ACTIVATION_P_STRING:
80                string value_string;
81        case ACTIVATION_P_NUMBER:
82                double value_number;
83        case ACTIVATION_P_BOOLEAN:
84                boolean value_boolean;
85        case ACTIVATION_P_STRINGV:
86                Bonobo::StringList value_stringv;
87        };
88
89        struct ActivationProperty {
90                string name;
91                ActivationPropertyValue v;
92        };
93
94        /* Server */
95        struct ServerInfo {
96                ImplementationID iid;
97               
98                string server_type;
99                string location_info;
100                string username, hostname, domain;
101               
102                sequence<ActivationProperty> props;
103        };
104
105        typedef sequence<ServerInfo> ServerInfoList;
106
107        enum RegistrationResult {
108                ACTIVATION_REG_SUCCESS,
109                ACTIVATION_REG_NOT_LISTED,
110                ACTIVATION_REG_ALREADY_ACTIVE,
111                ACTIVATION_REG_ERROR
112        };
113};
114
115
116#ifndef  __Bonobo_Activation_types_COMPILATION
117#ifdef   __ORBIT_IDL__
118#pragma inhibit pop
119#endif
120#endif
121
122#endif
Note: See TracBrowser for help on using the repository browser.