Skip to main content

ec_module_manifest_value_as_dict

Last updated March 2020

Name

ec_module_manifest_value_as_dict — retrieves a dictionary of manifest values for a named module

Synopsis

#include "module.h"

| int **ec_module_manifest_value_as_dict** ( | iter, |   | |   | modulename, |   | |   | keyname, |   | |   | dict); |   |

ec_module_manifest_iter_t * <var class="pdparam">iter</var>; const char * <var class="pdparam">modulename</var>; const char * <var class="pdparam">keyname</var>; ECDict * <var class="pdparam">dict</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

retrieves a dictionary of manifest values for a named module

If keyname is defined by the manifest for modulename, treat its value as a comma and/or space separated list of values.

Sets dict to a dictionary whose keys are "0", "1" etc. (stringified versions of the numeric positioning in the list), with values corresponding to those in the list.

The caller is responsible for dropping that dict if it is returned. Note that a dictionary is used here to simplify the memory management.

Parameters

iter

the iterator

modulename

the name of the module

keyname

the name of the item to be retrieved

dict

the dictionary holding the data

Return Values

1 if defined, 0 otherwise.

Was this page helpful?