mmr_context_create()

Create a new context and open a context handle

Synopsis:

#include <renderer.h>

mmr_context_t *mmr_context_create( mmr_connection_t *connection,
                                   const char *name,
                                   unsigned flags,
                                   mode_t mode );

Arguments:

connection
A connection handle to mm-renderer.
name
A name for the new context. Context names must be unique.
flags
Reserved for future use. Must be set to zero.
mode
File permission flags for the new context directory.

Library:

mmrndclient

Description:

The function mmr_context_create() creates a new context with the specified name and opens a context handle to it. The operation fails if a context with the same name already exists. The name must be a valid filename and will show up in the pathname space, with its file mode flags set as specified by the mode argument. For more information about context handles, see Working with contexts .

Returns:

A valid context handle on success, or a null pointer on failure. In the case of an error, the global variable errno is set.

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes