sensor_event_notify()

Set up the notification method for a sensor.

Synopsis:

#include <sensor/libsensor.h>
 
int sensor_event_notify(sensor_t *sensor, struct sigevent *ev)

Since:

BlackBerry 10.0.0

Arguments:

sensor

The sensor to modify.

ev

The sigevent to use as a notification.

Library:

libsensor (For the qcc command, use the -l sensor option to link against this library)

Description:

This function calls ionotify() to arm the system with the sigevent that you want to use as a notification.

The sigevent is cached in the sensor.

Returns:

EOK on success, an errno value otherwise.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus