hal_param_alias(3hal)

hal_param_alias3hal

Create an alternate name for a param

Usage

int hal_param_alias(const char *original_name, const char *alias);

Arguments

original_name

The original name of the param

alias

The alternate name that may be used to refer to the param, or NULL to remove any alternate name.

Overview

A param may have two names: the original name (the one that was passed to a hal_param_new function) and an alias.

Usually, aliases are for the convenience of users and should be created and destroyed via halcmd. However, in some cases it is sensible to create aliases directly in a component. These cases include the case where a param is renamed, to preserve compatibility with old versions.

Return value

Returns a HAL status code.

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From linuxcnc-uspace-dev 1:2.9.4-2+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.