about summary refs log tree commit diff
path: root/cli/src/nmcli.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-04-08 07:30:59 +0200
committerMichael Biebl <biebl@debian.org>2011-04-08 07:30:59 +0200
commitf75dd6fd1975146623052b843b182dc32c3fbe46 (patch)
tree05ba60b772670f038c9a1fbff940ec5d3e28d870 /cli/src/nmcli.h
parentc980bdf58dc973dd5617aaa6f9466f9e44fcbf58 (diff)
Imported Upstream version 0.8.998 upstream/0.8.998
Diffstat (limited to 'cli/src/nmcli.h')
-rw-r--r--cli/src/nmcli.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/cli/src/nmcli.h b/cli/src/nmcli.h
index a208e79e..90091b36 100644
--- a/cli/src/nmcli.h
+++ b/cli/src/nmcli.h
@@ -24,7 +24,6 @@
 
 #include <nm-client.h>
 #include <nm-remote-settings.h>
-#include <nm-remote-settings-system.h>
 
 /* nmcli exit codes */
 typedef enum {
@@ -50,7 +49,10 @@ typedef enum {
 	NMC_RESULT_ERROR_DEV_DISCONNECT = 6,
 
 	/* NetworkManager is not running */
-	NMC_RESULT_ERROR_NM_NOT_RUNNING = 7
+	NMC_RESULT_ERROR_NM_NOT_RUNNING = 7,
+
+	/* nmcli and NetworkManager versions mismatch */
+	NMC_RESULT_ERROR_VERSIONS_MISMATCH = 8
 } NMCResultCode;
 
 typedef enum {
@@ -95,14 +97,9 @@ typedef struct _NmCli {
 
 	int timeout;                                      /* Operation timeout */
 
-	NMRemoteSettingsSystem *system_settings;          /* System settings */
-	NMRemoteSettings *user_settings;                  /* User settings */
-
+	NMRemoteSettings *system_settings;                /* System settings */
 	gboolean system_settings_running;                 /* Is system settings service running? */
-	gboolean user_settings_running;                   /* Is user settings service running? */
-
 	GSList *system_connections;                       /* List of system connections */
-	GSList *user_connections;                         /* List of user connections */
 
 	gboolean should_wait;                             /* Indication that nmcli should not end yet */
 	gboolean nowait_flag;                             /* '--nowait' option; used for passing to callbacks */
@@ -113,6 +110,7 @@ typedef struct _NmCli {
 	char *required_fields;                            /* Required fields in output: '--fields' option */
 	NmcOutputField *allowed_fields;                   /* Array of allowed fields for particular commands */
 	NmcPrintFields print_fields;                      /* Structure with field indices to print */
+	gboolean nocheck_ver;                             /* Don't check nmcli and NM versions: option '--nocheck' */
 } NmCli;
 
 #endif /* NMC_NMCLI_H */