Function wyrd_close

Function Documentation

wyrd_error_t wyrd_close(struct wyrd_handle **handle)

Closing a resource just requires the handle.

Parameters

handle[inout] The handle to close; it’ll be set to NULL on success.

Return values
  • WYRD_ERR_SUCCESS – On success.

  • WYRD_ERR_INVALID_VALUE – If any of the parameters are invalid, such as e.g. NULL when they should not be, etc.

  • WYRD_ERR_NOT_IMPLEMENTED – If called on handle whose resource type is not supported.

  • Other – When the specific resource type’s handle code returns a specific failure.