[glib/gdbus-daemon] gdbusdaemon: Add UpdateActivationEnvironment



commit 96bdf377998c9bb50201dda5fb3e9ece65bb5a9e
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Apr 17 11:01:57 2012 +0200

    gdbusdaemon: Add UpdateActivationEnvironment

 gio/dbus-daemon.xml |    3 +++
 gio/gdbusdaemon.c   |   12 ++++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gio/dbus-daemon.xml b/gio/dbus-daemon.xml
index 2a5a414..515dd34 100644
--- a/gio/dbus-daemon.xml
+++ b/gio/dbus-daemon.xml
@@ -53,6 +53,9 @@
       <arg direction="in" type="s" name="name"/>
       <arg direction="out" type="ay" name="security_context"/>
     </method>
+    <method name="UpdateActivationEnvironment">
+      <arg direction="in" type="a{ss}" name="environment"/>
+    </method>
     <method name="ReloadConfig">
     </method>
     <method name="GetId">
diff --git a/gio/gdbusdaemon.c b/gio/gdbusdaemon.c
index f22c0bd..ac3b37f 100644
--- a/gio/gdbusdaemon.c
+++ b/gio/gdbusdaemon.c
@@ -1152,6 +1152,17 @@ handle_reload_config (_GFreedesktopDBus *object,
 }
 
 static gboolean
+handle_update_activation_environment (_GFreedesktopDBus *object,
+				      GDBusMethodInvocation *invocation,
+				      GVariant *arg_environment)
+{
+  g_dbus_method_invocation_return_error (invocation,
+					 G_DBUS_ERROR, G_DBUS_ERROR_FAILED,
+					 "UpdateActivationEnvironment not implemented");
+  return TRUE;
+}
+
+static gboolean
 handle_remove_match (_GFreedesktopDBus *object,
 		     GDBusMethodInvocation *invocation,
 		     const gchar *arg_rule)
@@ -1608,6 +1619,7 @@ g_dbus_daemon_iface_init (_GFreedesktopDBusIface *iface)
   iface->handle_name_has_owner = handle_name_has_owner;
   iface->handle_release_name = handle_release_name;
   iface->handle_reload_config = handle_reload_config;
+  iface->handle_update_activation_environment = handle_update_activation_environment;
   iface->handle_remove_match = handle_remove_match;
   iface->handle_request_name = handle_request_name;
   iface->handle_start_service_by_name = handle_start_service_by_name;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]