diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-11-20 12:36:14 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-11-20 16:36:29 +0100 |
commit | 4b799db1d37b40b746a75bf7a5ea0804842a7f3e (patch) | |
tree | 71161aed26134d64fd5d2d47671e4dfb661d9b70 /clients/cli/common.h | |
parent | a1f16d255dace43e4c682c251804589a40910e84 (diff) | |
download | NetworkManager-4b799db1d37b40b746a75bf7a5ea0804842a7f3e.tar.gz |
cli: add support for secret agent to 'nmcli dev connect' toojk/nmcli-dev-connect-secrets
And move secrets getting code to common.c (without changes).
Diffstat (limited to 'clients/cli/common.h')
-rw-r--r-- | clients/cli/common.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/clients/cli/common.h b/clients/cli/common.h index 6ae74f4f4a..8bb043f4d7 100644 --- a/clients/cli/common.h +++ b/clients/cli/common.h @@ -16,13 +16,14 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * (C) Copyright 2012 - 2014 Red Hat, Inc. + * Copyright 2012 - 2014 Red Hat, Inc. */ #ifndef NMC_COMMON_H #define NMC_COMMON_H #include "nmcli.h" +#include "nm-secret-agent-simple.h" gboolean print_ip4_config (NMIPConfig *cfg4, NmCli *nmc, const char *group_prefix, const char *one_field); gboolean print_ip6_config (NMIPConfig *cfg6, NmCli *nmc, const char *group_prefix, const char *one_field); @@ -48,10 +49,21 @@ NMConnection *nmc_find_connection (const GPtrArray *connections, const char *filter_val, int *start); +void nmc_secrets_requested (NMSecretAgentSimple *agent, + const char *request_id, + const char *title, + const char *msg, + GPtrArray *secrets, + gpointer user_data); + void nmc_cleanup_readline (void); char *nmc_readline (const char *prompt_fmt, ...) G_GNUC_PRINTF (1, 2); char *nmc_rl_gen_func_basic (const char *text, int state, const char **words); gboolean nmc_get_in_readline (void); void nmc_set_in_readline (gboolean in_readline); +/* for pre-filling a string to readline prompt */ +extern char *nmc_rl_pre_input_deftext; +int nmc_rl_set_deftext (void); + #endif /* NMC_COMMON_H */ |