summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Taeyoung Kim [Tue, 10 May 2016 10:36:12 +0000 (19:36 +0900)]
storage id: return NOT_SUPPORTED if storage id is invalid
- When storage id is invalid, the apis should return
NOT_SUPPORTED. This is for backward compatibility.
Change-Id: I5c54f0675072979dfc42242e5ce9b8efc438190d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 28 Apr 2016 08:54:52 +0000 (17:54 +0900)]
external: add functions to get storage size
- The functions to get storage size of given path are added.
- For the following apis, default path is set to primary sdcard.
int storage_get_external_memory_size(struct statvfs *buf)
int storage_get_external_memory_size64(struct statvfs *buf)
Change-Id: I0cfdcf2496849520cf0ef00a3ee2c3a70ec3c06c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 28 Apr 2016 06:57:17 +0000 (15:57 +0900)]
external: add function to get specific directories
- The specific directories are under the root path
of external storage.
- Ringtone path is not supported on external storages.
Change-Id: Ie7e13d19a30dbe8e6b874eba98f498c81c5da0a0
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 28 Apr 2016 06:54:36 +0000 (15:54 +0900)]
external: add function to get type
- If a storage is not the one of internal storages,
it is external storage.
Change-Id: Idd2e4bac3c398c91ccb0f3b2891a143c9fa95100
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 28 Apr 2016 06:51:26 +0000 (15:51 +0900)]
external: add function to get state of storages
- Storage states are delivered from deviced. To get
the information, dbus method is used.
Change-Id: Ib6c03dae93e428cadd6f484cc5b84e2e12bf1050
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 28 Apr 2016 06:46:24 +0000 (15:46 +0900)]
external: add function to get root path
- External storages are handled by deviced, and deviced
knows the information about root paths of storages.
Thus dbus method from deviced is used to get root path
information.
Change-Id: I5ca86c1c9280bacc78d7f07fc55617ac9c397bb4
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 28 Apr 2016 06:40:48 +0000 (15:40 +0900)]
external: add storage change handler
- Storage change handler functions are added.
They trace dbus signal from deviced. If storages are
added/removed/changed, dbus signal is broadcasted.
Thus the callbacks can be called according to the
storage state change.
Change-Id: Ib60f9f5b3bc316bb1c276dc0a7d30b881ca9da3a
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 28 Apr 2016 06:25:59 +0000 (15:25 +0900)]
external: support foreach function for external storages
- External storage information can be get from deviced.
Thus the dbus method call from deviced is used to
get the information.
Change-Id: Iac56c26ed766b8a72a78ba970152c7105b0672a1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 28 Apr 2016 06:10:16 +0000 (15:10 +0900)]
internal: storage list is used just for internal storage
- External storages are changeable and can be added/removed
frequently. Thus storage list maintains just internal storage.
Change-Id: Ia4da6c41b29156fdd8f783cadc371acbf8699be2
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 1 Apr 2016 00:03:03 +0000 (09:03 +0900)]
common: apply Tizen Coding Rule
- Space policy is applied.
- Brace position policy is applied.
Change-Id: I06e6e17e37018b0285c3eaf929a92640f7775f6c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 31 Mar 2016 06:19:14 +0000 (23:19 -0700)]
Merge "paths: change paths to Macros" into tizen
pr.jung [Wed, 30 Mar 2016 02:01:49 +0000 (11:01 +0900)]
Get Ringtone path from system setting api
Change-Id: I4a837028d9e6b49c6d57b2d3c62da36a108e3784
Signed-off-by: pr.jung <pr.jung@samsung.com>
Taeyoung Kim [Thu, 24 Mar 2016 13:01:41 +0000 (22:01 +0900)]
paths: change paths to Macros
- The paths of storages can be changed according to the dir policy.
Thus the paths are changed to macros which define the policy
Change-Id: I6eb483abefc8f8583bd439c37f886ab6b80880bd
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 17 Feb 2016 05:17:47 +0000 (14:17 +0900)]
paths: change mount path to TZ_SYS_MEDIA
- Tizen Directory policy is changed. The block device mount paths
are located under the TZ_SYS_MEDIA (/opt/media)
Change-Id: I5376ff66d94db8b3bfde19db304d8566985b8c1e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Mon, 3 Aug 2015 10:15:21 +0000 (19:15 +0900)]
license: update license name
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: I18feb1e2e05f22c1142419998307ae09b9812eff
taeyoung [Fri, 11 Sep 2015 07:26:20 +0000 (16:26 +0900)]
ringtones: change the path for the ringtones files
Change-Id: I3b4d9d40bcf1fb86dd9db64c7b62034ad44293dd
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 10 Sep 2015 09:00:44 +0000 (18:00 +0900)]
sdcard: change root path of sdcard
- Previously, the sdcard root path is hard-coded to /opt/storage/sdcard
But the directory policy is changed and the policy can be obtained
by libtzplatform-config. Thus the path is changed
Change-Id: Id1808bc6c67e0f54d272c332d27351ca81fec842
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 27 Aug 2015 12:40:40 +0000 (21:40 +0900)]
storage: change directory name "DCIM" to "Camera"
- The policy for directory name of camera is changed from "DCIM" to "Camera"
Change-Id: I0f7e42a6ffbfe5045447d69a8f61edcff749fb05
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Jiyoung Yun [Tue, 28 Jul 2015 07:03:59 +0000 (16:03 +0900)]
libstorage: Fixed wrong space value
The size of unsigned long long is not the same with int's size.
But it has copied int value to unsigned long long value.
It makes wrong copy operation.
Change-Id: Ief253146585ffc7474f9bd623c4680c8d516ede5
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 28 Jul 2015 06:57:42 +0000 (15:57 +0900)]
libstorage: Do not use thread-unsafe function and code clearance
strerror() is not safety on multi thread environment.
Add initialize input buffer.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I159b6a2162ef73e1dd337910a5b2e9a80e1354bd
Jiyoung Yun [Wed, 3 Jun 2015 02:47:20 +0000 (11:47 +0900)]
libstorage: Support multi user by using tzplatform library
Storeage apis will return the proper directory path as per user accoount.
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I35e249a9396f52de0c09191e88f3cac89f758f92
Jiyoung Yun [Thu, 21 May 2015 08:03:05 +0000 (17:03 +0900)]
libstorage: Add memory size check routine
If a memory size is zero, it does not try to divide by zero.
Change-Id: Ieeff37b0d527f0edba7d06f54f4f31081632f9b9
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 16 Apr 2015 03:50:30 +0000 (12:50 +0900)]
libstorage: Change the since_tizen string for wearable
Change-Id: I2400fef8924b6a6a5af6f5a3b5c82328d81bc37b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 6 Feb 2015 06:16:10 +0000 (15:16 +0900)]
libstorage: Add initial libstorage code
This library provides functions to get storage information.
The type of stroage information includes:
* root directory
* storage type(internal or external)
* storage status
* total and available space size
(without minimum memory to launch application)
The type of directory information includes:
* Images
* Sounds
* Videos
* Camera
* Downloads
* Music
* Documents
* Others
* System ringtones
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jeonghoon Jeon [Thu, 27 Nov 2014 04:47:13 +0000 (20:47 -0800)]
Initial empty repository