![]() |
BALTECH Docs |
BALTECH SDK wrapper functions reference
|
| BRP_LIB brp_errcode brp_get_friendly_name | ( | brp_protocol | protocol, |
| char ** | friendly_name | ||
| ) |
Retrieves the friendly name of the device by traversing the protocol stack.
This function traverses the protocol stack (via base_protocol chain) and returns the first non-NULL friendly_name found. This allows retrieving device-specific names (like USB product names) regardless of protocol stack configuration.
| protocol | Protocol handle to query |
| friendly_name | Output parameter for the friendly name string. Set to NULL if not available in any layer. |