mmr_async_context_destroy()

Asynchronously destroy a context.

Synopsis:

#include <mm/renderer/async.h>
 
int mmr_async_context_destroy(mmr_context_t *ctxt,
                              void *udata)

Since:

BlackBerry 10.3.0

Arguments:

ctxt

A context handle.

udata

User data to be returned with the result.

Library:

libmmrndclient (For the qcc command, use the -l mrndclient option to link against this library)

Description:

Send a request to destroy the context the handle refers to. The handle becomes invalid and must not be used after this call. The completion of this request is reported by mmr_async_nextcomplete() with a NULL context handle in mmr_async_result_t.

Returns:

Zero on success, -1 on failure (check errno).