summary refs log tree commit diff
path: root/src/settings/nm-secret-agent.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-10-05 22:27:18 +0200
committerMichael Biebl <biebl@debian.org>2020-10-05 22:27:18 +0200
commitaafc1dbe4712c86189bbc1d4d54ad8cb4c69be7e (patch)
treea2a9bb4d007339a0b1304540388230ccedac32bd /src/settings/nm-secret-agent.h
parente7b44ef4c80907346ec7492a09c45277459924fc (diff)
New upstream version 1.27.90 upstream/1.27.90
Diffstat (limited to 'src/settings/nm-secret-agent.h')
-rw-r--r--src/settings/nm-secret-agent.h115
1 files changed, 57 insertions, 58 deletions
diff --git a/src/settings/nm-secret-agent.h b/src/settings/nm-secret-agent.h
index 37a93d17..09f60bf4 100644
--- a/src/settings/nm-secret-agent.h
+++ b/src/settings/nm-secret-agent.h
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0+
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Copyright (C) 2010 - 2011 Red Hat, Inc.
  */
@@ -10,87 +10,86 @@
 
 #include "c-list/src/c-list.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))
-#define NM_SECRET_AGENT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SECRET_AGENT, NMSecretAgentClass))
-#define NM_IS_SECRET_AGENT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SECRET_AGENT))
-#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_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))
+#define NM_IS_SECRET_AGENT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SECRET_AGENT))
+#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 _NMSecretAgentClass  NMSecretAgentClass;
 typedef struct _NMSecretAgentCallId NMSecretAgentCallId;
 
 struct _NMAuthChain;
 struct _NMSecretAgentPrivate;
 
 struct _NMSecretAgent {
-	GObject parent;
-	CList agent_lst;
-	struct _NMAuthChain *auth_chain;
-	struct _NMSecretAgentPrivate *_priv;
-	bool fully_registered:1;
+    GObject                       parent;
+    CList                         agent_lst;
+    struct _NMAuthChain *         auth_chain;
+    struct _NMSecretAgentPrivate *_priv;
+    bool                          fully_registered : 1;
 };
 
-GType nm_secret_agent_get_type (void);
+GType nm_secret_agent_get_type(void);
 
-NMSecretAgent *nm_secret_agent_new (GDBusMethodInvocation *context,
-                                    NMAuthSubject *subject,
-                                    const char *identifier,
-                                    NMSecretAgentCapabilities capabilities);
+NMSecretAgent *nm_secret_agent_new(GDBusMethodInvocation *   context,
+                                   NMAuthSubject *           subject,
+                                   const char *              identifier,
+                                   NMSecretAgentCapabilities capabilities);
 
-const char *nm_secret_agent_get_description (NMSecretAgent *agent);
+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_dbus_owner(NMSecretAgent *agent);
 
-const char *nm_secret_agent_get_identifier (NMSecretAgent *agent);
+const char *nm_secret_agent_get_identifier(NMSecretAgent *agent);
 
-gulong      nm_secret_agent_get_owner_uid  (NMSecretAgent *agent);
+gulong nm_secret_agent_get_owner_uid(NMSecretAgent *agent);
 
-const char *nm_secret_agent_get_owner_username (NMSecretAgent *agent);
+const char *nm_secret_agent_get_owner_username(NMSecretAgent *agent);
 
-gulong      nm_secret_agent_get_pid        (NMSecretAgent *agent);
+gulong nm_secret_agent_get_pid(NMSecretAgent *agent);
 
-NMSecretAgentCapabilities nm_secret_agent_get_capabilities (NMSecretAgent *agent);
+NMSecretAgentCapabilities nm_secret_agent_get_capabilities(NMSecretAgent *agent);
 
-NMAuthSubject *nm_secret_agent_get_subject (NMSecretAgent *agent);
+NMAuthSubject *nm_secret_agent_get_subject(NMSecretAgent *agent);
 
-void        nm_secret_agent_add_permission (NMSecretAgent *agent,
-                                            const char *permission,
-                                            gboolean allowed);
+void nm_secret_agent_add_permission(NMSecretAgent *agent, const char *permission, gboolean allowed);
 
-gboolean    nm_secret_agent_has_permission (NMSecretAgent *agent,
-                                            const char *permission);
+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);
+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,
+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);
+
+NMSecretAgentCallId *nm_secret_agent_save_secrets(NMSecretAgent *       agent,
+                                                  const char *          path,
+                                                  NMConnection *        connection,
                                                   NMSecretAgentCallback callback,
-                                                  gpointer callback_data);
-
-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);
-
-void nm_secret_agent_cancel_call (NMSecretAgent *self,
-                                  NMSecretAgentCallId *call_id);
+                                                  gpointer              callback_data);
+
+NMSecretAgentCallId *nm_secret_agent_delete_secrets(NMSecretAgent *       agent,
+                                                    const char *          path,
+                                                    NMConnection *        connection,
+                                                    NMSecretAgentCallback callback,
+                                                    gpointer              callback_data);
+
+void nm_secret_agent_cancel_call(NMSecretAgent *self, NMSecretAgentCallId *call_id);
 
 #endif /* __NETWORKMANAGER_SECRET_AGENT_H__ */