Open an existing context.
#include <mm/renderer/renderer.h>
mmr_context_t* mmr_context_open(mmr_connection_t *connection,
const char *name)
BlackBerry 10.0.0
An mm-renderer connection handle
The context name.
Open a handle to an existing context. The handle returned by this function is called a secondary handle.
The mm-renderer service allows you to open as many secondary handles as you like. If the context is destroyed or the primary handle is closed, the secondary handles are still valid, but they should be closed; you can pass them to other API calls, but those calls will fail.
To avoid memory leaks, you must close every handle opened with mmr_context_open(), either explicitly by calling one of the following:
or implicitly by terminating the process.
A handle on success, or a null pointer on failure (check errno).