| 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 *** |
| 7 | |
| 8 | Revision 1.3 2006-11-20 01:19:48 hachti |
| 9 | Another revision |
| 10 | |
| 11 | */ |
| 12 | #include <stdio.h> |
| 13 | #include <unistd.h> |
| 14 | |
| 15 | #include "tape_block.hh" |
| 16 | #include "data_block.hh" |
| 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; |
| 30 | myblock=tape_block::gen_from_fd(0); |
| 31 | |
| 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()); |
| 36 | } while (myblock->get_state()==tape_block::TBS_OK); |
| 37 | return 0; |
| 38 | } |