aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-09-28 13:05:57 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-09-28 13:05:57 +0000
commit09a7a4a47485a8fc549a3d89088d74ad6357b6de (patch)
treeac848e72ac969e3278cd77254b0139ce077586d1 /src
parent21e83d18f6d35f9060d1cb0239a93b85860f0ffe (diff)
added link to a ressource on the ppdev-interface
svn path=/trunk/externals/zexy/; revision=3643
Diffstat (limited to 'src')
-rw-r--r--src/lpt.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lpt.c b/src/lpt.c
index 2522673..4b95af4 100644
--- a/src/lpt.c
+++ b/src/lpt.c
@@ -15,11 +15,17 @@
******************************************************/
/*
- (c) 2000:forum::für::umläute:2004
+ (c) 2000:forum::für::umläute:2005
write to the parallel port
extended to write to any port (if we do have permissions)
+ 2005-09-28: write to devices instead of hardware-addresses
+ http://people.redhat.com/twaugh/parport/html/ppdev.html
+ TODO: don't lock when multiple objects refer to the same device
+ TODO: allow readonly/writeonly access
+ TODO: test for timeouts,...
+
thanks to
Olaf Matthes: porting to WindozeNT/2000/XP
Thomas Musil: adding "control-output" and "input"
@@ -240,10 +246,10 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv)
}
}
if(x->device>0)
- post("connected to device %s", devname);
+ post("lpt: connected to device %s", devname);
else
- post("connected to port %x in mode '%s'", x->port, (x->mode==MODE_IOPL)?"iopl":"ioperm");
- if (x->mode==MODE_IOPL)post("warning: this might seriously damage your pc...");
+ post("lpt: connected to port %x in mode '%s'", x->port, (x->mode==MODE_IOPL)?"iopl":"ioperm");
+ if (x->mode==MODE_IOPL)post("lpt-warning: this might seriously damage your pc...");
#else
error("zexy has been compiled without [lpt]!");
#endif /* Z_WANT_LPT */