diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2015-11-18 23:35:46 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2018-10-25 18:24:04 +0000 |
commit | b0c0652005ce6892dd359f1b098dbdec9fb7455f (patch) | |
tree | 0e006251d6f504bb013691349080aaa784af9ae7 /dbus/dbus-sysdeps-util-win.c | |
parent | f7e9b8a7379ce28e68bf1bd57e6f8d30602b938d (diff) | |
download | dbus-b0c0652005ce6892dd359f1b098dbdec9fb7455f.tar.gz |
Add Windows implementation of dbus-run-session tool
Bug: https://gitlab.freedesktop.org/dbus/dbus/issues/135
Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
Reviewed-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'dbus/dbus-sysdeps-util-win.c')
-rw-r--r-- | dbus/dbus-sysdeps-util-win.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps-util-win.c b/dbus/dbus-sysdeps-util-win.c index a5c3bba6..5aad2a86 100644 --- a/dbus/dbus-sysdeps-util-win.c +++ b/dbus/dbus-sysdeps-util-win.c @@ -1674,3 +1674,16 @@ void _dbus_daemon_report_stopping (void) { } + +void +_dbus_win_stderr_win_error (const char *app, + const char *message, + unsigned long code) +{ + DBusError error; + + dbus_error_init (&error); + _dbus_win_set_error_from_win_error (&error, code); + fprintf (stderr, "%s: %s: %s\n", app, message, error.message); + dbus_error_free (&error); +} |