fd9632c0 |
1 | /* |
2 | r |
3 | $Id: main.cpp,v 1.4 2006/11/20 01:20:11 hachti Exp $ |
4 | $Log: main.cpp,v $ |
5 | Revision 1.4 2006/11/20 01:20:11 hachti |
6 | *** empty log message *** |
97b26985 |
7 | |
fd9632c0 |
8 | Revision 1.3 2006-11-20 01:19:48 hachti |
9 | Another revision |
10 | |
11 | */ |
97b26985 |
12 | #include <stdio.h> |
13 | #include <unistd.h> |
14 | |
15 | #include "tape_block.hh" |
6c06db96 |
16 | #include "data_block.hh" |
97b26985 |
17 | |
18 | void tape_start(void* m){ |
19 | printf("tape_start\n"); |
20 | } |
21 | |
22 | void tape_stop(void* m){ |
23 | printf("tape_stop\n"); |
24 | } |
25 | |
26 | int main(){ |
27 | tape_block * myblock=0; |
28 | do{ |
29 | if (myblock) delete myblock; |
0ec6e042 |
30 | myblock=tape_block::gen_from_fd(0); |
fd9632c0 |
31 | |
6c06db96 |
32 | vector<string> desc=myblock->get_description(); |
33 | for (vector<string>::iterator iter=desc.begin(); |
34 | iter!=desc.end();iter++) |
35 | printf("%s\n",(*iter).c_str()); |
97b26985 |
36 | } while (myblock->get_state()==tape_block::TBS_OK); |
97b26985 |
37 | return 0; |
38 | } |