コード例 #1
0
ファイル: applet-agent.c プロジェクト: domsom/nm-applet-ds
static void
save_secret_cb (GnomeKeyringResult result, guint val, gpointer user_data)
{
	KeyringCall *call = user_data;

	save_request_try_complete (call->r, call);
}
コード例 #2
0
static void
save_secret_cb (GObject *source,
                GAsyncResult *result,
                gpointer user_data)
{
	secret_password_store_finish (result, NULL);
	save_request_try_complete (user_data);
}
コード例 #3
0
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);
}