Gets the location ID for this device
| 94 | |
| 95 | // Gets the location ID for this device |
| 96 | OSNumber* WirelessDevice::newLocationIDNumber() const |
| 97 | { |
| 98 | OSNumber *owner; |
| 99 | UInt32 location = 0; |
| 100 | |
| 101 | if (index == -1) |
| 102 | return NULL; |
| 103 | WirelessGamingReceiver *receiver = OSDynamicCast(WirelessGamingReceiver, getProvider()); |
| 104 | if (receiver == NULL) |
| 105 | return NULL; |
| 106 | owner = receiver->newLocationIDNumber(); |
| 107 | if (owner != NULL) |
| 108 | { |
| 109 | location = owner->unsigned32BitValue() + 1 + index; |
| 110 | owner->release(); |
| 111 | } |
| 112 | return OSNumber::withNumber(location, 32); |
| 113 | } |
nothing calls this directly
no outgoing calls
no test coverage detected