-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Problem
The example app "axparameter" registers callbacks with short names but in the API it suggests to use "path-like" as the following: "root.Group.Name".
Line 194 in axparameter/app/axparameter.c:
if (!ax_parameter_register_callback(handle, "IsCustomized", parameter_changed, handle, &error))However, line 158 in the callback it attempts to parse the parameter name assuming it was registered with a path name:
const char* name_without_qualifiers = &name[strlen("root." APP_NAME ".")];Inconsistency
In the main function we are registering for the call back with a short name (e.g., "IsCustomized")
But once we handled change of the parameter we are trying to parse path (e.g., "root.axparameter.IsCustomized")
This creates inconsistency in the example app.
Metadata
Metadata
Assignees
Labels
No labels