Typedef anjay_nidd_driver_system_descriptor_t

Typedef Documentation

typedef int anjay_nidd_driver_system_descriptor_t(anjay_nidd_driver_t *driver, const void **out)

Returns a pointer to bare system handle to the device communication channel if possible (e.g. to invoke select or poll). The returned handle shall be interpreted in the same way as the value returned from avs_net_socket_get_system().

Param driver:

Device driver context to operate on.

Param out:

Pointer to a variable in which to save the pointer to the system handle. May be NULL if the driver cannot provide any handle.

Return:

0 on success, or a negative value in case of error. Driver errno MUST be set to a non-zero value if the function fails.