Hi
The below from my Qt HAL access libraries demonstrates a way to access
components.
Note that the pointer is passed and from that the name is read, so you
have all you need once you find the right one.
regards
void HAL_Access::getAllComponentNames(QStringList& list)
{
int next;
hal_comp_t *comp;
rtapi_mutex_get(&(hal_data->mutex));
next = hal_data->comp_list_ptr;
while (next != 0)
{
comp = (hal_comp_t *)SHMPTR(next);
list.append(comp->name);
next = comp->next_ptr;
}
rtapi_mutex_give(&(hal_data->mutex));
}
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers