From 09a7a4a47485a8fc549a3d89088d74ad6357b6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 28 Sep 2005 13:05:57 +0000 Subject: added link to a ressource on the ppdev-interface svn path=/trunk/externals/zexy/; revision=3643 --- src/lpt.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.1