mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 06:28:05 +02:00
agent-manager/trivial: move code
This commit is contained in:
parent
04dfff7db8
commit
a844b98259
1 changed files with 48 additions and 46 deletions
|
|
@ -155,6 +155,54 @@ _request_type_to_string (RequestType request_type, gboolean verbose)
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
struct _NMAgentManagerCallId {
|
||||
NMAgentManager *self;
|
||||
|
||||
RequestType request_type;
|
||||
|
||||
char *detail;
|
||||
|
||||
NMAuthSubject *subject;
|
||||
|
||||
/* Current agent being asked for secrets */
|
||||
NMSecretAgent *current;
|
||||
NMSecretAgentCallId current_call_id;
|
||||
|
||||
/* Stores the sorted list of NMSecretAgents which will be asked for secrets */
|
||||
GSList *pending;
|
||||
|
||||
guint idle_id;
|
||||
|
||||
union {
|
||||
struct {
|
||||
char *path;
|
||||
NMConnection *connection;
|
||||
|
||||
NMAuthChain *chain;
|
||||
|
||||
/* Whether the agent currently being asked for secrets
|
||||
* has the system.modify privilege.
|
||||
*/
|
||||
gboolean current_has_modify;
|
||||
|
||||
union {
|
||||
struct {
|
||||
NMSecretAgentGetSecretsFlags flags;
|
||||
char *setting_name;
|
||||
char **hints;
|
||||
|
||||
GVariant *existing_secrets;
|
||||
|
||||
NMAgentSecretsResultFunc callback;
|
||||
gpointer callback_data;
|
||||
} get;
|
||||
};
|
||||
} con;
|
||||
};
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static gboolean
|
||||
remove_agent (NMAgentManager *self, const char *owner)
|
||||
{
|
||||
|
|
@ -450,52 +498,6 @@ done:
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
struct _NMAgentManagerCallId {
|
||||
NMAgentManager *self;
|
||||
|
||||
RequestType request_type;
|
||||
|
||||
char *detail;
|
||||
|
||||
NMAuthSubject *subject;
|
||||
|
||||
/* Current agent being asked for secrets */
|
||||
NMSecretAgent *current;
|
||||
NMSecretAgentCallId current_call_id;
|
||||
|
||||
/* Stores the sorted list of NMSecretAgents which will be asked for secrets */
|
||||
GSList *pending;
|
||||
|
||||
guint idle_id;
|
||||
|
||||
union {
|
||||
struct {
|
||||
char *path;
|
||||
NMConnection *connection;
|
||||
|
||||
NMAuthChain *chain;
|
||||
|
||||
/* Whether the agent currently being asked for secrets
|
||||
* has the system.modify privilege.
|
||||
*/
|
||||
gboolean current_has_modify;
|
||||
|
||||
union {
|
||||
struct {
|
||||
NMSecretAgentGetSecretsFlags flags;
|
||||
char *setting_name;
|
||||
char **hints;
|
||||
|
||||
GVariant *existing_secrets;
|
||||
|
||||
NMAgentSecretsResultFunc callback;
|
||||
gpointer callback_data;
|
||||
} get;
|
||||
};
|
||||
} con;
|
||||
};
|
||||
};
|
||||
|
||||
static Request *
|
||||
request_new (NMAgentManager *self,
|
||||
RequestType request_type,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue