mmr_context_open()

Open a handle to an existing context

Synopsis:

#include <mm/renderer.h>
mmr_context_t* mmr_context_open(mmr_connection_t *connection,
                                const char *name)

Arguments:

connection
An mm-renderer connection handle
name
The context name

Library:

mmrndclient

Description:

Open a handle to an existing context. The handle returned by this function is called a secondary handle.

To avoid memory leaks, every context handle needs to eventually be closed, either explicitly through an API call or implicitly by disconnecting from mm-renderer or terminating the process.

Returns:

A handle on success, or a NULL pointer on failure (check errno)