activation.h 2.72 KB
Newer Older
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2 3 4 5
/* activation.h  Activation of services
 *
 * Copyright (C) 2003  CodeFactory AB
 *
6
 * Licensed under the Academic Free License version 2.1
7
 *
8 9 10 11 12 13 14 15 16
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
17
 *
18 19
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21 22 23 24 25 26
 *
 */

#ifndef BUS_ACTIVATION_H
#define BUS_ACTIVATION_H

27
#include <dbus/dbus.h>
28
#include <dbus/dbus-list.h>
29 30
#include "bus.h"

31
BusActivation* bus_activation_new              (BusContext        *context,
32 33 34
						const DBusString  *address,
						DBusList         **directories,
						DBusError         *error);
35 36 37 38
dbus_bool_t bus_activation_reload           (BusActivation     *activation,
						const DBusString  *address,
						DBusList         **directories,
						DBusError         *error);
39
BusActivation* bus_activation_ref              (BusActivation     *activation);
40
void           bus_activation_unref            (BusActivation     *activation);
41 42 43 44 45

dbus_bool_t   bus_activation_set_environment_variable (BusActivation     *activation,
						const char        *key,
						const char        *value,
						DBusError         *error);
46
dbus_bool_t    bus_activation_activate_service (BusActivation     *activation,
47 48 49 50 51 52
						DBusConnection    *connection,
						BusTransaction    *transaction,
						dbus_bool_t        auto_activation,
						DBusMessage       *activation_message,
						const char        *service_name,
						DBusError         *error);
53
dbus_bool_t    bus_activation_service_created  (BusActivation     *activation,
54 55 56
						const char        *service_name,
						BusTransaction    *transaction,
						DBusError         *error);
57 58 59
dbus_bool_t    bus_activation_list_services    (BusActivation     *registry,
						char            ***listp,
						int               *array_len);
60 61
dbus_bool_t    dbus_activation_systemd_failure (BusActivation     *activation,
                                                DBusMessage       *message);
62 63 64

dbus_bool_t    bus_activation_send_pending_auto_activation_messages (BusActivation     *activation,
								     BusService        *service,
65
								     BusTransaction    *transaction);
66

67

68
#endif /* BUS_ACTIVATION_H */