mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 01:47:58 +02:00
cli: hide nm_cli global variable from public headers
This commit is contained in:
parent
30b8bb476a
commit
038d53a745
3 changed files with 2 additions and 5 deletions
|
|
@ -72,7 +72,7 @@
|
|||
[NM_META_COLOR_ENABLED] = "32", \
|
||||
[NM_META_COLOR_DISABLED] = "31", \
|
||||
|
||||
NmCli nm_cli = {
|
||||
static NmCli nm_cli = {
|
||||
.client = NULL,
|
||||
|
||||
.return_value = NMC_RESULT_SUCCESS,
|
||||
|
|
@ -102,6 +102,7 @@ NmCli nm_cli = {
|
|||
};
|
||||
|
||||
const NmCli *const nm_cli_global_readline = &nm_cli;
|
||||
const NmCli *const nmc_meta_environment_arg = &nm_cli;
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -140,8 +140,6 @@ typedef struct _NmCli {
|
|||
char *palette_buffer; /* Buffer with sequences for terminal-colors.d(5)-based coloring. */
|
||||
} NmCli;
|
||||
|
||||
extern NmCli nm_cli;
|
||||
|
||||
extern const NmCli *const nm_cli_global_readline;
|
||||
|
||||
/* Error quark for GError domain */
|
||||
|
|
|
|||
|
|
@ -456,8 +456,6 @@ const NMMetaEnvironment *const nmc_meta_environment = &((NMMetaEnvironment) {
|
|||
.get_nm_connections = _env_get_nm_connections,
|
||||
});
|
||||
|
||||
const NmCli *const nmc_meta_environment_arg = &nm_cli;
|
||||
|
||||
static char *
|
||||
get_property_val (NMSetting *setting, const char *prop, NMMetaAccessorGetType get_type, gboolean show_secrets, GError **error)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue