hal_set_constructor − Set the constructor function for this component
typedef int (*hal_constructor_t)(const char *prefix, const char *arg); int hal_set_constructor(int comp_id, hal_constructor_t constructor) |
As an experimental feature in HAL 2.1, components may be constructable. Such a component may create pins and parameters not only at the time the module is loaded, but it may create additional pins and parameters, and functions on demand.
Returns a HAL status code.
halcmd(1)