MCPcopy Create free account
hub / github.com/360Controller/360Controller / newLocationIDNumber

Method newLocationIDNumber

WirelessGamingReceiver/WirelessDevice.cpp:96–113  ·  view source on GitHub ↗

Gets the location ID for this device

Source from the content-addressed store, hash-verified

94
95// Gets the location ID for this device
96OSNumber* 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected