libcacard: introduce new vcard_emul_logout
commitf032cfab6158e981a6ea0c369c5366e654e668a6
authorRay Strode <rstrode@redhat.com>
Sun, 19 Oct 2014 02:12:47 +0000 (18 22:12 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 28 Oct 2014 10:38:18 +0000 (28 11:38 +0100)
tree86e79aed67d77810435aeb40ad56e73dc67544af
parent3e9418e160cd8901c83a3c88967158084f5b5c03
libcacard: introduce new vcard_emul_logout

vcard_emul_reset currently only logs NSS out, but there is a TODO
for potentially sending insertion/removal events when powering down
or powering up.

For clarity, this commit moves the current guts of vcard_emul_reset to
a new vcard_emul_logout function which will never send insertion/removal
events. The vcard_emul_reset function now just calls vcard_emul_logout,
but also retains its TODO for watching power state transitions and sending
insertion/removal events.

Signed-off-by: Ray Strode <rstrode@redhat.com>
Reviewed-By: Robert Relyea <rrelyea@redhat.com>
Reviewed-By: Alon Levy <alevy@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
libcacard/vcard_emul.h
libcacard/vcard_emul_nss.c