diff options
| author | Michael Biebl <biebl@debian.org> | 2016-08-26 02:18:32 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2016-08-26 02:18:32 +0200 |
| commit | 7514efc2f38c9ace4557d4e69d68e7d380389030 (patch) | |
| tree | 7fb00fda86cfcc2ca377f191633a7cfdbfea7ca3 /clients/cli/common.h | |
| parent | d6201f5d8daada3d64a0a3e0038e14eebec683ce (diff) | |
Imported Upstream version 1.4.0 upstream/1.4.0
Diffstat (limited to 'clients/cli/common.h')
| -rw-r--r-- | clients/cli/common.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/clients/cli/common.h b/clients/cli/common.h index 26459e4b..579c44a7 100644 --- a/clients/cli/common.h +++ b/clients/cli/common.h @@ -48,7 +48,8 @@ gboolean nmc_team_check_config (const char *config, char **out_config, GError ** NMConnection *nmc_find_connection (const GPtrArray *connections, const char *filter_type, const char *filter_val, - int *start); + int *start, + gboolean complete); void nmc_secrets_requested (NMSecretAgentSimple *agent, const char *request_id, @@ -73,4 +74,23 @@ int nmc_rl_set_deftext (void); char *nmc_parse_lldp_capabilities (guint value); +typedef struct { + const char *cmd; + NMCResultCode (*func) (NmCli *nmc, int argc, char **argv); + void (*usage) (void); +} NMCCommand; + +NMCResultCode nmc_do_cmd (NmCli *nmc, const NMCCommand cmds[], const char *argv0, int argc, char **argv); + +void nmc_complete_strings (const char *prefix, ...) G_GNUC_NULL_TERMINATED; + +void nmc_complete_bool (const char *prefix); + +const char *nmc_error_get_simple_message (GError *error); + +extern NmcOutputField nmc_fields_ip4_config[]; +extern NmcOutputField nmc_fields_dhcp4_config[]; +extern NmcOutputField nmc_fields_ip6_config[]; +extern NmcOutputField nmc_fields_dhcp6_config[]; + #endif /* NMC_COMMON_H */ |