logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hal_set_constructor - sets the constructor function for this component

Arguments

comp_id A HAL component identifier returned by an earlier call to hal_init.

       prefix The prefix to be given to the pins, parameters, and functions in the new instance

       arg An argument that may be used by the component to customize this instance.

Description

       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.

Name

       hal_set_constructor - sets the constructor function for this component

Return Value

       Returns a HAL status code.

See Also

halcmd(1)

LinuxCNC Documentation                             2006-10-12                          hal_set_constructor(3hal)

Syntax


       typedef  int  (*hal_constructor_t)(const  char  *prefix,  const  char  *arg); int hal_set_constructor(int
              comp_id, hal_constructor_t constructor)

See Also