Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Matching added/removed devices



Hello all,

I'm sure this is a bit of a newbie question. I have an app that is
receiving add/remove notifications for my USB device. It is possible
to have multiple devices plugged in at one time, and my app tries to
keep an updated list.

I am having a problem, because I don't see how to match a removed
device with the device that is already on the list. The io_service_t
value is different, and I cannot get a plug-in interface, presumably
because the device is already gone. I'm sure there must be a way to do
this that doesn't involve rescanning the bus and re-creating my list.

I can store any information that was available to the
IOUSBDeviceInterface that I received in the add notification. But I
can only match it to information that is available to the io_service_t
that I receive in the remove notification.

Can anyone help?

Thank you,

George
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.