1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * bonobo-activation: A library for accessing bonobo-activation-server. |
---|
4 | * |
---|
5 | * Copyright (C) 1999, 2000 Red Hat, Inc. |
---|
6 | * Copyright (C) 2000 Eazel, Inc. |
---|
7 | * |
---|
8 | * This library is free software; you can redistribute it and/or |
---|
9 | * modify it under the terms of the GNU Library General Public |
---|
10 | * License as published by the Free Software Foundation; either |
---|
11 | * version 2 of the License, or (at your option) any later version. |
---|
12 | * |
---|
13 | * This library is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | * Library General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU Library General Public |
---|
19 | * License along with this library; if not, write to the Free |
---|
20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
21 | * |
---|
22 | * Author: Elliot Lee <sopwith@redhat.com> |
---|
23 | * |
---|
24 | */ |
---|
25 | /* The folowing API is not intended for application use. |
---|
26 | * It is intended only for people who want to extend OAF bootstraping system. |
---|
27 | * I have no idea why we have all this tralala but Eliot knows and he _tried_ |
---|
28 | * to explain it in docs/bonobo-activation-base-service.txt |
---|
29 | */ |
---|
30 | |
---|
31 | /* |
---|
32 | * DO NOT USE this API, it is deprecated and crufty. |
---|
33 | */ |
---|
34 | |
---|
35 | #ifndef BONOBO_ACTIVATION_BASE_SERVICE_H |
---|
36 | #define BONOBO_ACTIVATION_BASE_SERVICE_H |
---|
37 | |
---|
38 | #ifndef BONOBO_DISABLE_DEPRECATED |
---|
39 | |
---|
40 | #include <glib.h> |
---|
41 | #include <orbit/orbit.h> |
---|
42 | |
---|
43 | G_BEGIN_DECLS |
---|
44 | |
---|
45 | typedef struct { |
---|
46 | const char *name; |
---|
47 | const char *session_name; |
---|
48 | const char *username; |
---|
49 | const char *hostname; |
---|
50 | const char *domain; /* FIXME: unused - remove ? */ |
---|
51 | } BonoboActivationBaseService; |
---|
52 | |
---|
53 | typedef struct _BonoboActivationBaseServiceRegistry BonoboActivationBaseServiceRegistry; |
---|
54 | |
---|
55 | struct _BonoboActivationBaseServiceRegistry { |
---|
56 | void (*lock) (const BonoboActivationBaseServiceRegistry *registry, |
---|
57 | gpointer user_data); |
---|
58 | void (*unlock) (const BonoboActivationBaseServiceRegistry *registry, |
---|
59 | gpointer user_data); |
---|
60 | char * (*check) (const BonoboActivationBaseServiceRegistry *registry, |
---|
61 | const BonoboActivationBaseService *base_service, |
---|
62 | int *ret_distance, |
---|
63 | gpointer user_data); |
---|
64 | void (*register_new) (const BonoboActivationBaseServiceRegistry *registry, |
---|
65 | const char *ior, |
---|
66 | const BonoboActivationBaseService *base_service, |
---|
67 | gpointer user_data); |
---|
68 | void (*unregister) (const BonoboActivationBaseServiceRegistry *registry, |
---|
69 | const char *ior, |
---|
70 | const BonoboActivationBaseService *base_service, |
---|
71 | gpointer user_data); |
---|
72 | }; |
---|
73 | |
---|
74 | typedef CORBA_Object (*BonoboActivationBaseServiceActivator) ( |
---|
75 | const BonoboActivationBaseService *base_service, |
---|
76 | const char **command, |
---|
77 | int ior_fd, |
---|
78 | CORBA_Environment *ev); |
---|
79 | |
---|
80 | |
---|
81 | void bonobo_activation_base_service_registry_add |
---|
82 | (const BonoboActivationBaseServiceRegistry *registry, |
---|
83 | int priority, |
---|
84 | gpointer user_data); |
---|
85 | |
---|
86 | CORBA_Object bonobo_activation_base_service_check |
---|
87 | (const BonoboActivationBaseService *base_service, |
---|
88 | CORBA_Environment *ev); |
---|
89 | |
---|
90 | void bonobo_activation_base_service_set |
---|
91 | (const BonoboActivationBaseService *base_service, |
---|
92 | CORBA_Object obj, |
---|
93 | CORBA_Environment *ev); |
---|
94 | void bonobo_activation_base_service_unset |
---|
95 | (const BonoboActivationBaseService *base_service, |
---|
96 | CORBA_Object obj, |
---|
97 | CORBA_Environment *ev); |
---|
98 | |
---|
99 | /* Do not release() the returned value */ |
---|
100 | CORBA_Object bonobo_activation_service_get |
---|
101 | (const BonoboActivationBaseService *base_service); |
---|
102 | |
---|
103 | void bonobo_activation_base_service_activator_add |
---|
104 | (BonoboActivationBaseServiceActivator activator, |
---|
105 | int priority); |
---|
106 | void bonobo_activation_base_service_debug_shutdown |
---|
107 | (CORBA_Environment *ev); |
---|
108 | |
---|
109 | G_END_DECLS |
---|
110 | |
---|
111 | #endif /* BONOBO_DISABLE_DEPRECATED */ |
---|
112 | |
---|
113 | #endif /* BONOBO_ACTIVATION_BASE_SERVICE_H */ |
---|