mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 23:30:28 +01:00
libnm-core, etc: move NMSecretAgentCapabilities to NetworkManager.h
NMSecretAgentCapabilities was being defined in both libnm/nm-secret-agent.h and in src/settings/nm-secret-agent.h. Since it's part of the D-Bus interface, move it to libnm-core/nm-dbus-interface.h.
This commit is contained in:
parent
dc1b76432b
commit
bdda66a813
3 changed files with 19 additions and 26 deletions
|
|
@ -588,4 +588,23 @@ typedef enum { /*< flags >*/
|
|||
NM_SECRET_AGENT_GET_SECRETS_FLAG_ONLY_SYSTEM = 0x80000000
|
||||
} NMSecretAgentGetSecretsFlags;
|
||||
|
||||
/**
|
||||
* NMSecretAgentCapabilities:
|
||||
* @NM_SECRET_AGENT_CAPABILITY_NONE: the agent supports no special capabilities
|
||||
* @NM_SECRET_AGENT_CAPABILITY_VPN_HINTS: the agent supports passing hints to
|
||||
* VPN plugin authentication dialogs.
|
||||
* @NM_SECRET_AGENT_CAPABILITY_LAST: bounds checking value; should not be used.
|
||||
*
|
||||
* #NMSecretAgentCapabilities indicate various capabilities of the agent.
|
||||
*
|
||||
* (Corresponds to the NM_SECRET_AGENT_CAPABILITIES type in nm-secret-agent.xml.)
|
||||
*/
|
||||
typedef enum /*< flags >*/ {
|
||||
NM_SECRET_AGENT_CAPABILITY_NONE = 0x0,
|
||||
NM_SECRET_AGENT_CAPABILITY_VPN_HINTS = 0x1,
|
||||
|
||||
/* boundary value */
|
||||
NM_SECRET_AGENT_CAPABILITY_LAST = NM_SECRET_AGENT_CAPABILITY_VPN_HINTS
|
||||
} NMSecretAgentCapabilities;
|
||||
|
||||
#endif /* NETWORK_MANAGER_H */
|
||||
|
|
|
|||
|
|
@ -55,24 +55,6 @@ typedef enum {
|
|||
NM_SECRET_AGENT_ERROR_NO_SECRETS, /*< nick=NoSecrets >*/
|
||||
} NMSecretAgentError;
|
||||
|
||||
/**
|
||||
* NMSecretAgentCapabilities:
|
||||
* @NM_SECRET_AGENT_CAPABILITY_NONE: the agent supports no special capabilities
|
||||
* @NM_SECRET_AGENT_CAPABILITY_VPN_HINTS: the agent supports sending hints given
|
||||
* by the NMSecretAgentClass::get_secrets() class method to VPN plugin
|
||||
* authentication dialogs.
|
||||
* @NM_SECRET_AGENT_CAPABILITY_LAST: bounds checking value; should not be used.
|
||||
*
|
||||
* #NMSecretAgentCapabilities indicate various capabilities of the agent.
|
||||
*/
|
||||
typedef enum /*< flags >*/ {
|
||||
NM_SECRET_AGENT_CAPABILITY_NONE = 0x0,
|
||||
NM_SECRET_AGENT_CAPABILITY_VPN_HINTS = 0x1,
|
||||
|
||||
/* boundary value */
|
||||
NM_SECRET_AGENT_CAPABILITY_LAST = NM_SECRET_AGENT_CAPABILITY_VPN_HINTS
|
||||
} NMSecretAgentCapabilities;
|
||||
|
||||
#define NM_TYPE_SECRET_AGENT (nm_secret_agent_get_type ())
|
||||
#define NM_SECRET_AGENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SECRET_AGENT, NMSecretAgent))
|
||||
#define NM_SECRET_AGENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SECRET_AGENT, NMSecretAgentClass))
|
||||
|
|
|
|||
|
|
@ -29,14 +29,6 @@
|
|||
#include <nm-connection.h>
|
||||
#include "nm-types.h"
|
||||
|
||||
/* NOTE: ensure these capabilities match those in introspection/nm-secret-agent.xml and
|
||||
* libnm/nm-secret-agent.h.
|
||||
*/
|
||||
typedef enum {
|
||||
NM_SECRET_AGENT_CAPABILITY_NONE = 0x0,
|
||||
NM_SECRET_AGENT_CAPABILITY_VPN_HINTS = 0x1,
|
||||
} NMSecretAgentCapabilities;
|
||||
|
||||
#define NM_TYPE_SECRET_AGENT (nm_secret_agent_get_type ())
|
||||
#define NM_SECRET_AGENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SECRET_AGENT, NMSecretAgent))
|
||||
#define NM_SECRET_AGENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SECRET_AGENT, NMSecretAgentClass))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue