|
YAC 3.18.0
Yet Another Coupler
|
#include "parameter/param.h"

Go to the source code of this file.
Functions | |
| struct yac_param * | yac_param_struct_new (const char *name, struct yac_param **subparams, size_t subparam_count) |
| Create a new struct parameter with a given name and subparameters. | |
| struct yac_param * yac_param_struct_new | ( | const char * | name, |
| struct yac_param ** | subparams, | ||
| size_t | subparam_count ) |
Create a new struct parameter with a given name and subparameters.
Allocates and returns a new struct parameter object. The struct parameter will have the specified name and contain the given subparameters as its children.
The subparams array must contain pointers to already-allocated parameter objects (e.g., created with yac_param_int_new, etc). Ownership of the subparams is transferred to the struct parameter: they will be deleted when the struct parameter is deleted.
| name | Name of the struct parameter (must not be NULL or empty) |
| subparams | Array of pointers to subparameter objects |
| subparam_count | Number of subparameters in the array |
Definition at line 128 of file param_struct.c.
