2020-12-23 22:21:36 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2019-09-25 13:13:40 +02:00
|
|
|
/*
|
2022-04-05 19:47:32 +02:00
|
|
|
* Copyright (C) 2010 - 2022 Red Hat, Inc.
|
2010-02-25 09:52:30 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef NMC_NMCLI_H
|
|
|
|
|
#define NMC_NMCLI_H
|
|
|
|
|
|
2021-03-01 12:42:48 +01:00
|
|
|
#include "libnmc-base/nm-secret-agent-simple.h"
|
|
|
|
|
#include "libnmc-setting/nm-meta-setting-desc.h"
|
2018-04-06 23:54:33 +02:00
|
|
|
|
|
|
|
|
struct _NMPolkitListener;
|
2014-10-30 11:25:55 +01:00
|
|
|
|
2017-04-11 15:48:04 +02:00
|
|
|
typedef char *(*NmcCompEntryFunc)(const char *, int);
|
|
|
|
|
|
2010-02-25 09:52:30 -08:00
|
|
|
/* nmcli exit codes */
|
|
|
|
|
typedef enum {
|
|
|
|
|
/* Indicates successful execution */
|
|
|
|
|
NMC_RESULT_SUCCESS = 0,
|
|
|
|
|
|
|
|
|
|
/* Unknown / unspecified error */
|
2010-03-24 13:42:47 +01:00
|
|
|
NMC_RESULT_ERROR_UNKNOWN = 1,
|
|
|
|
|
|
|
|
|
|
/* Wrong invocation of nmcli */
|
|
|
|
|
NMC_RESULT_ERROR_USER_INPUT = 2,
|
2010-02-25 09:52:30 -08:00
|
|
|
|
|
|
|
|
/* A timeout expired */
|
2010-03-24 13:42:47 +01:00
|
|
|
NMC_RESULT_ERROR_TIMEOUT_EXPIRED = 3,
|
2010-02-25 09:52:30 -08:00
|
|
|
|
|
|
|
|
/* Error in connection activation */
|
2010-03-24 13:42:47 +01:00
|
|
|
NMC_RESULT_ERROR_CON_ACTIVATION = 4,
|
2010-02-25 09:52:30 -08:00
|
|
|
|
|
|
|
|
/* Error in connection deactivation */
|
2010-03-24 13:42:47 +01:00
|
|
|
NMC_RESULT_ERROR_CON_DEACTIVATION = 5,
|
2010-02-25 09:52:30 -08:00
|
|
|
|
|
|
|
|
/* Error in device disconnect */
|
2011-02-10 14:21:18 +01:00
|
|
|
NMC_RESULT_ERROR_DEV_DISCONNECT = 6,
|
|
|
|
|
|
2012-01-10 16:18:27 +01:00
|
|
|
/* Error in connection deletion */
|
|
|
|
|
NMC_RESULT_ERROR_CON_DEL = 7,
|
|
|
|
|
|
2011-02-10 14:21:18 +01:00
|
|
|
/* NetworkManager is not running */
|
2012-01-10 16:18:27 +01:00
|
|
|
NMC_RESULT_ERROR_NM_NOT_RUNNING = 8,
|
2011-02-16 17:36:50 +01:00
|
|
|
|
2016-04-18 18:50:56 +02:00
|
|
|
/* No more used, keep to preserve API */
|
2013-11-21 09:19:18 -05:00
|
|
|
NMC_RESULT_ERROR_VERSIONS_MISMATCH = 9,
|
|
|
|
|
|
|
|
|
|
/* Connection/Device/AP not found */
|
2016-07-12 15:43:56 +02:00
|
|
|
NMC_RESULT_ERROR_NOT_FOUND = 10,
|
|
|
|
|
|
|
|
|
|
/* --complete-args signals a file name may follow */
|
|
|
|
|
NMC_RESULT_COMPLETE_FILE = 65,
|
2010-02-25 09:52:30 -08:00
|
|
|
} NMCResultCode;
|
|
|
|
|
|
2022-06-16 11:00:12 +02:00
|
|
|
typedef enum {
|
|
|
|
|
NMC_PRINT_TERSE = 0,
|
|
|
|
|
NMC_PRINT_NORMAL = 1,
|
|
|
|
|
NMC_PRINT_PRETTY = 2,
|
|
|
|
|
} NMCPrintOutput;
|
2010-02-25 09:52:30 -08:00
|
|
|
|
cli: rework printing of `nmcli connection` for multiple active connections
The output of `nmcli connection show` contains also information about
whether the profile is currently active, for example the device and
the current (activation) state.
Even when a profile can be activated only once (without supporting
mutiple activations at the same time), there are moments when a
connection is activating and still deactivating on another device.
NetworkManager ensures in the case with single activations that
a profile cannot be in state "activated" multiple times. But that
doesn't mean, that one profile cannot have multiple active connection
which reference it. That was already handled wrongly before, because
`nmcli connection show` would only search the first matching
active-connection. That is, it would arbitrarily pick an active
connection in case there were multiple and only show activation
state about one.
Furthermore, we will soon also add the possibility, that a profile can be
active multiple times (at the same time). Especially then, we need to
extend the output format to show all the devices on which the profile is
currently active.
Rework printing the connection list to use nmc_print(), and fix various
issues.
- as discussed, a profile may have multiple active connections at each time.
There are only two possibilities: if a profile is active multiple
times, show a line for each activation, or otherwise, show the
information about multiple activations combined in one line, e.g. by
printing "DEVICE eth0,eth1". This patch, does the former.
We will now print a line for each active connection, to show
all the devices and activation states in multiple lines.
Yes, this may result in the same profile being printed multiple times.
That is a change in behavior, and inconvenient if you do something
like
for UUID in $(nmcli connection show | awk '{print$2}'); do ...
However, above is anyway wrong because it assumes that there are no
spaces in the connection name. The proper way to do this is like
for UUID in $(nmcli -g UUID connection show); do ...
In the latter case, whenever a user selects a subset of fields
(--fields, --get) which don't print information about active connections,
these multiple lines are combined. So, above still works as expected,
never returning duplicate UUIDs.
- if a user has no permissions to see a connection, we previously
would print "<invisible> $NAME". No longer do this but just print
the ID was it is reported by the active-connection. If the goal
of this was to prevent users from accidentally access the non-existing
connection by $NAME, then this was a bad solution, because a script
would instead try to access "<invisible> $NAME". This is now solved
better by hiding the active connection if the user selects "-g NAME".
- the --order option now sorts according to how the fields are shown.
For example, with --terse mode, it will evaluate type "802-11-wireless"
but with pretty mode it will consider "wifi". This may change the
ordering in which connections are shown. Also, for sorting the name,
we use g_utf8_collate() because it's unicode.
2018-04-25 10:00:40 +02:00
|
|
|
static inline NMMetaAccessorGetType
|
|
|
|
|
nmc_print_output_to_accessor_get_type(NMCPrintOutput print_output)
|
|
|
|
|
{
|
2018-05-02 10:47:20 +02:00
|
|
|
return NM_IN_SET(print_output, NMC_PRINT_NORMAL, NMC_PRINT_PRETTY)
|
cli: rework printing of `nmcli connection` for multiple active connections
The output of `nmcli connection show` contains also information about
whether the profile is currently active, for example the device and
the current (activation) state.
Even when a profile can be activated only once (without supporting
mutiple activations at the same time), there are moments when a
connection is activating and still deactivating on another device.
NetworkManager ensures in the case with single activations that
a profile cannot be in state "activated" multiple times. But that
doesn't mean, that one profile cannot have multiple active connection
which reference it. That was already handled wrongly before, because
`nmcli connection show` would only search the first matching
active-connection. That is, it would arbitrarily pick an active
connection in case there were multiple and only show activation
state about one.
Furthermore, we will soon also add the possibility, that a profile can be
active multiple times (at the same time). Especially then, we need to
extend the output format to show all the devices on which the profile is
currently active.
Rework printing the connection list to use nmc_print(), and fix various
issues.
- as discussed, a profile may have multiple active connections at each time.
There are only two possibilities: if a profile is active multiple
times, show a line for each activation, or otherwise, show the
information about multiple activations combined in one line, e.g. by
printing "DEVICE eth0,eth1". This patch, does the former.
We will now print a line for each active connection, to show
all the devices and activation states in multiple lines.
Yes, this may result in the same profile being printed multiple times.
That is a change in behavior, and inconvenient if you do something
like
for UUID in $(nmcli connection show | awk '{print$2}'); do ...
However, above is anyway wrong because it assumes that there are no
spaces in the connection name. The proper way to do this is like
for UUID in $(nmcli -g UUID connection show); do ...
In the latter case, whenever a user selects a subset of fields
(--fields, --get) which don't print information about active connections,
these multiple lines are combined. So, above still works as expected,
never returning duplicate UUIDs.
- if a user has no permissions to see a connection, we previously
would print "<invisible> $NAME". No longer do this but just print
the ID was it is reported by the active-connection. If the goal
of this was to prevent users from accidentally access the non-existing
connection by $NAME, then this was a bad solution, because a script
would instead try to access "<invisible> $NAME". This is now solved
better by hiding the active connection if the user selects "-g NAME".
- the --order option now sorts according to how the fields are shown.
For example, with --terse mode, it will evaluate type "802-11-wireless"
but with pretty mode it will consider "wifi". This may change the
ordering in which connections are shown. Also, for sorting the name,
we use g_utf8_collate() because it's unicode.
2018-04-25 10:00:40 +02:00
|
|
|
? NM_META_ACCESSOR_GET_TYPE_PRETTY
|
|
|
|
|
: NM_META_ACCESSOR_GET_TYPE_PARSABLE;
|
|
|
|
|
}
|
|
|
|
|
|
2010-03-18 15:39:15 +01:00
|
|
|
/* === Output fields === */
|
2017-03-31 12:12:21 +02:00
|
|
|
|
|
|
|
|
typedef enum {
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Print field names instead of values */
|
|
|
|
|
NMC_OF_FLAG_FIELD_NAMES = 0x00000001,
|
|
|
|
|
|
|
|
|
|
/* Use the first value as section prefix for the other field names - just in multiline */
|
|
|
|
|
NMC_OF_FLAG_SECTION_PREFIX = 0x00000002,
|
|
|
|
|
|
|
|
|
|
/* Print main header in addition to values/field names */
|
|
|
|
|
NMC_OF_FLAG_MAIN_HEADER_ADD = 0x00000004,
|
|
|
|
|
|
|
|
|
|
/* Print main header only */
|
|
|
|
|
NMC_OF_FLAG_MAIN_HEADER_ONLY = 0x00000008,
|
2017-03-31 12:12:21 +02:00
|
|
|
} NmcOfFlags;
|
2012-01-03 15:07:17 +01:00
|
|
|
|
2020-10-08 12:33:16 +02:00
|
|
|
typedef struct {
|
|
|
|
|
const char *ansi_seq[_NM_META_COLOR_NUM];
|
|
|
|
|
} NmcColorPalette;
|
|
|
|
|
|
2017-05-12 14:04:04 +02:00
|
|
|
extern const NMMetaType nmc_meta_type_generic_info;
|
cli: split tracking of meta data out of NmcOutputField
When generating output data, nmcli iterates over a list of
property-descriptors (nmc_fields_ip4_config), creates an intermediate
array (output_data) and finally prints it.
However, previously both the meta data (nmc_fields_ip4_config) and
the intermediate format use the same type NmcOutputField. This means,
certain fields are relevant to describe a property, and other fields
are output/formatting fields.
Split this up. Now, the meta data is tracked in form of an NMMetaAbstractInfo
lists. This separates the information about properties from intermediate steps
during creation of the output.
Note that currently functions like print_ip4_config() still have all the
knowledge about how to generate the output. That is wrong, instead, the
meta data (NMMetaAbstractInfo) should describe how to create the output
and then all those functions could be replaced. This means, later we want
to add more knowledge to the NMMetaAbstractInfo, so it is important to
keep them separate from NmcOutputField.
2017-03-31 19:18:16 +02:00
|
|
|
|
|
|
|
|
typedef struct _NmcOutputField NmcOutputField;
|
|
|
|
|
typedef struct _NmcMetaGenericInfo NmcMetaGenericInfo;
|
|
|
|
|
|
|
|
|
|
struct _NmcOutputField {
|
|
|
|
|
const NMMetaAbstractInfo *info;
|
2022-04-06 12:16:21 +02:00
|
|
|
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Width in screen columns */
|
|
|
|
|
int width;
|
|
|
|
|
|
|
|
|
|
/* Value of current field - char* or char** (NULL-terminated array) */
|
|
|
|
|
void *value;
|
|
|
|
|
|
|
|
|
|
/* Whether value is char** instead of char* */
|
|
|
|
|
bool value_is_array : 1;
|
|
|
|
|
|
|
|
|
|
/* Whether to free the value */
|
|
|
|
|
bool free_value : 1;
|
2022-04-06 12:16:21 +02:00
|
|
|
|
|
|
|
|
NmcOfFlags flags; /* Flags - whether and how to print values/field names/headers */
|
|
|
|
|
NMMetaColor color; /* Use this color to print value */
|
cli: split tracking of meta data out of NmcOutputField
When generating output data, nmcli iterates over a list of
property-descriptors (nmc_fields_ip4_config), creates an intermediate
array (output_data) and finally prints it.
However, previously both the meta data (nmc_fields_ip4_config) and
the intermediate format use the same type NmcOutputField. This means,
certain fields are relevant to describe a property, and other fields
are output/formatting fields.
Split this up. Now, the meta data is tracked in form of an NMMetaAbstractInfo
lists. This separates the information about properties from intermediate steps
during creation of the output.
Note that currently functions like print_ip4_config() still have all the
knowledge about how to generate the output. That is wrong, instead, the
meta data (NMMetaAbstractInfo) should describe how to create the output
and then all those functions could be replaced. This means, later we want
to add more knowledge to the NMMetaAbstractInfo, so it is important to
keep them separate from NmcOutputField.
2017-03-31 19:18:16 +02:00
|
|
|
};
|
2010-03-18 15:39:15 +01:00
|
|
|
|
2017-03-30 12:23:26 +02:00
|
|
|
typedef struct _NmcConfig {
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Output mode */
|
|
|
|
|
NMCPrintOutput print_output;
|
|
|
|
|
|
|
|
|
|
/* Whether to use colors for output: option '--color' */
|
|
|
|
|
bool use_colors;
|
|
|
|
|
|
|
|
|
|
/* Multiline output instead of default tabular */
|
|
|
|
|
bool multiline_output : 1;
|
|
|
|
|
|
|
|
|
|
/* Whether to escape ':' and '\' in terse tabular mode */
|
|
|
|
|
bool escape_values : 1;
|
|
|
|
|
|
|
|
|
|
/* Whether running the editor - nmcli con edit' */
|
|
|
|
|
bool in_editor : 1;
|
|
|
|
|
|
|
|
|
|
/* Whether to display secrets (both input and output): option '--show-secrets' */
|
|
|
|
|
bool show_secrets : 1;
|
|
|
|
|
|
|
|
|
|
/* Overview mode (hide default values) */
|
|
|
|
|
bool overview : 1;
|
|
|
|
|
|
2020-10-08 12:33:16 +02:00
|
|
|
NmcColorPalette palette;
|
2017-03-30 12:23:26 +02:00
|
|
|
} NmcConfig;
|
|
|
|
|
|
2020-04-02 13:59:53 +02:00
|
|
|
typedef struct {
|
|
|
|
|
pid_t pid;
|
|
|
|
|
} NmcPagerData;
|
|
|
|
|
|
2017-03-30 13:34:35 +02:00
|
|
|
typedef struct _NmcOutputData {
|
2022-06-16 11:00:12 +02:00
|
|
|
/* GPtrArray of arrays of NmcOutputField structs - accumulates data for output */
|
|
|
|
|
GPtrArray *output_data;
|
2017-03-30 13:34:35 +02:00
|
|
|
} NmcOutputData;
|
|
|
|
|
|
2010-02-25 09:52:30 -08:00
|
|
|
/* NmCli - main structure */
|
|
|
|
|
typedef struct _NmCli {
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Pointer to NMClient of libnm */
|
|
|
|
|
NMClient *client;
|
2020-09-28 16:03:33 +02:00
|
|
|
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Return code of nmcli */
|
|
|
|
|
NMCResultCode return_value;
|
|
|
|
|
|
|
|
|
|
/* Reason text */
|
|
|
|
|
GString *return_text;
|
2020-09-28 16:03:33 +02:00
|
|
|
|
2020-04-02 13:59:53 +02:00
|
|
|
NmcPagerData pager_data;
|
2020-09-28 16:03:33 +02:00
|
|
|
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Operation timeout */
|
|
|
|
|
int timeout;
|
|
|
|
|
|
|
|
|
|
/* Secret agent */
|
|
|
|
|
NMSecretAgentSimple *secret_agent;
|
|
|
|
|
|
|
|
|
|
/* Hash table with passwords in passwd-file */
|
|
|
|
|
GHashTable *pwds_hash;
|
|
|
|
|
|
|
|
|
|
/* polkit agent listener */
|
|
|
|
|
struct _NMPolkitListener *pk_listener;
|
|
|
|
|
|
|
|
|
|
/* Semaphore indicating whether nmcli should not end or not yet */
|
|
|
|
|
int should_wait;
|
|
|
|
|
|
|
|
|
|
/* '--nowait' option; used for passing to callbacks */
|
|
|
|
|
bool nowait_flag : 1;
|
|
|
|
|
|
|
|
|
|
/* Whether tabular/multiline mode was specified via '--mode' option */
|
|
|
|
|
bool mode_specified : 1;
|
2020-09-28 16:03:33 +02:00
|
|
|
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Communicate the connection data over stdin/stdout instead of talking to the daemon. */
|
|
|
|
|
bool offline : 1;
|
2020-09-28 16:03:33 +02:00
|
|
|
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Ask for missing parameters: option '--ask' */
|
|
|
|
|
bool ask : 1;
|
2022-04-06 12:16:21 +02:00
|
|
|
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Autocomplete the command line */
|
|
|
|
|
bool complete : 1;
|
|
|
|
|
|
|
|
|
|
/* Whether to display status line in connection editor */
|
|
|
|
|
bool editor_status_line : 1;
|
|
|
|
|
|
|
|
|
|
/* Whether to ask for confirmation on saving connections with 'autoconnect=yes' */
|
|
|
|
|
bool editor_save_confirmation : 1;
|
2022-04-06 12:16:21 +02:00
|
|
|
|
2017-03-30 12:45:41 +02:00
|
|
|
union {
|
|
|
|
|
const NmcConfig nmc_config;
|
|
|
|
|
NmcConfig nmc_config_mutable;
|
|
|
|
|
};
|
2020-09-28 16:03:33 +02:00
|
|
|
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Required fields in output: '--fields' option */
|
|
|
|
|
char *required_fields;
|
|
|
|
|
|
|
|
|
|
/* Buffer with sequences for terminal-colors.d(5)-based coloring. */
|
|
|
|
|
char *palette_buffer;
|
2022-04-05 19:47:32 +02:00
|
|
|
|
|
|
|
|
GPtrArray *offline_connections;
|
2010-02-25 09:52:30 -08:00
|
|
|
} NmCli;
|
|
|
|
|
|
2020-04-02 13:33:10 +02:00
|
|
|
extern const NmCli *const nm_cli_global_readline;
|
|
|
|
|
|
2012-07-25 13:57:45 +02:00
|
|
|
/* Error quark for GError domain */
|
|
|
|
|
#define NMCLI_ERROR (nmcli_error_quark())
|
|
|
|
|
GQuark nmcli_error_quark(void);
|
|
|
|
|
|
2017-04-06 19:39:36 +02:00
|
|
|
extern GMainLoop *loop;
|
|
|
|
|
|
2014-06-16 08:30:22 +02:00
|
|
|
gboolean nmc_seen_sigint(void);
|
|
|
|
|
void nmc_clear_sigint(void);
|
2014-06-20 14:50:18 +02:00
|
|
|
void nmc_set_sigquit_internal(void);
|
2016-09-02 16:16:34 +02:00
|
|
|
void nmc_exit(void);
|
2014-06-20 14:50:18 +02:00
|
|
|
|
2020-04-02 13:59:53 +02:00
|
|
|
void nm_cli_spawn_pager(const NmcConfig *nmc_config, NmcPagerData *pager_data);
|
2018-10-09 13:08:24 +02:00
|
|
|
|
2017-03-30 14:56:19 +02:00
|
|
|
void nmc_empty_output_fields(NmcOutputData *output_data);
|
|
|
|
|
|
|
|
|
|
#define NMC_OUTPUT_DATA_DEFINE_SCOPED(out) \
|
2021-11-09 13:28:54 +01:00
|
|
|
gs_unref_array GArray *out##_indices = NULL; \
|
2017-03-30 14:56:19 +02:00
|
|
|
nm_auto(nmc_empty_output_fields) NmcOutputData out = { \
|
2021-11-09 13:28:54 +01:00
|
|
|
.output_data = g_ptr_array_new_full(20, g_free), \
|
2017-03-30 14:56:19 +02:00
|
|
|
}
|
|
|
|
|
|
2020-04-05 11:47:07 +02:00
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2020-04-05 12:16:08 +02:00
|
|
|
struct _NMCCommand;
|
|
|
|
|
|
|
|
|
|
typedef struct _NMCCommand {
|
2020-04-05 11:47:07 +02:00
|
|
|
const char *cmd;
|
cli: remove redundant return value from NMCCommand funcs
Many func implementations are asynchronous, that means, they
cannot return right away. Instead, they record the return value
in nmc->result_value.
The return value from the command functions was thus redundant.
In the best case, the return value agrees with the cached result
in nmc->result_value, in which it was unnecessary. In the worst case,
they disagree, and overwrite each other.
nmc->result_value is state. Tracking state is hard, and there should
be fewer places where the state gets mutated. Also, the rules how that
happened should be clearer. Drop the redundant, conflicting mechanism.
2020-04-05 15:36:30 +02:00
|
|
|
void (*func)(const struct _NMCCommand *cmd, NmCli *nmc, int argc, const char *const *argv);
|
2020-04-05 11:47:07 +02:00
|
|
|
void (*usage)(void);
|
2022-04-05 19:47:32 +02:00
|
|
|
|
2022-06-16 11:00:12 +02:00
|
|
|
/* Ensure a client instance is there before calling the handler (unless --offline has been given). */
|
|
|
|
|
bool needs_client : 1;
|
|
|
|
|
|
|
|
|
|
/* Client instance exists *and* the service is actually present on the bus. */
|
|
|
|
|
bool needs_nm_running : 1;
|
|
|
|
|
|
|
|
|
|
/* Run the handler without a client even if the comand usually requires one if --offline option was used. */
|
|
|
|
|
bool supports_offline : 1;
|
|
|
|
|
|
|
|
|
|
/* With --online, read in a keyfile from standard input before dispatching the handler. */
|
|
|
|
|
bool needs_offline_conn : 1;
|
2020-04-05 11:47:07 +02:00
|
|
|
} NMCCommand;
|
|
|
|
|
|
cli: remove redundant return value from NMCCommand funcs
Many func implementations are asynchronous, that means, they
cannot return right away. Instead, they record the return value
in nmc->result_value.
The return value from the command functions was thus redundant.
In the best case, the return value agrees with the cached result
in nmc->result_value, in which it was unnecessary. In the worst case,
they disagree, and overwrite each other.
nmc->result_value is state. Tracking state is hard, and there should
be fewer places where the state gets mutated. Also, the rules how that
happened should be clearer. Drop the redundant, conflicting mechanism.
2020-04-05 15:36:30 +02:00
|
|
|
void nmc_command_func_agent(const NMCCommand *cmd, NmCli *nmc, int argc, const char *const *argv);
|
|
|
|
|
void nmc_command_func_general(const NMCCommand *cmd, NmCli *nmc, int argc, const char *const *argv);
|
|
|
|
|
void
|
|
|
|
|
nmc_command_func_networking(const NMCCommand *cmd, NmCli *nmc, int argc, const char *const *argv);
|
|
|
|
|
void nmc_command_func_radio(const NMCCommand *cmd, NmCli *nmc, int argc, const char *const *argv);
|
|
|
|
|
void nmc_command_func_monitor(const NMCCommand *cmd, NmCli *nmc, int argc, const char *const *argv);
|
|
|
|
|
void
|
|
|
|
|
nmc_command_func_overview(const NMCCommand *cmd, NmCli *nmc, int argc, const char *const *argv);
|
|
|
|
|
void
|
|
|
|
|
nmc_command_func_connection(const NMCCommand *cmd, NmCli *nmc, int argc, const char *const *argv);
|
|
|
|
|
void nmc_command_func_device(const NMCCommand *cmd, NmCli *nmc, int argc, const char *const *argv);
|
2020-04-05 11:47:07 +02:00
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2010-02-25 09:52:30 -08:00
|
|
|
#endif /* NMC_NMCLI_H */
|