mmr_context_close()

Updated: April 19, 2023

Close a context handle

Synopsis:

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

Arguments:

ctxt
A context handle

Library:

mmrndclient

Description:

Close and invalidate the context handle. The handle passed to this function always gets closed and becomes invalid, even if the function fails. If the primary handle (which was returned by mmr_context_create()) is passed in, the associated context might be destroyed, depending on the command-line options given to mm-renderer. If this happens, the function fails and sets errno to EPERM.

Returns:

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