diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-10-30 15:45:43 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-11-07 11:21:35 +0100 |
commit | 0d9c9208026a8c5c14b657bceb477931fd35375d (patch) | |
tree | 084650b6126059806a8a4c76bc2b8ee94cbf2f17 /clients/cli/agent.h | |
parent | 9e6e6344cb114c5d79eae52594547112d6f800e9 (diff) | |
download | NetworkManager-0d9c9208026a8c5c14b657bceb477931fd35375d.tar.gz |
cli: add 'nmcli agent' commandjk/nmcli-agent-command
Synopsis:
nmcli agent { secret | polkit | all }
The command runs separate NetworkManager secret agent or session polkit agent, or both.
It is useful when
- no other secret agent is available (such as GUI nm-applet, gnome-shell, KDE applet)
- no other polkit agent is available (such as polkit-gnome-authentication-agent-1,
polkit-kde-authentication-agent-1 or lxpolkit)
Diffstat (limited to 'clients/cli/agent.h')
-rw-r--r-- | clients/cli/agent.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/clients/cli/agent.h b/clients/cli/agent.h new file mode 100644 index 0000000000..70ea0d9b23 --- /dev/null +++ b/clients/cli/agent.h @@ -0,0 +1,29 @@ +/* + * nmcli - command-line tool for controlling NetworkManager + * Functions for running NM secret agent. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Copyright 2014 Red Hat, Inc. + */ + +#ifndef __NMC_AGENT_H__ +#define __NMC_AGENT_H__ + +#include "nmcli.h" + +NMCResultCode do_agent (NmCli *nmc, int argc, char **argv); + +#endif /* __NMC_AGENT_H__ */ |