summaryrefslogtreecommitdiff
path: root/examples/opiecore/opcmciademo/main.cpp
Unidiff
Diffstat (limited to 'examples/opiecore/opcmciademo/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r--examples/opiecore/opcmciademo/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/opiecore/opcmciademo/main.cpp b/examples/opiecore/opcmciademo/main.cpp
index 3ee22c2..dfc4287 100644
--- a/examples/opiecore/opcmciademo/main.cpp
+++ b/examples/opiecore/opcmciademo/main.cpp
@@ -6,19 +6,21 @@ int main( int argc, char** argv )
6{ 6{
7 odebug << "start" << oendl; 7 odebug << "start" << oendl;
8 OPcmciaSystem* sys = OPcmciaSystem::instance(); 8 OPcmciaSystem* sys = OPcmciaSystem::instance();
9 9
10 odebug << "number of detected sockets is = " << sys->count() << oendl; 10 odebug << "number of detected sockets is = " << sys->count() << oendl;
11 odebug << "number of populated sockets is = " << sys->cardCount() << oendl; 11 odebug << "number of populated sockets is = " << sys->cardCount() << oendl;
12 12
13 OPcmciaSystem::CardIterator it = sys->iterator(); 13 OPcmciaSystem::CardIterator it = sys->iterator();
14 OPcmciaSocket* sock = 0; 14 OPcmciaSocket* sock = 0;
15 while ( sock = it.current() ) 15 while ( sock = it.current() )
16 { 16 {
17 odebug << "card in socket # " << sock->number() << " is '" << sock->identity() << "'" << oendl; 17 odebug << "card in socket # " << sock->number() << " is '" << sock->identity() << "'" << oendl;
18 odebug << "card status is " << sock->status() << oendl;
19 odebug << "card function is " << sock->function() << oendl;
18 ++it; 20 ++it;
19 } 21 }
20 22
21 odebug << "end" << oendl; 23 odebug << "end" << oendl;
22 return 0; 24 return 0;
23} 25}
24 26