diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-12-09 13:31:58 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2010-12-09 13:31:58 +0100 |
commit | bdca252fb00469fed288be239e29f57019a33194 (patch) | |
tree | eb3811c01f5fe7c40d9910c0e5e890406693fdde /pySim/transport/__init__.py | |
parent | 9c8729a2d12f16920e5a4d37280d330356f51f39 (diff) |
transport: Change transport api to allow for wait_for_card/connect/disconnect
This way, we can re-use the same transport parameters for several
cards for a future batch mode
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'pySim/transport/__init__.py')
-rw-r--r-- | pySim/transport/__init__.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pySim/transport/__init__.py b/pySim/transport/__init__.py index c9715fc..dd04bba 100644 --- a/pySim/transport/__init__.py +++ b/pySim/transport/__init__.py @@ -23,6 +23,25 @@ class LinkBase(object): + def wait_for_card(self, timeout=None, newcardonly=False): + """wait_for_card(): Wait for a card and connect to it + + timeout : Maximum wait time (None=no timeout) + newcardonly : Should we wait for a new card, or an already + inserted one ? + """ + pass + + def connect(self): + """connect(): Connect to a card immediately + """ + pass + + def disconnect(self): + """disconnect(): Disconnect from card + """ + pass + def reset_card(self): """reset_card(): Resets the card (power down/up) """ |