summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2007-07-24 11:34:40 +0000
committerRichard Hughes <richard@hughsie.com>2007-07-24 11:34:40 +0000
commitee10721fdb3fb4cd8f2487a87a4e1c68e61ca0d6 (patch)
treef03ce8b5c7a97c5d8690026fd132b3958c9a38a0
parent7d11c1daeaeb7331f8479c7c143ca09af1e4d747 (diff)
2007-07-24 Richard Hughes <richard@hughsie.com>
* bus/activation-exit-codes.h: Add defines which specify the output codes of the launch helper. We have to use exit codes as this is the only way we can return failure type without going grotty things like redirecting possibly-nonsecure stderr into the error.
-rw-r--r--ChangeLog8
-rw-r--r--bus/activation-exit-codes.h38
2 files changed, 46 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d6c7989..9f0d9bbb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2007-07-24 Richard Hughes <richard@hughsie.com>
+ * bus/activation-exit-codes.h:
+ Add defines which specify the output codes of the launch helper.
+ We have to use exit codes as this is the only way we can return failure
+ type without going grotty things like redirecting possibly-nonsecure
+ stderr into the error.
+
+2007-07-24 Richard Hughes <richard@hughsie.com>
+
* dbus/dbus-protocol.h:
Add new error names needed for the launch helper.
diff --git a/bus/activation-exit-codes.h b/bus/activation-exit-codes.h
new file mode 100644
index 00000000..0e858f14
--- /dev/null
+++ b/bus/activation-exit-codes.h
@@ -0,0 +1,38 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
+/* activation-exit-codes.h Return values for the launch helper which is set
+ * in the helper and read in dbus-spawn.
+ *
+ * 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_EXIT_CODES_H
+#define BUS_ACTIVATION_EXIT_CODES_H
+
+/** Return codes from the launch helper - not public API */
+#define BUS_SPAWN_EXIT_CODE_NO_MEMORY 1
+#define BUS_SPAWN_EXIT_CODE_CONFIG_INVALID 2
+#define BUS_SPAWN_EXIT_CODE_SETUP_FAILED 3
+#define BUS_SPAWN_EXIT_CODE_NAME_INVALID 4
+#define BUS_SPAWN_EXIT_CODE_SERVICE_NOT_FOUND 5
+#define BUS_SPAWN_EXIT_CODE_PERMISSIONS_INVALID 6
+#define BUS_SPAWN_EXIT_CODE_FILE_INVALID 7
+#define BUS_SPAWN_EXIT_CODE_EXEC_FAILED 8
+
+#endif /* BUS_ACTIVATION_EXIT_CODES_H */