From owner-freebsd-multimedia Sun Jun 21 22:15:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA15187 for freebsd-multimedia-outgoing; Sun, 21 Jun 1998 22:15:33 -0700 (PDT) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles314.castles.com [208.214.167.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA15127; Sun, 21 Jun 1998 22:15:19 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id VAA03380; Sun, 21 Jun 1998 21:10:23 -0700 (PDT) Message-Id: <199806220410.VAA03380@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: sos@FreeBSD.ORG cc: rhh@ct.picker.com (Randall Hopper), nirva@ishiboo.com, hasty@netcom.com, yokota@zodiac.mech.utsunomiya-u.ac.jp, multimedia@FreeBSD.ORG, hackers@FreeBSD.ORG, hasty@rah.star-gate.com Subject: Re: X-10 Mouse Remote patch In-reply-to: Your message of "Fri, 19 Jun 1998 13:02:30 +0200." <199806191102.NAA00901@sos.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Sun, 21 Jun 1998 21:10:23 -0700 From: Mike Smith Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id WAA15165 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > You got me wrong here, moused should have no pipes/sockets/etc > interfaces, it shall have exactly what it needs and that is the > device/devices of the mouse hw. If you need a deamon for a new > device (and I see a X10-remote-anything as a new device) you > should write one, not try to bend an old one into shape... Just be careful where you take this one; it's a sliding scale of greys from everything standalone (which for the cascaded MouseRemote case would reek) through to Streams in user-space. It seems that Amancio has again abandoned his "solution" partway, so let me elaborate on a stacked pointer-interface model which I originally devised to deal with Randall's original suggestion. It owes a little to Streams and a lot to dlopen(). In the new model, moused serves as a framework for modules related to auxiliary input devices, specifically those whose operational domain may overlap that of the primary pointing device. This should primarily involve managing a single input source, which may have more than one layer of protocol embedded within it. A combination of manual and automatic configuration serves to build a stack of processing modules. Configuration would include active discovery (COM PnP, traditional mouse probes, perhaps delayed protocol-sensitive determination - the first two we have, the third might serve as an elaborate technique for avoiding manual configuration). Modules are, naturally, separate objects dynamically loaded and unloaded as required. Protocol data are passed into the top of the stack, where it ripples down, and is possibly passed out sideways either to a module-specific endpoint or to the standard 'pointer event stream' which is consolidated and passed to the console driver (etc.) as it is currently. This is a highly generalised design, and one which would facilitate the rapid production of new modules to handle auxiliary input devices. It is, of course, overkill in the current situation. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message