Fixed dependencies in Makefile
[h316.git] / main.cpp
... / ...
CommitLineData
1/*
2$Id: main.cpp,v 1.2 2006/11/20 01:19:01 hachti Exp $
3*/
4#include <stdio.h>
5#include <unistd.h>
6
7#include "tape_block.hh"
8#include "data_block.hh"
9
10void tape_start(void* m){
11 printf("tape_start\n");
12}
13
14void tape_stop(void* m){
15 printf("tape_stop\n");
16}
17
18int main(){
19 tape_block * myblock=0;
20 do{
21 if (myblock) delete myblock;
22 myblock=tape_block::gen_from_fd(0);
23
24 vector<string> desc=myblock->get_description();
25 for (vector<string>::iterator iter=desc.begin();
26 iter!=desc.end();iter++)
27 printf("%s\n",(*iter).c_str());
28 } while (myblock->get_state()==tape_block::TBS_OK);
29 return 0;
30}