hidd_device_lookup()

Find a device in connection’s reports

Synopsis:

#include <sys/hiddi.h>

int hidd_device_lookup( struct hidd_connection *connection,
                        hidd_device_instance_t *search,
                        hidd_device_instance_t **found );

Arguments:

connection
The HID stack connection handle (from hidd_connect()).
search

A pointer to a hidd_device_instance_t instance containing the devno field to match in the connection’s internal report list.

found

Where to store the pointer to the hidd_device_instance_t instance found. NULL if not found.

Description:

The hidd_device_lookup() function finds a device with a matching device number in a connection’s internal report list.

Note:
While similar, hidd_device_lookup_instance() searches for the device in the connection’s device list, rather than reports attached to the connection.

Returns:

EOK
Success.
ENOENT
The device instance wasn't found.
Page updated: