diff options
Diffstat (limited to 'clients/common/nm-secret-agent-simple.h')
| -rw-r--r-- | clients/common/nm-secret-agent-simple.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/clients/common/nm-secret-agent-simple.h b/clients/common/nm-secret-agent-simple.h index 505987df..2989723d 100644 --- a/clients/common/nm-secret-agent-simple.h +++ b/clients/common/nm-secret-agent-simple.h @@ -19,6 +19,7 @@ #ifndef __NM_SECRET_AGENT_SIMPLE_H__ #define __NM_SECRET_AGENT_SIMPLE_H__ +#include "NetworkManager.h" #include "nm-secret-agent-old.h" #define NM_TYPE_SECRET_AGENT_SIMPLE (nm_secret_agent_simple_get_type ()) @@ -41,25 +42,13 @@ typedef struct { } NMSecretAgentSimpleClass; -typedef enum { - NM_SECRET_AGENT_SECRET_TYPE_PROPERTY, - NM_SECRET_AGENT_SECRET_TYPE_SECRET, - NM_SECRET_AGENT_SECRET_TYPE_VPN_SECRET, -} NMSecretAgentSecretType; - typedef struct { - const NMSecretAgentSecretType secret_type; - const char *pretty_name; - const char *entry_id; - char *value; - const char *vpn_type; - gboolean is_secret; + char *name, *prop_name, *value; + char *vpn_property; + char *vpn_type; + gboolean password; } NMSecretAgentSimpleSecret; -#define NM_SECRET_AGENT_ENTRY_ID_PREFX_VPN_SECRET "vpn.secret." - -#define NM_SECRET_AGENT_VPN_TYPE_OPENCONNECT NM_DBUS_INTERFACE".openconnect" - GType nm_secret_agent_simple_get_type (void); NMSecretAgentOld *nm_secret_agent_simple_new (const char *name); |