summaryrefslogtreecommitdiff
path: root/src/settings/nm-secret-agent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/nm-secret-agent.h')
-rw-r--r--src/settings/nm-secret-agent.h60
1 files changed, 3 insertions, 57 deletions
diff --git a/src/settings/nm-secret-agent.h b/src/settings/nm-secret-agent.h
index 54c5b39827..1e4907018f 100644
--- a/src/settings/nm-secret-agent.h
+++ b/src/settings/nm-secret-agent.h
@@ -15,13 +15,14 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
- * Copyright (C) 2010 - 2011 Red Hat, Inc.
+ * Copyright (C) 2010 - 2017 Red Hat, Inc.
*/
#ifndef __NETWORKMANAGER_SECRET_AGENT_H__
#define __NETWORKMANAGER_SECRET_AGENT_H__
#include "nm-connection.h"
+#include "nm-agent.h"
#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))
@@ -30,11 +31,9 @@
#define NM_IS_SECRET_AGENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SECRET_AGENT))
#define NM_SECRET_AGENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SECRET_AGENT, NMSecretAgentClass))
-#define NM_SECRET_AGENT_DISCONNECTED "disconnected"
-
typedef struct _NMSecretAgentClass NMSecretAgentClass;
-typedef struct _NMSecretAgentCallId *NMSecretAgentCallId;
+typedef struct _NMSecretAgent NMSecretAgent;
GType nm_secret_agent_get_type (void);
@@ -43,57 +42,4 @@ NMSecretAgent *nm_secret_agent_new (GDBusMethodInvocation *context,
const char *identifier,
NMSecretAgentCapabilities capabilities);
-const char *nm_secret_agent_get_description (NMSecretAgent *agent);
-
-const char *nm_secret_agent_get_dbus_owner (NMSecretAgent *agent);
-
-const char *nm_secret_agent_get_identifier (NMSecretAgent *agent);
-
-gulong nm_secret_agent_get_owner_uid (NMSecretAgent *agent);
-
-const char *nm_secret_agent_get_owner_username (NMSecretAgent *agent);
-
-gulong nm_secret_agent_get_pid (NMSecretAgent *agent);
-
-NMSecretAgentCapabilities nm_secret_agent_get_capabilities (NMSecretAgent *agent);
-
-NMAuthSubject *nm_secret_agent_get_subject (NMSecretAgent *agent);
-
-void nm_secret_agent_add_permission (NMSecretAgent *agent,
- const char *permission,
- gboolean allowed);
-
-gboolean nm_secret_agent_has_permission (NMSecretAgent *agent,
- const char *permission);
-
-typedef void (*NMSecretAgentCallback) (NMSecretAgent *agent,
- NMSecretAgentCallId call_id,
- GVariant *new_secrets, /* NULL for save & delete */
- GError *error,
- gpointer user_data);
-
-NMSecretAgentCallId nm_secret_agent_get_secrets (NMSecretAgent *agent,
- const char *path,
- NMConnection *connection,
- const char *setting_name,
- const char **hints,
- NMSecretAgentGetSecretsFlags flags,
- NMSecretAgentCallback callback,
- gpointer callback_data);
-
-void nm_secret_agent_cancel_secrets (NMSecretAgent *agent,
- NMSecretAgentCallId call_id);
-
-NMSecretAgentCallId nm_secret_agent_save_secrets (NMSecretAgent *agent,
- const char *path,
- NMConnection *connection,
- NMSecretAgentCallback callback,
- gpointer callback_data);
-
-NMSecretAgentCallId nm_secret_agent_delete_secrets (NMSecretAgent *agent,
- const char *path,
- NMConnection *connection,
- NMSecretAgentCallback callback,
- gpointer callback_data);
-
#endif /* __NETWORKMANAGER_SECRET_AGENT_H__ */