2 $Id: main.cpp,v 1.3 2006/11/20 01:19:48 hachti Exp $
4 Revision 1.3 2006/11/20 01:19:48 hachti
11 #include "tape_block.hh"
12 #include "data_block.hh"
14 void tape_start(void* m
){
15 printf("tape_start\n");
18 void tape_stop(void* m
){
19 printf("tape_stop\n");
23 tape_block
* myblock
=0;
25 if (myblock
) delete myblock
;
26 myblock
=tape_block::gen_from_fd(0);
28 vector
<string
> desc
=myblock
->get_description();
29 for (vector
<string
>::iterator iter
=desc
.begin();
30 iter
!=desc
.end();iter
++)
31 printf("%s\n",(*iter
).c_str());
32 } while (myblock
->get_state()==tape_block::TBS_OK
);