Open an existing context.
mmr_context_t* mmr_context_open( mmr_connection_t *connection, const char *name )
- 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, but doesn't allow you to use them after you close the context's primary handle because this action also destroys the context.
To avoid memory leaks, every handle opened with mmr_context_open() needs to be closed, either explicitly through an API call or implicitly by terminating the process.
A handle on success, or a null pointer on failure (check errno).
Last modified: 2013-10-30