2005-03-01 23:18:24 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2005-02-23 02:52:20 +00:00
|
|
|
<refentry id="scdisconnectcard">
|
2005-03-01 23:18:24 +00:00
|
|
|
<refentryinfo><title>OpenSC API Reference</title></refentryinfo>
|
2005-02-23 02:52:20 +00:00
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>sc_disconnect_card</refentrytitle>
|
|
|
|
<manvolnum>3</manvolnum>
|
|
|
|
<refmiscinfo>opensc</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>sc_disconnect_card</refname>
|
2005-06-16 19:35:31 +00:00
|
|
|
<refpurpose>Disconnect from a smart card</refpurpose>
|
2005-02-23 02:52:20 +00:00
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Synopsis</title>
|
|
|
|
<para>
|
|
|
|
<programlisting>
|
2005-03-01 23:18:24 +00:00
|
|
|
#include <opensc.h>
|
2005-02-23 02:52:20 +00:00
|
|
|
|
|
|
|
int sc_disconnect_card(<link linkend="sccardt">sc_card_t</link> *card, int action);
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<para>
|
|
|
|
This function disconnects from <emphasis>card</emphasis>, and frees the card structure. Any locks made
|
|
|
|
by the application must be released before calling this function.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <emphasis>action</emphasis> parameter is not used at the moment and should be set to 0.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The card is not reset nor powered down after the operation.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2005-03-01 23:18:24 +00:00
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Return value</title>
|
|
|
|
<para>Returns 0 if successful, or a negative value in case of error.</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2005-02-23 02:52:20 +00:00
|
|
|
</refentry>
|