source: trunk/third/bonobo-activation/bonobo-activation/bonobo-activation-shlib.h @ 18311

Revision 18311, 2.6 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18310, 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: 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#ifndef BONOBO_ACTIVATION_SHLIB_H
25#define BONOBO_ACTIVATION_SHLIB_H
26
27#include <bonobo-activation/Bonobo_Activation_types.h>
28
29G_BEGIN_DECLS
30
31typedef struct {
32        const char *iid;
33
34        /* This routine should call bonobo_activation_plugin_use(servant, impl_ptr),
35         * as should all routines which activate CORBA objects
36         * implemented by this shared library. This needs to be done
37         * before making any CORBA calls on the object, or
38         * passing that object around. First thing after servant creation
39         * always works. :)
40         */
41
42        CORBA_Object (*activate) (PortableServer_POA poa,
43                                  const char *iid,
44                                  gpointer impl_ptr,    /* This pointer should be stored by the implementation
45                                                         * to be passed to bonobo_activation_plugin_unuse() in the
46                                                         * implementation's destruction routine. */
47                                  CORBA_Environment *ev);
48        gpointer dummy[4];
49} BonoboActivationPluginObject;
50
51typedef struct {
52        const BonoboActivationPluginObject *plugin_object_list;
53        const char *description;
54        gpointer dummy[8];
55} BonoboActivationPlugin;
56
57void  bonobo_activation_plugin_use    (PortableServer_Servant servant,
58                                       gpointer impl_ptr);
59
60void  bonobo_activation_plugin_unuse  (gpointer impl_ptr);
61
62
63CORBA_Object bonobo_activation_activate_shlib_server (Bonobo_ActivationResult *sh,
64                                                      CORBA_Environment    *ev);
65
66G_END_DECLS
67
68#endif /* BONOBO_ACTIVATION_SHLIB_H */
Note: See TracBrowser for help on using the repository browser.