summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-errors.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-02-15 17:18:13 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-02-15 17:18:13 +0000
commit2aa38be20b015777ec6570d1e2fd7e072f5f3be9 (patch)
treee08632fff63b7edc17c47af46fb6c54a55e8960a /dbus/dbus-errors.h
parent0c502d5bc3c1858acb78d57439767f8ef24f90fe (diff)
2003-02-15 Anders Carlsson <andersca@codefactory.se>
* dbus/dbus-errors.c: (dbus_set_error): * dbus/dbus-errors.h: Add a few errors and make dbus_set_error void. * dbus/dbus-sysdeps.c: (_dbus_errno_to_string), (close_and_invalidate), (make_pipe), (write_err_and_exit), (read_ints), (do_exec), (_dbus_spawn_async): * dbus/dbus-sysdeps.h: Add _dbus_spawn_async. * test/spawn-test.c: (main): Test for _dbus_spawn_async.
Diffstat (limited to 'dbus/dbus-errors.h')
-rw-r--r--dbus/dbus-errors.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/dbus/dbus-errors.h b/dbus/dbus-errors.h
index 639c6a70..5cc77491 100644
--- a/dbus/dbus-errors.h
+++ b/dbus/dbus-errors.h
@@ -49,6 +49,10 @@ struct DBusError
void *padding1; /**< placeholder */
};
+#define DBUS_ERROR_SPAWN_FORK_FAILED "org.freedesktop.DBus.Error.Spawn.ForkFailed"
+#define DBUS_ERROR_SPAWN_FAILED "org.freedesktop.DBus.Error.Spawn.Failed"
+#define DBUS_ERROR_NO_MEMORY "org.freedesktop.DBus.Error.NoMemory"
+
typedef enum
{
DBUS_RESULT_SUCCESS, /**< Operation was successful. */
@@ -75,7 +79,7 @@ typedef enum
void dbus_error_init (DBusError *error);
void dbus_error_free (DBusError *error);
-dbus_bool_t dbus_set_error (DBusError *error,
+void dbus_set_error (DBusError *error,
const char *name,
const char *message,
...);