sensor_return_buffer()

Return a data buffer that was retrieved

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_return_buffer(sensor_handle_t handle,
                                    sensor_buffer_t *buffer)

Arguments:

handle
The handle that's returned from calling sensor_open().
buffer
The buffer to free.

Library:

libsensor

Description:

This is required for any buffers acquired through a call to sensor_get_buffer(). It is also required for data callbacks for which false was returned to release the buffer later.

Returns:

SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.