cli: add NMC_RESULT_ERROR_NOT_FOUND and use as appropriate

This will allow callers to distinguish "no such connection" from
"connection failed to activate", etc.

https://bugzilla.redhat.com/show_bug.cgi?id=1022256
This commit is contained in:
Dan Winship
2013-11-21 09:19:18 -05:00
parent 472ee8104d
commit 461920bb96
4 changed files with 25 additions and 20 deletions

View File

@@ -55,7 +55,10 @@ typedef enum {
NMC_RESULT_ERROR_NM_NOT_RUNNING = 8,
/* nmcli and NetworkManager versions mismatch */
NMC_RESULT_ERROR_VERSIONS_MISMATCH = 9
NMC_RESULT_ERROR_VERSIONS_MISMATCH = 9,
/* Connection/Device/AP not found */
NMC_RESULT_ERROR_NOT_FOUND = 10
} NMCResultCode;
typedef enum {