ncGraphSetOption()

Info Value
Header mvnc.h
Library libmvnc.so
Version 2.0
See also struct ncGraphHandle_t, ncGraphOption_t, ncGraphGetOption()

Overview

This function sets an option value for a graph. The available options and possible values can be found in the ncGraphOption_t enumeration.

Prototype

ncStatus_t ncGraphSetOption(struct ncGraphHandle_t* graphHandle,
                            int option, const void* data,
                            unsigned int dataLength);

Parameters

Name Type Description
graphHandle struct ncGraphHandle_t* A pointer to an ncGraphHandle_t struct for the graph for which the option value will be set. The graph state must be NC_GRAPH_CREATED.
option int A value from the ncGraphOption_t enumeration that specifies which option’s value will be set.
data const void* A pointer to a buffer containing the new value for the option.

The type of data this points to depends on the option that is specified. Check ncGraphOption_t for the data types that each option requires.
dataLength unsigned int An unsigned int that contains the length, in bytes, of the buffer that the data parameter points to.

Return

An appropriate value from the ncStatus_t enumeration.

Notes

  • There are currently no settable graph options.

Example

N/A