Re: usb plug/unplug notifications

2009-07-10 Thread Andrew W. Nosenko
On Fri, Jul 10, 2009 at 05:15, Michael Cronenworth wrote: > > I'd advice against programming to HAL unless your environment requires it. If your target is Linux only, then yes, sure. If you want to run on any other OS, then... Fortunately or not, but you should either play the HAL game, or OS speci

Re: usb plug/unplug notifications

2009-07-10 Thread Brian J. Tarricone
On 2009/07/09 15:38, Garth's KidStuff wrote: Hi All, I'd like to know how to intercept usb events. Right now, I'm polling for changes, but that isn't the "right" way to handle device discovery. Is there a way to get a notification when something happens in the usb world? Not really on-topic f

Re: usb plug/unplug notifications

2009-07-09 Thread Michael Cronenworth
On 07/09/2009 09:14 PM, Ardhan Madras wrote: For desktop application (because we are GTK+ forum) there is HAL (Hardware Abstraction Layer) http://www.freedesktop.org/wiki/Software/hal to receive events and informations from devices and the kernel, gnome-volume-manager use HAL to know when a de

Re: usb plug/unplug notifications

2009-07-09 Thread Ardhan Madras
the user has defined (eg. mount). --- ajhwb --- garthskidst...@gmail.com wrote: From: "Garth's KidStuff" To: gtk-app-devel-list@gnome.org Subject: usb plug/unplug notifications Date: Thu, 9 Jul 2009 17:38:24 -0500 Hi All, I'd like to know how to intercept usb events. Ri

Re: usb plug/unplug notifications

2009-07-09 Thread John Coppens
On Thu, 9 Jul 2009 17:38:24 -0500 "Garth's KidStuff" wrote: > I'd like to know how to intercept usb events. Right now, I'm polling > for changes, but that isn't the "right" way to handle device > discovery. Is there a way to get a notification when something happens > in the usb world? In rece

usb plug/unplug notifications

2009-07-09 Thread Garth's KidStuff
Hi All, I'd like to know how to intercept usb events. Right now, I'm polling for changes, but that isn't the "right" way to handle device discovery. Is there a way to get a notification when something happens in the usb world? Thanks in advance. -Garth -- Garth Upshaw Garth's KidStuff ___