From 9cace5b4117eb05efb24b8fc9cec533231f3c8fc Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 25 Aug 2015 15:53:08 +0200 Subject: [PATCH] libnm/trivial: add code comment to _nm_dbus_error_has_name() --- libnm-core/nm-dbus-utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libnm-core/nm-dbus-utils.c b/libnm-core/nm-dbus-utils.c index 730a0eb3ec..8627278623 100644 --- a/libnm-core/nm-dbus-utils.c +++ b/libnm-core/nm-dbus-utils.c @@ -269,6 +269,11 @@ _nm_dbus_proxy_call_sync (GDBusProxy *proxy, * * Checks if @error is set and corresponds to the D-Bus error @dbus_error_name. * + * This should only be used for "foreign" D-Bus errors (eg, errors + * from BlueZ or wpa_supplicant). All NetworkManager D-Bus errors + * should be properly mapped by gdbus to one of the domains/codes in + * nm-errors.h. + * * Returns: %TRUE or %FALSE */ gboolean