|
1 /* -*- mode: C; c-file-style: "gnu" -*- */ |
|
2 /* activation.h Activation of services |
|
3 * |
|
4 * Copyright (C) 2003 CodeFactory AB |
|
5 * Copyright (C) 2003 Red Hat Inc. |
|
6 * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
7 |
|
8 * |
|
9 * Licensed under the Academic Free License version 2.1 |
|
10 * |
|
11 * This program is free software; you can redistribute it and/or modify |
|
12 * it under the terms of the GNU General Public License as published by |
|
13 * the Free Software Foundation; either version 2 of the License, or |
|
14 * (at your option) any later version. |
|
15 * |
|
16 * This program is distributed in the hope that it will be useful, |
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 * GNU General Public License for more details. |
|
20 * |
|
21 * You should have received a copy of the GNU General Public License |
|
22 * along with this program; if not, write to the Free Software |
|
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
24 * |
|
25 */ |
|
26 |
|
27 #ifndef BUS_ACTIVATION_H |
|
28 #define BUS_ACTIVATION_H |
|
29 |
|
30 #include <dbus/dbus.h> |
|
31 #ifndef __SYMBIAN32__ |
|
32 #include <dbus/dbus-list.h> |
|
33 #else |
|
34 #include "dbus-list.h" |
|
35 #endif |
|
36 #include "bus.h" |
|
37 |
|
38 BusActivation* bus_activation_new (BusContext *context, |
|
39 const DBusString *address, |
|
40 DBusList **directories, |
|
41 DBusError *error); |
|
42 BusActivation* bus_activation_ref (BusActivation *activation); |
|
43 void bus_activation_unref (BusActivation *activation); |
|
44 dbus_bool_t bus_activation_activate_service (BusActivation *activation, |
|
45 DBusConnection *connection, |
|
46 BusTransaction *transaction, |
|
47 dbus_bool_t auto_activation, |
|
48 DBusMessage *activation_message, |
|
49 const char *service_name, |
|
50 DBusError *error); |
|
51 dbus_bool_t bus_activation_service_created (BusActivation *activation, |
|
52 const char *service_name, |
|
53 BusTransaction *transaction, |
|
54 DBusError *error); |
|
55 dbus_bool_t bus_activation_list_services (BusActivation *registry, |
|
56 char ***listp, |
|
57 int *array_len); |
|
58 |
|
59 dbus_bool_t bus_activation_send_pending_auto_activation_messages (BusActivation *activation, |
|
60 BusService *service, |
|
61 BusTransaction *transaction, |
|
62 DBusError *error); |
|
63 |
|
64 |
|
65 |
|
66 #endif /* BUS_ACTIVATION_H */ |