1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * oaf-async: A library for accessing oafd in a nice way. |
---|
4 | * |
---|
5 | * Copyright (C) 2000 Eazel, Inc. |
---|
6 | * |
---|
7 | * This library is free software; you can redistribute it and/or |
---|
8 | * modify it under the terms of the GNU Library General Public |
---|
9 | * License as published by the Free Software Foundation; either |
---|
10 | * version 2 of the License, or (at your option) any later version. |
---|
11 | * |
---|
12 | * This library is distributed in the hope that it will be useful, |
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
15 | * Library General Public License for more details. |
---|
16 | * |
---|
17 | * You should have received a copy of the GNU Library General Public |
---|
18 | * License along with this library; if not, write to the Free |
---|
19 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
20 | * |
---|
21 | * Author: Mathieu Lacage <mathieu@eazel.com> |
---|
22 | * |
---|
23 | */ |
---|
24 | |
---|
25 | |
---|
26 | #ifndef BONOBO_ACTIVATION_ASYNC_H |
---|
27 | #define BONOBO_ACTIVATION_ASYNC_H |
---|
28 | |
---|
29 | #include <bonobo-activation/Bonobo_Activation_types.h> |
---|
30 | |
---|
31 | G_BEGIN_DECLS |
---|
32 | |
---|
33 | /* activated_object is CORBA_OBJECT_NIL if the activation |
---|
34 | failed somehow. If this is the case, error_reason contains |
---|
35 | a valid string which describes the pb encountered. |
---|
36 | If this is not the case, error_reason is not defined. |
---|
37 | activated_object should be CORBA_Object_release'd by the user |
---|
38 | */ |
---|
39 | typedef void (*BonoboActivationCallback) (CORBA_Object activated_object, |
---|
40 | const char *error_reason, |
---|
41 | gpointer user_data); |
---|
42 | |
---|
43 | |
---|
44 | void bonobo_activation_activate_async (const char *requirements, |
---|
45 | char *const *selection_order, |
---|
46 | Bonobo_ActivationFlags flags, |
---|
47 | BonoboActivationCallback callback, |
---|
48 | gpointer user_data, |
---|
49 | CORBA_Environment * ev); |
---|
50 | |
---|
51 | void bonobo_activation_activate_from_id_async (const Bonobo_ActivationID aid, |
---|
52 | Bonobo_ActivationFlags flags, |
---|
53 | BonoboActivationCallback callback, |
---|
54 | gpointer user_data, |
---|
55 | CORBA_Environment * ev); |
---|
56 | |
---|
57 | G_END_DECLS |
---|
58 | |
---|
59 | #endif /* BONOBO_ACTIVATION_ASYNC_H */ |
---|
60 | |
---|