Structure for getting the sensor name.
typedef union {
struct {
char name[SENSOR_MAX_NAME_SIZE];
} rx;
} sensor_devctl_name_u;
BlackBerry 10.0.0
The union sensor__devctl__name__u is used with the DCMD_SENSOR_NAME device command to get the name of the sensor.
sensor_devctl_name_u sensorName;
result = devctl(fd, DCMD_SENSOR_NAME, &sensorName,
sizeof(sensorName), NULL);
where: result is EOK for success (or see errno return code descriptions).