From 91306ef938873fce8f2ae2d4a6b3282d0379c65a Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 10 Jul 2008 14:35:38 -0400 Subject: Store what environment to activate with on activation object We now keep the environment in a hash table member of the activation object and provide a method bus_activation_set_environment_variable to modify the hash table. This hash table is seeded initially with the environment of the bus daemon itself. --- bus/activation.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bus/activation.h') diff --git a/bus/activation.h b/bus/activation.h index 79084185..56e22836 100644 --- a/bus/activation.h +++ b/bus/activation.h @@ -34,6 +34,11 @@ BusActivation* bus_activation_new (BusContext *context, DBusError *error); BusActivation* bus_activation_ref (BusActivation *activation); void bus_activation_unref (BusActivation *activation); + +dbus_bool_t bus_activation_set_environment_variable (BusActivation *activation, + const char *key, + const char *value, + DBusError *error); dbus_bool_t bus_activation_activate_service (BusActivation *activation, DBusConnection *connection, BusTransaction *transaction, -- cgit