Re: Matching Multiple Services?
Re: Matching Multiple Services?
- Subject: Re: Matching Multiple Services?
- From: "Duane Murphy" <email@hidden>
- Date: Wed, 1 Aug 2007 09:05:25 -0700
--- At Wed, 1 Aug 2007 08:42:41 -0700, Michael Smith wrote:
>
>On Jul 31, 2007, at 12:03 PM, email@hidden wrote:
>
>> Is it possible to use IOServiceGetMatchingServices() to match with a
>> logical-OR configuration?
>>
>> I need to find several (3) different types of services. Is there some
>> way to build a dictionary that could find all three of them at once?
>
>Yes.
>
>Note that the constructors for the matching dictionaries all take an
>OSDictionary as an argument, and note that they are all documented
>with some variation on:
>
> "Create a matching dictionary, or add matching properties to an
>existing dictionary, that specify [some kind of] match."
Thanks Mike, unfortunately, My understanding is that adding multiple
items to the dictionary leads to a logical-AND match. That is if I put
three different class name match choices into the dictionary, the match
will be for all three at once, which of course would match none of the items.
Is there some logic that I am missing here?
...Duane
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden