Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

MmCreateGraph()

Create a multimedia graph

Synopsis:

MmGraph_t *MmCreateGraph(const char *name);

Arguments:

name
A string for the graph's name resource. This can't be an empty string.

Library:

mmedia

Description:

This function returns a pointer to a multimedia graph (an opaque MmGraph_t structure) and sets its ID resource.

When you're finished with a graph, you should use MmDestroyGraph() to destroy the graph and free its resources.

Returns:

A pointer to a MmGraph_t structure, or NULL if an error occurred.

Examples:

  // Create a new graph:

  MmGraph_t *graph=MmCreateGraph("My new graph");

Classification:

Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

MmInitialize(), MmDestroyGraph()