root/paper-tape-project/trunk/puncher/backend.h

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 * These are the functions *every* backend must serve.
3 *
4 *
5 *
6 *
7 **/
8
9struct _PuncherBackend {
10    int debug_flag;
11
12#ifdef __linux__
13    int parport_fd;
14    long long time_since_beginning; // etwas lustige Zeitmessung
15#elif __WIN32__ ||  _MSC_VER || __MSDOS__
16    int blaa;
17#endif
18};
19
20typedef struct _PuncherBackend PuncherBackend;
21
22PuncherBackend* puncher_backend_new(int debug_flag);
23int puncher_backend_write_byte(PuncherBackend* c, unsigned char byte);
24int puncher_backend_destroy(PuncherBackend* c);
25#define PUNCHER_BACKEND_DPRINTF(bla...) { if(c->debug_flag) fprintf(stderr,bla); }
26
27#ifdef __WIN32__
28// G++ *braucht* dringend vollstaendige Header
29void puncher_backend_stop(PuncherBackend *c);
30#endif
Note: See TracBrowser for help on using the browser.
© 2008 - 2010 Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License