Go to the documentation of this file.
94 thisPtr->
m_hub = strdup(hub);
106 free((
void*) thisPtr->
m_hub);
133 if (thisPtr == thatPtr)
136 tmp = thisPtr->
m_hub;
138 thatPtr->
m_hub = tmp;
162 otherLastDot = strrchr(right->
m_hub,
'.');
163 thisLastDot = strrchr(left->
m_hub,
'.');
165 dotPos = (int)(otherLastDot - right->
m_hub);
166 tmp = (int)(thisLastDot - left->
m_hub);
171 return !strncmp(right->
m_hub, left->
m_hub, dotPos);
void XsUsbHubInfo_copy(XsUsbHubInfo *copy, XsUsbHubInfo const *src)
Copy the contents of the XsUsbHubInfo to copy.
void XsUsbHubInfo_swap(XsUsbHubInfo *thisPtr, XsUsbHubInfo *thatPtr)
Swap the two XsUsbHubInfo items.
void XsUsbHubInfo_assign(XsUsbHubInfo *thisPtr, XsHubIdentifier hub)
Assign a new hub identifier to the XsUsbHubInfo.
const typedef char * XsHubIdentifier
A structure that wraps USB hub information.
XsHubIdentifier m_hub
The identifier of the USB hub.
void XsUsbHubInfo_construct(XsUsbHubInfo *thisPtr, XsHubIdentifier hub)
Initialize the XsUsbHubInfo with hub.
void XsUsbHubInfo_destruct(XsUsbHubInfo *thisPtr)
Destroy the XsUsbHubInfo.
int XsUsbHubInfo_parentPathMatches(const XsUsbHubInfo *left, const XsUsbHubInfo *right)
Returns true if the two hub info objects share the same device path.