Change all the SmartThings APIs for Tizen 5.0
[apps/native/st-things-blind.git] / inc / resource_illuminance_sensor.h
similarity index 80%
rename from inc/resource/resource_illuminance_sensor.h
rename to inc/resource_illuminance_sensor.h
index 05523ca..c77293c 100644 (file)
@@ -16,8 +16,8 @@
  * limitations under the License.
  */
 
-#ifndef __POSITION_FINDER_RESOURCE_ILLUMINANCE_SENSOR_H__
-#define __POSITION_FINDER_RESOURCE_ILLUMINANCE_SENSOR_H__
+#ifndef __RESOURCE_ILLUMINANCE_SENSOR_H__
+#define __RESOURCE_ILLUMINANCE_SENSOR_H__
 
 /**
  * @brief Reads the value of i2c bus connected illuminance sensor.
  */
 extern int resource_read_illuminance_sensor(int i2c_bus, uint32_t *out_value);
 
-#endif /* __POSITION_FINDER_RESOURCE_ILLUMINANCE_SENSOR_H__ */
+/**
+ * @brief Destory the i2c handle and changes the gpio pin state to the close(0).
+ */
+extern void resource_close_illuminance_sensor(void);
+
+#endif /* __RESOURCE_ILLUMINANCE_SENSOR_H__ */