summaryrefslogtreecommitdiffstats
path: root/bus/activation-helper.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2007-07-24 12:01:32 +0000
committerRichard Hughes <richard@hughsie.com>2007-07-24 12:01:32 +0000
commitf4082146e91014c56c6215fb4e471f9f1baa8f60 (patch)
treed745f46eedffa1c7caf8577d9a2d5dfcc1c16f76 /bus/activation-helper.h
parent0cb8dd64a94fd3b57b37a68a6611a125689bf5df (diff)
2007-07-24 Richard Hughes <richard@hughsie.com>
* bus/activation-helper-bin.c: (convert_error_to_exit_code), (main): * bus/activation-helper.c: (desktop_file_for_name), (clear_environment), (check_permissions), (check_service_name), (get_parameters_for_service), (switch_user), (exec_for_correct_user), (check_bus_name), (get_correct_parser), (launch_bus_name), (check_dbus_user), (run_launch_helper): * bus/activation-helper.h: Add the initial launch-helper. This is split into a main section and a binary loader that allows us to lauch the main section in another test harness to do stuff like OOM testing. No build glue yet.
Diffstat (limited to 'bus/activation-helper.h')
-rw-r--r--bus/activation-helper.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/bus/activation-helper.h b/bus/activation-helper.h
new file mode 100644
index 00000000..aee50108
--- /dev/null
+++ b/bus/activation-helper.h
@@ -0,0 +1,31 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
+/* activation-helper.h The actual activation helper split from the main
+ * function for testing.
+ *
+ * Copyright (C) 2007 Red Hat, Inc.
+ *
+ * Licensed under the Academic Free License version 2.1
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#ifndef BUS_ACTIVATION_HELPER_H
+#define BUS_ACTIVATION_HELPER_H
+
+dbus_bool_t run_launch_helper (const char *bus_name, DBusError *error);
+
+
+#endif /* BUS_ACTIVATION_HELPER_H */