static void save_secret_cb (GnomeKeyringResult result, guint val, gpointer user_data) { KeyringCall *call = user_data; save_request_try_complete (call->r, call); }
static void save_secret_cb (GObject *source, GAsyncResult *result, gpointer user_data) { secret_password_store_finish (result, NULL); save_request_try_complete (user_data); }
static void save_delete_cb (NMSecretAgent *agent, NMConnection *connection, GError *error, gpointer user_data) { Request *r = user_data; /* Ignore errors; now save all new secrets */ nm_connection_for_each_setting_value (connection, write_one_secret_to_keyring, r); /* If no secrets actually got saved there may be nothing to do so * try to complete the request here. If there were secrets to save the * request will get completed when those keyring calls return. */ save_request_try_complete (r); }