cli: fix 'nmcli con delete' (rh #771258)

The command didn't delete the connection, because nmcli exited before NM could
check permissions (actually ConsoleKit didn't see the process).
Now nmcli waits for "Removed" signal or D-Bus return (error) message on "Delete"
method call.
This commit is contained in:
Jiří Klimeš
2012-01-10 16:18:27 +01:00
parent 32bbdc461b
commit 659c22ccf6
2 changed files with 39 additions and 5 deletions

View File

@@ -48,11 +48,14 @@ typedef enum {
/* Error in device disconnect */
NMC_RESULT_ERROR_DEV_DISCONNECT = 6,
/* Error in connection deletion */
NMC_RESULT_ERROR_CON_DEL = 7,
/* NetworkManager is not running */
NMC_RESULT_ERROR_NM_NOT_RUNNING = 7,
NMC_RESULT_ERROR_NM_NOT_RUNNING = 8,
/* nmcli and NetworkManager versions mismatch */
NMC_RESULT_ERROR_VERSIONS_MISMATCH = 8
NMC_RESULT_ERROR_VERSIONS_MISMATCH = 9
} NMCResultCode;
typedef enum {