nabto_client_free2()

DESCRIPTION

Free a context.

If stop has not been called prior to this function, free can block until all io operations has finished.

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_free2(NabtoClient* context)

PARAMETERS

context:
[in] The context

RETURNS

  • NABTO_CLIENT_EC_OK: if the context is freed
  • NABTO_CLIENT_EC_COULD_BLOCK: if the free is called from a callback.