1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
3
* bonobo-activation: A library for accessing bonobo-activation-server.
5
* Copyright (C) 1999, 2000 Red Hat, Inc.
6
* Copyright (C) 2000 Eazel, Inc.
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.
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.
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.
22
* Author: Elliot Lee <sopwith@redhat.com>
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
32
* DO NOT USE this API, it is deprecated and crufty.
35
#ifndef BONOBO_ACTIVATION_BASE_SERVICE_H
36
#define BONOBO_ACTIVATION_BASE_SERVICE_H
38
#ifndef BONOBO_DISABLE_DEPRECATED
41
#include <orbit/orbit.h>
47
const char *session_name;
50
const char *domain; /* FIXME: unused - remove ? */
51
} BonoboActivationBaseService;
53
typedef struct _BonoboActivationBaseServiceRegistry BonoboActivationBaseServiceRegistry;
55
struct _BonoboActivationBaseServiceRegistry {
56
void (*lock) (const BonoboActivationBaseServiceRegistry *registry,
58
void (*unlock) (const BonoboActivationBaseServiceRegistry *registry,
60
char * (*check) (const BonoboActivationBaseServiceRegistry *registry,
61
const BonoboActivationBaseService *base_service,
64
void (*register_new) (const BonoboActivationBaseServiceRegistry *registry,
66
const BonoboActivationBaseService *base_service,
68
void (*unregister) (const BonoboActivationBaseServiceRegistry *registry,
70
const BonoboActivationBaseService *base_service,
74
typedef CORBA_Object (*BonoboActivationBaseServiceActivator) (
75
const BonoboActivationBaseService *base_service,
78
CORBA_Environment *ev);
80
/* unused / deprecated */
81
void bonobo_activation_base_service_registry_add
82
(const BonoboActivationBaseServiceRegistry *registry,
85
/* unused / deprecated */
86
CORBA_Object bonobo_activation_base_service_check
87
(const BonoboActivationBaseService *base_service,
88
CORBA_Environment *ev);
90
/* unused / deprecated */
91
void bonobo_activation_base_service_set
92
(const BonoboActivationBaseService *base_service,
94
CORBA_Environment *ev);
95
/* unused / deprecated */
96
void bonobo_activation_base_service_unset
97
(const BonoboActivationBaseService *base_service,
99
CORBA_Environment *ev);
100
/* unused / deprecated */
101
void bonobo_activation_base_service_activator_add
102
(BonoboActivationBaseServiceActivator activator,
105
/* Do not release() the returned value */
106
CORBA_Object bonobo_activation_service_get
107
(const BonoboActivationBaseService *base_service);
109
void bonobo_activation_base_service_debug_shutdown
110
(CORBA_Environment *ev);
114
#endif /* BONOBO_DISABLE_DEPRECATED */
116
#endif /* BONOBO_ACTIVATION_BASE_SERVICE_H */