HIDAddClient

Syntax

#include <cafe/hid.h>

HID_ERROR_CODE HIDAddClient(HIDClient *p_client, HIDAttachCallback attach_callback);

Parameters

p_client Pointer to the HIDClient data structure provided by the client to the HID library. This data structure is referenced by the HID library at runtime and should remain valid between HIDAddClient and HIDDelClient.
attach_callback Pointer to the client-implemented HIDAttachCallback function to receive attach and detach events.

Return Values

HIDAddClient always returns HID_ERROR_NONE.

Description

HIDAddClient adds a new client to the HID library. During the call to HIDAddClient the client is notified of any HID device already attached that does not have a client owner. HID clients are notified of new HIDDevice attach events at runtime in FILO order.

Do Not Call From

Background Do not call this function from the background.

See Also

HIDClient
HIDAttachCallback
HIDDelClient

Revision History

2013-05-08 Automated cleanup pass.
2011-09-29 Initial version.


CONFIDENTIAL