mmr_context_close()

Close a context.

Synopsis:

#include <mm/renderer/renderer.h>
 
int mmr_context_close(mmr_context_t *ctxt)

Since:

BlackBerry 10.0.0

Arguments:

ctxt

A context handle.

Library:

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

Description:

Close and invalidate the context handle. The handle is always closed and becomes invalid, even if the function returns an error.

If a primary handle (which was returned by mmr_context_create()) is passed in, the associated context is destroyed, and the function fails and sets the global variable errno to EPERM.

Returns:

Zero on success, -1 on failure (check errno). The handle becomes invalid either way.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus