mmr_context_create()

Create a context.

Synopsis:

#include <mm/renderer.h>
mmr_context_t* mmr_context_create( mmr_connection_t *connection, 
                                   const char *name,
                                   unsigned flags, 
                                   mode_t mode )

Arguments:

connection
An mm-renderer connection handle.
name
The name of the context. This must be a valid filename and will show up in the pathname space as a directory.
flags
Must be zero. No flags are defined for now.
mode
File permission flags for the new context directory.

Library:

mmrndclient

Description:

Create and open a new context with the specified name. Fail if a context with that 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 contexts, see "Working with contexts".

Returns:

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

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes