|
Revision 25, 0.7 kB
(checked in by sven, 3 years ago)
|
|
Clean up of repository before renaming the whole project
to
old media project
since we will shortly add punch card support to the whole
project.
-- sven @ workstation
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | struct _PuncherBackend { |
|---|
| 10 | int debug_flag; |
|---|
| 11 | |
|---|
| 12 | #ifdef __linux__ |
|---|
| 13 | int parport_fd; |
|---|
| 14 | long long time_since_beginning; |
|---|
| 15 | #elif __WIN32__ || _MSC_VER || __MSDOS__ |
|---|
| 16 | int blaa; |
|---|
| 17 | #endif |
|---|
| 18 | }; |
|---|
| 19 | |
|---|
| 20 | typedef struct _PuncherBackend PuncherBackend; |
|---|
| 21 | |
|---|
| 22 | PuncherBackend* puncher_backend_new(int debug_flag); |
|---|
| 23 | int puncher_backend_write_byte(PuncherBackend* c, unsigned char byte); |
|---|
| 24 | int puncher_backend_destroy(PuncherBackend* c); |
|---|
| 25 | #define PUNCHER_BACKEND_DPRINTF(bla...) { if(c->debug_flag) fprintf(stderr,bla); } |
|---|
| 26 | |
|---|
| 27 | #ifdef __WIN32__ |
|---|
| 28 | |
|---|
| 29 | void puncher_backend_stop(PuncherBackend *c); |
|---|
| 30 | #endif |
|---|