summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorEunyoung Lee <ey928.lee@samsung.com>2017-08-23 14:35:01 +0900
committerEunyoung Lee <ey928.lee@samsung.com>2017-08-23 14:44:49 +0900
commitd673c0b292e334e7fc0dbe814f6c81940b4bbcda (patch)
treeac66fc12142a5b85d4a583c3650d4f420b74c20b /inc
parenta107e25c9bb5e2a88943db4843c32a16c0c172a2 (diff)
downloadrcc-d673c0b292e334e7fc0dbe814f6c81940b4bbcda.tar.gz
rcc-d673c0b292e334e7fc0dbe814f6c81940b4bbcda.tar.bz2
rcc-d673c0b292e334e7fc0dbe814f6c81940b4bbcda.zip
Modified to use close function of each sensor when closing resource
Change-Id: I5eb994ac5c22823cdfef2e15c7741241e6ce36ba
Diffstat (limited to 'inc')
-rw-r--r--inc/resource_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/resource_internal.h b/inc/resource_internal.h
index 5ef6cce..4b06c0d 100644
--- a/inc/resource_internal.h
+++ b/inc/resource_internal.h
@@ -36,6 +36,7 @@
struct _resource_s {
int opened;
peripheral_gpio_h sensor_h;
+ void (*close) (int);
};
typedef struct _resource_s resource_s;