~ubuntu-branches/ubuntu/quantal/libbonobo/quantal-201207170711

« back to all changes in this revision

Viewing changes to bonobo-activation/bonobo-activation-base-service.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-02-18 14:40:51 UTC
  • mto: (3.1.1 etch) (1.1.25 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050218144051-fo4h9qh2gim8x3wt
Tags: upstream-2.8.1
ImportĀ upstreamĀ versionĀ 2.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
/* unused / deprecated */
 
81
void         bonobo_activation_base_service_registry_add
 
82
                               (const BonoboActivationBaseServiceRegistry *registry,
 
83
                                int                                        priority, 
 
84
                                gpointer                                   user_data);
 
85
/* unused / deprecated */
 
86
CORBA_Object bonobo_activation_base_service_check
 
87
                               (const BonoboActivationBaseService *base_service,
 
88
                                CORBA_Environment                 *ev);
 
89
 
 
90
/* unused / deprecated */
 
91
void         bonobo_activation_base_service_set
 
92
                               (const BonoboActivationBaseService         *base_service,
 
93
                                CORBA_Object                               obj, 
 
94
                                CORBA_Environment                         *ev);
 
95
/* unused / deprecated */
 
96
void         bonobo_activation_base_service_unset
 
97
                               (const BonoboActivationBaseService         *base_service,
 
98
                                CORBA_Object                               obj, 
 
99
                                CORBA_Environment                         *ev);
 
100
/* unused / deprecated */
 
101
void         bonobo_activation_base_service_activator_add
 
102
                               (BonoboActivationBaseServiceActivator       activator,
 
103
                                int                                        priority);
 
104
 
 
105
/* Do not release() the returned value */
 
106
CORBA_Object bonobo_activation_service_get
 
107
                               (const BonoboActivationBaseService         *base_service);
 
108
 
 
109
void         bonobo_activation_base_service_debug_shutdown
 
110
                               (CORBA_Environment                         *ev);
 
111
 
 
112
G_END_DECLS
 
113
 
 
114
#endif /* BONOBO_DISABLE_DEPRECATED */
 
115
 
 
116
#endif /* BONOBO_ACTIVATION_BASE_SERVICE_H */