sensor_roll_close_file()

Close the file descriptor for a file on the sensor roll

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_roll_close_file(int fd)

Arguments:

fd
The file descriptor for the file on the sensor roll to close.

Library:

libsensor

Description:

The sensor roll is a directory on the device where the sensor application saves files. The Sensor Framework manages unique filenames on behalf of the application. Use this function to close the file descriptor that was returned by calling the sensor_roll_open_file() function on the sensor roll.

Returns:

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