mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 13:50:15 +01:00
settings: add InvalidSetting error
To be used when the requested setting (for secrets, etc) doesn't exist in the connection.
This commit is contained in:
parent
5ac451a8d9
commit
1ba6dcacbf
2 changed files with 6 additions and 3 deletions
|
|
@ -17,7 +17,7 @@
|
|||
* Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Copyright (C) 2007 - 2008 Novell, Inc.
|
||||
* Copyright (C) 2007 - 2008 Red Hat, Inc.
|
||||
* Copyright (C) 2007 - 2010 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "nm-settings-interface.h"
|
||||
|
|
@ -62,6 +62,8 @@ nm_settings_interface_error_get_type (void)
|
|||
ENUM_ENTRY (NM_SETTINGS_INTERFACE_ERROR_SECRETS_REQUEST_CANCELED, "SecretsRequestCanceled"),
|
||||
/* The request could not be completed because permission was denied. */
|
||||
ENUM_ENTRY (NM_SETTINGS_INTERFACE_ERROR_PERMISSION_DENIED, "PermissionDenied"),
|
||||
/* The requested setting does not existing in this connection. */
|
||||
ENUM_ENTRY (NM_SETTINGS_INTERFACE_ERROR_INVALID_SETTING, "InvalidSetting"),
|
||||
{ 0, 0, 0 },
|
||||
};
|
||||
etype = g_enum_register_static ("NMSettingsInterfaceError", values);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
* Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Copyright (C) 2007 - 2008 Novell, Inc.
|
||||
* Copyright (C) 2007 - 2009 Red Hat, Inc.
|
||||
* Copyright (C) 2007 - 2010 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#ifndef NM_SETTINGS_INTERFACE_H
|
||||
|
|
@ -36,7 +36,8 @@ typedef enum {
|
|||
NM_SETTINGS_INTERFACE_ERROR_INTERNAL_ERROR,
|
||||
NM_SETTINGS_INTERFACE_ERROR_SECRETS_UNAVAILABLE,
|
||||
NM_SETTINGS_INTERFACE_ERROR_SECRETS_REQUEST_CANCELED,
|
||||
NM_SETTINGS_INTERFACE_ERROR_PERMISSION_DENIED
|
||||
NM_SETTINGS_INTERFACE_ERROR_PERMISSION_DENIED,
|
||||
NM_SETTINGS_INTERFACE_ERROR_INVALID_SETTING,
|
||||
} NMSettingsInterfaceError;
|
||||
|
||||
#define NM_SETTINGS_INTERFACE_ERROR (nm_settings_interface_error_quark ())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue