minje.ahn [Fri, 17 Feb 2023 01:42:23 +0000 (10:42 +0900)]
Rename check_db_upgrade to check_db
media.db no longer provides version information.
Change-Id: Ifc649f2885b23eb467c731e35aa35bb7ca5895df
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Wed, 12 Oct 2022 07:16:57 +0000 (16:16 +0900)]
Change folder_id to row id instead of uuid
Change to row id instead of uuid for manageability.
Change-Id: I5f12e4984381788fd9245bec0028a349a9a4a4ba
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
chengyj1985 [Mon, 17 Oct 2022 08:38:49 +0000 (16:38 +0800)]
Svace issue:Convert result of sizeof() to an int-type variable.
Change-Id: I6485409e0cf6e3c7786f5dc149f173439ec78e66
chengyj1985 [Fri, 16 Sep 2022 02:35:32 +0000 (10:35 +0800)]
Loss some precision while cast from 8 byte long to double
Change-Id: I61bf0745de53bfc3b9e4ac677b85e0179603b180
minje.ahn [Thu, 15 Sep 2022 01:56:40 +0000 (10:56 +0900)]
Remove MS_MEDIA_ERR_THUMB_TOO_BIG
Change-Id: I42665fef061d71987abbc36f21b272363412cc66
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Tue, 30 Aug 2022 02:06:46 +0000 (11:06 +0900)]
Remove media-server-thumb
The functions below have been deprecated since 5.0:
- media_info_create_thumbnail()
- media_info_cancel_thumbnail()
According to the internal code modification of the above APIs, unused code is removed.
Change-Id: I65fa58c6b1a1d723d44902a1f64fa5f25638129c
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
minje.ahn [Thu, 25 Aug 2022 08:46:44 +0000 (17:46 +0900)]
Remove async code related to thumbnail-util
Some APIs in the thumbnail-util package have been deprecated since 5.0.
So we remove the relevant code.
Related thumbnail-util API:
- thumbnail_util_extract()
- thumbnail_util_cancel()
Change-Id: I2ab63b56db5e11ee2796466f37fbd96534c1c433
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
samsung2013 [Wed, 10 Aug 2022 10:30:19 +0000 (18:30 +0800)]
add apk and doc file type
Change-Id: I991e38bf0ab016195418a42b32808645fedc36e6
Minje ahn [Mon, 25 Jul 2022 02:10:03 +0000 (02:10 +0000)]
Merge "fix svace issue and change code to following code rules" into tizen
samsung2013 [Fri, 15 Jul 2022 06:08:20 +0000 (14:08 +0800)]
fix svace issue and change code to following code rules
Change-Id: I2eb569414a44c5f56774b6b12683b68061e0da50
chengyj1985 [Thu, 14 Jul 2022 07:49:17 +0000 (15:49 +0800)]
Send notification of storage when media server launch.
Change-Id: I1aa10ce06e220d384ff3db48fb81cdec2a2f9cee
minje.ahn [Tue, 7 Jun 2022 09:19:12 +0000 (18:19 +0900)]
Fix build error
Change-Id: Iaaee756e9df16b4fdccd4d6c09dff92eec7134c0
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 2 May 2022 02:28:59 +0000 (11:28 +0900)]
Update directory scan
Used dirent instead GDir to reduce the frequency of stat() calls.
Change-Id: I835382ceaaa5440d0924da1dc2241cf949231bb7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
chengyj1985 [Tue, 26 Apr 2022 09:13:44 +0000 (17:13 +0800)]
improve performance of scanner
1.remove g_file_test, it use too much time. Use readdir64 to get name and type.
2.reduce frequency of sleep.
Change-Id: I2bdd3529e1f465a7b9c099403f32b42ac2fc1977
Minje Ahn [Thu, 24 Mar 2022 00:44:55 +0000 (09:44 +0900)]
Code cleanup
Change-Id: Ie013a7e07866b2b1b345d9f50756c0b6bd505119
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 18 Mar 2022 01:03:49 +0000 (10:03 +0900)]
Add configuration flag for ebook search type
Change-Id: I5df8fd1d6f9d405e181e378c067f6ad3235ed366
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 17 Mar 2022 02:16:54 +0000 (11:16 +0900)]
Add book search DB path to user path list
Change-Id: I624cf94f9d3b94300386368f87a2f5acc7218dce
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 18 Mar 2022 01:25:42 +0000 (10:25 +0900)]
Change smack of ebook DB space
Change-Id: I816a30c38c765d31ec49a822bb46ea200a5f963d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 11 Mar 2022 00:13:30 +0000 (09:13 +0900)]
Add DB space for ebook search
Added DB space(directory) for ebook search under the directory managed by media-server.
Change-Id: I849ca0ad0fad819fe92e206145d9a402d5b954b4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
chengyj1985 [Thu, 23 Dec 2021 02:15:48 +0000 (10:15 +0800)]
Add storage update event when usb mount/unmount
Change-Id: Ib6a88e41804840b4e5cf3d13f6e897c9465c5ec4
Jiyong Min [Mon, 13 Dec 2021 03:51:24 +0000 (12:51 +0900)]
replace g_memdup() to g_memdup2()
- g_memdup() was removed in glib2
Change-Id: I56ff254641388b35341bc70e16d677091af4829e
Minje Ahn [Mon, 31 May 2021 05:05:09 +0000 (14:05 +0900)]
Remove path replacement function
Removed the function that replaces path '/opt/usr/media' with path '/opt/usr/home/owner/media'.
Only some old mobile apps used this hard-coded value.
Change-Id: Iac41e61c53ca421c7f7846d8923bea7a58c9bee5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 5 Mar 2021 07:43:57 +0000 (16:43 +0900)]
Change media type for TV
Change-Id: I8b1934b771cae5fa69225397510b8a7613b52961
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
INSUN PYO [Wed, 3 Feb 2021 06:04:13 +0000 (15:04 +0900)]
Change systemd-devel package name
Change-Id: I595c21a8c34311ffc35a8c79fe64d4569d3c5dc1
Minje Ahn [Tue, 15 Sep 2020 07:53:25 +0000 (16:53 +0900)]
Fix missing unlock
Change-Id: I5d7ee8ddee77bf239f472caa72d53fa6a18466c4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Sun, 13 Sep 2020 23:00:14 +0000 (08:00 +0900)]
Fix crash when directory does not exist
Change-Id: I17ad858eed46cff393b31b4dc06e120ff81796a1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 10 Sep 2020 07:17:45 +0000 (16:17 +0900)]
Version Up (0.4.16 -> 0.4.17)
Change-Id: I865fb5ca4f95e123256c686ec52f112d7d2ab672
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 10 Sep 2020 04:31:47 +0000 (13:31 +0900)]
Fix external storage related code
Fixed an issue where media was visible even when external storage was unmounted.
Change-Id: I5f8fae3f956cb87986a8b921021d635ee0e78c77
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Wed, 9 Sep 2020 06:33:49 +0000 (15:33 +0900)]
Version Up (0.4.15 -> 0.4.16)
Change-Id: Iafb37226d3c738383fb8d16d4c4878635265e8c1
hj kim [Wed, 9 Sep 2020 06:36:34 +0000 (06:36 +0000)]
Merge "Rollback media-scan-extractor-v2" into tizen
Minje Ahn [Wed, 9 Sep 2020 03:21:56 +0000 (12:21 +0900)]
Rollback media-scan-extractor-v2
Rollback __msc_check_extract_stop_status() for performance issue.
Change-Id: I01ce0d35a9ad38424ba5cf7a4d4235ca2a9b71cf
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 9 Sep 2020 01:49:33 +0000 (10:49 +0900)]
Use g_ptr_array_new_with_free_func() instead
Change-Id: I990e08600759902b888bba9957ba3036c551fb30
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Tue, 8 Sep 2020 23:51:21 +0000 (08:51 +0900)]
Use g_canonicalize_filename() instead
Change-Id: Iff55acb574d1304170d0c77c1938572c617c1f37
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Tue, 8 Sep 2020 01:42:56 +0000 (10:42 +0900)]
Fix bug when batch insert
Modified to check all parent paths.
Change-Id: If388424aa06b379a6d049843baea504e0f59e405
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Thu, 3 Sep 2020 03:49:50 +0000 (12:49 +0900)]
Version Up (0.4.14 -> 0.4.15)
Change-Id: I56335b897aa2d6a411ca287c0b7925dcc59677a4
Minje Ahn [Mon, 7 Sep 2020 03:11:57 +0000 (12:11 +0900)]
Improve __poweroff_signal_cb()
Change-Id: I795edcd408f2371ffa80e35b5db75804bbbd4368
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Mon, 7 Sep 2020 03:02:23 +0000 (12:02 +0900)]
Remove unused parameter
Change-Id: Id923988a83490b7e8aa9e88f5e925838e74c0087
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 4 Sep 2020 06:02:42 +0000 (15:02 +0900)]
Change variable name
Change-Id: I1a16c2e2f10f7bcc9980f77c51433d883f786e4d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 4 Sep 2020 02:18:20 +0000 (11:18 +0900)]
Check the number of children of GVariant
If there is no external storage mounted, 'GetDeviceList' will return an empty array.
So, added exception handling for this case.
Change-Id: Ia34e8d5ce97629ab35cceb31fd064ff8b955b313
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 3 Sep 2020 08:06:49 +0000 (17:06 +0900)]
Improve batch insert thread
Change-Id: Ib191aa902afc19a2e1cc22d0cd3801894bfd6c45
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Thu, 3 Sep 2020 02:05:37 +0000 (11:05 +0900)]
Change return type int to void
Change-Id: I714b38fb8ec8ba741b9ecfdbe6bd7326582a87ab
Minje Ahn [Thu, 3 Sep 2020 01:21:23 +0000 (10:21 +0900)]
Improve GAsyncQueue related functions
Change-Id: Ic702b52f6860c318021d132735e30fb780b1ff8a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Tue, 1 Sep 2020 07:02:12 +0000 (16:02 +0900)]
Version Up (0.4.13 -> 0.4.14)
Change-Id: I9553906e2aee1efdaed5cc5a97d7611a882325a8
hj kim [Wed, 2 Sep 2020 07:30:03 +0000 (16:30 +0900)]
Bug fix regarding MS_MSG_DIRECTORY_SCANNING_CANCEL
Regarding the MS_MSG_DIRECTORY_SCANNING_CANCEL request from the client, the scanner doesn't need to send a response for this task,
because client gets the result for this request by checking from its own request list.
Change-Id: If46eb7f0825ce9f19e8ba09c7588ec39f5eb94f7
Minje Ahn [Wed, 2 Sep 2020 06:46:00 +0000 (15:46 +0900)]
Fix multiple cancellation bug
Modified to cancel only one item.
Change-Id: I202d5c4093b6af420a4120c7d919dd16b384b1d7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Tue, 1 Sep 2020 06:57:21 +0000 (15:57 +0900)]
Change parameter type (int -> ms_msg_type_e)
Change-Id: I810279e05c6e1afd1f36c721497360a0f3ae64ce
Minje Ahn [Mon, 31 Aug 2020 00:45:48 +0000 (09:45 +0900)]
Use GQueue instead of GPtrArray in scanner v1
Change-Id: I2c5fdf15d6e88fa5995ca98e6ea8d4db5df1dd0e
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 28 Aug 2020 00:57:14 +0000 (09:57 +0900)]
Merge valid_item functions
Change-Id: I82b3b23bc6dad7fbbe03bba7f1fda3ca0fac2e24
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Mon, 24 Aug 2020 04:39:45 +0000 (13:39 +0900)]
Version Up (0.4.12 -> 0.4.13)
Change-Id: I56749c5833f35433ab7dad3f9944b3de0d54e978
Minje Ahn [Thu, 20 Aug 2020 22:38:17 +0000 (07:38 +0900)]
Use ms_register_start/end() directly
Use ms_register_start/end() directly instead of ms_batch_commit_disable/enable().
ms_batch_commit_enable/disable() became unnecessary due to removal of ms_validation_start/end() from scanners v1 and v2.
Change-Id: I5d59b9d409c829f9ede29757367c5ba25d8f2d0f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 20 Aug 2020 09:08:44 +0000 (18:08 +0900)]
Remove unnecessary comments
Change-Id: If4a77d81f27fb7835ee8a39fead52e4da91d7f84
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 20 Aug 2020 00:22:10 +0000 (09:22 +0900)]
Remove unnecessary logs
Change-Id: I0acb3e552b2bb0e587025633b6b3c95fdbcb2956
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 19 Aug 2020 01:34:08 +0000 (10:34 +0900)]
Fix typo
Change-Id: Ia091b9dac4f5ee180ebbc5b339dce1eabac0e0cc
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 19 Aug 2020 00:39:05 +0000 (09:39 +0900)]
Device info related functions cleanup
Change-Id: I9b72d3ea1231b1fde09ce05c1badb69df899602a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 14 Aug 2020 02:22:06 +0000 (11:22 +0900)]
Improve ms_check_mounted_storage()
Change-Id: I83612e75ed089bcf00e6ca2c185c731f7e5973fe
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Fri, 14 Aug 2020 02:20:53 +0000 (11:20 +0900)]
Improve ms_storage_mount_status()
Change-Id: Icaada27e87364d3a9f61f64ee831643193fb4b92
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Thu, 13 Aug 2020 23:43:34 +0000 (08:43 +0900)]
Version Up (0.4.11 -> 0.4.12)
Change-Id: I82d2b80e8e917025c23d1051e21ba357691d771c
hj kim [Fri, 7 Aug 2020 08:22:47 +0000 (17:22 +0900)]
Apply definition for product mode code
Change-Id: Ia8a3cbebb5a50f16fc752e0831b853552f7ef8dd
hj kim [Wed, 15 Jul 2020 09:47:10 +0000 (18:47 +0900)]
Minor changes
Change-Id: If847e5bbf9fe4ab19072cb0b439f90b685ddf309
Minje Ahn [Thu, 13 Aug 2020 06:41:47 +0000 (15:41 +0900)]
Use g_snprintf() instead of ms_strappend()
Changed ms_strappend() to g_snprintf().
And removed ms_strappend().
Change-Id: If9dac5bed4a670abafaedcfa259feca871e30ffd
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 13 Aug 2020 02:46:47 +0000 (11:46 +0900)]
Extractor-v2 code cleanup
Change-Id: I9fa036e4b90abfebf951c54e73176aa5ac9af1cb
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 12 Aug 2020 23:44:12 +0000 (08:44 +0900)]
msc_directory_scan_thread() cleanup
Change-Id: I29c970bf84afd078e6ed0229bc8ee4c10eb16c62
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 12 Aug 2020 23:22:53 +0000 (08:22 +0900)]
Remove 'err' in msc_directory_scan_thread()
Change-Id: Iedc9d6718b492a34a91bfa1a494029e0007ff1df
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 12 Aug 2020 23:07:06 +0000 (08:07 +0900)]
Change to use the value of scan_data directly
Change-Id: I2108eedff4d13dbe2645a2c4828a39bf9b54395d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 12 Aug 2020 23:03:24 +0000 (08:03 +0900)]
Use g_file_test instead of fopen
Change-Id: I18e9f8fdd7c267fdc5fcb2e436ab5d37c9851feb
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Wed, 12 Aug 2020 22:53:34 +0000 (07:53 +0900)]
Remove unused variable
Change-Id: I9e1c3ee74c7591cab666410300c98ffa5d92f568
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Thu, 6 Aug 2020 05:50:45 +0000 (14:50 +0900)]
Improve code regarding GCond for Scanning
Change-Id: I35980814945d4abc9237dbc948503c523fd07192
hj kim [Mon, 3 Aug 2020 08:14:53 +0000 (17:14 +0900)]
Improve __msc_check_stop_status()
Change-Id: I321f838d0ba624d47848c4df27d66db97a4851f3
hj kim [Fri, 7 Aug 2020 06:19:56 +0000 (15:19 +0900)]
Version Up (0.4.10 -> 0.4.11)
Change-Id: I2795fa11b29e2aa03cf8fdf4eb5b46dc182ad13c
Minje Ahn [Thu, 6 Aug 2020 06:44:27 +0000 (15:44 +0900)]
Use gdir instead of dirent
Change-Id: Ifeabe694124a802b9e730d150c47a19c6942673d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Fri, 31 Jul 2020 02:18:38 +0000 (11:18 +0900)]
Improve msc_directory_scan_thread()
just rearrange codes to manage error cases first
Change-Id: Iadb63c23a2668cac0596aa8da99e55da750720e0
Minje Ahn [Thu, 6 Aug 2020 03:55:34 +0000 (12:55 +0900)]
Use GPtrArray in ms_get_null_scan_folder_list()
Change-Id: Idb96498417e447a8703aebbd51969638d23ff4b2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 6 Aug 2020 03:40:38 +0000 (12:40 +0900)]
Use GPtrArray instead of GArray
Change-Id: I65b727380726ff3e86318a6682272628b840a55f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Minje Ahn [Thu, 6 Aug 2020 01:59:09 +0000 (10:59 +0900)]
Add define for trash folder checking
Change-Id: Ibce480417a314bbc774447e64f3f7007b88ffd79
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Mon, 3 Aug 2020 05:13:11 +0000 (14:13 +0900)]
Version Up (0.4.9 -> 0.4.10)
Change-Id: I49b65949bd063f22ca3f81c1c0cd4be4436d1093
hj kim [Mon, 3 Aug 2020 02:47:37 +0000 (11:47 +0900)]
Remove unused codes regarding storage_type
Change-Id: I322ad45ba692a836bcfb00f657d05d5e245b346e
hj kim [Fri, 31 Jul 2020 02:32:06 +0000 (11:32 +0900)]
Improve error check code
__msc_check_remain_space(uid) function only returns
MS_MEDIA_ERR_NOT_ENOUGH_SPACE, MS_MEDIA_ERR_DB_FULL_FAIL, MS_MEDIA_ERR_NONE
Change-Id: Idb72fb99aedcbab21b0aec02422b802660d0b8c4
hj kim [Mon, 3 Aug 2020 05:59:00 +0000 (05:59 +0000)]
Merge "Merge get_extract_list() and update_one_extract_item()" into tizen
chengyj1985 [Fri, 31 Jul 2020 07:48:52 +0000 (15:48 +0800)]
check the return value of function 'dlsym'
Change-Id: I79eeb96115e4b74fccec0f0073ae22bd03833c64
hj kim [Fri, 31 Jul 2020 01:01:49 +0000 (10:01 +0900)]
Fix to stop scanning when power off
Change-Id: I6232055f68d81ddeadcd8474d433d9687034d8ab
hj kim [Thu, 30 Jul 2020 08:13:35 +0000 (17:13 +0900)]
Improve scanner main function
And remove unnecessary parameter of __msc_add_event_receiver()
Change-Id: Ic2c2c1ec4e6936e6f19bf51bec04484e28ac0acb
hj kim [Wed, 29 Jul 2020 06:33:05 +0000 (15:33 +0900)]
Remove simple functions
Change-Id: I2bad4293c809298a08ce88076939a06d93e0c13c
chengyj1985 [Thu, 30 Jul 2020 08:15:34 +0000 (16:15 +0800)]
remove unused vconf key
Change-Id: I5f31ce65eb0f3610b578c4d3de921f75d59b039c
Minje Ahn [Wed, 29 Jul 2020 23:08:36 +0000 (08:08 +0900)]
Merge get_extract_list() and update_one_extract_item()
This patch only affects media-scanner-v2.
Change-Id: Ib8e8a1a70e870d6faea89cddbe870c1767d0bf8b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
hj kim [Wed, 29 Jul 2020 04:12:35 +0000 (13:12 +0900)]
Version Up (0.4.8 -> 0.4.9)
Change-Id: Idc2037ef0759c6b45c3da29da6fdfc593c64d8b7
hj kim [Wed, 29 Jul 2020 03:27:59 +0000 (12:27 +0900)]
Add static keyword
Change-Id: I94107c3c694f4a699d96a9d8890437b0caa99a20
hj kim [Wed, 29 Jul 2020 02:48:44 +0000 (11:48 +0900)]
Improve msc_send_ready() and msc_send_result() functions
Change-Id: Ifcfd19e06eeaf62bc1a542b82faf0540cd2e4d86
hj kim [Tue, 28 Jul 2020 09:04:11 +0000 (18:04 +0900)]
Fix bug for sending incorrect response for "cancel folder scanning"
The media-scanner doesn't need to send response for "scanning cancel" request.
clients manage their own list of scanning.
for the cancellation request, if the request is on the request list,
a client regards it as success, of false.
Change-Id: I8968707b4326a5ee2e7f69edaa47c0d17cd61e85
hj kim [Tue, 28 Jul 2020 07:29:59 +0000 (16:29 +0900)]
Add new functions to handle power off event
And remove unnecessary "extern" and add static keyoword
Change-Id: I987810a424365bbc7d238610e123e929c658787b
hj kim [Tue, 28 Jul 2020 02:22:33 +0000 (11:22 +0900)]
Move scanning related code to scan-v2.c
and remove unnecessary extern
Change-Id: I2eb8ff459d88c52bd598c0946fab44b1aa8bfeb1
hj kim [Tue, 28 Jul 2020 03:10:42 +0000 (12:10 +0900)]
Add new function msc_remove_folder_extract_request()
code clean up for removing folder extract request.
Change-Id: Id1b5abca7b0916f7a4bf9a77f60b9c21c06503b3
hj kim [Tue, 28 Jul 2020 06:32:27 +0000 (15:32 +0900)]
remove duplicated codes
init/deinit of scan_req_mutex2 is called in msc_init_scan_thread() and msc_deinit_scan_thread()
Change-Id: I1f9d4356be8a4427ba25413d871212087356480d
hj kim [Tue, 28 Jul 2020 01:49:15 +0000 (10:49 +0900)]
Remove unnecessary parameter
Change-Id: I6ea189c15f66bb6535728bf3cc13af2f02f6736d
hj kim [Mon, 27 Jul 2020 03:21:15 +0000 (12:21 +0900)]
Use msc_push_scan_request() API instead of accessing queue directly
And add parameter checking code.
Change-Id: Idf9bcf412271123b00d8518483d4a4dd5db28312
hj kim [Fri, 24 Jul 2020 03:35:22 +0000 (12:35 +0900)]
Sync register_thread code between scanner and scanner-v2
both scanners do same thing in register_thread.
scanner-v2 codes were old one. so updated it.
Change-Id: Ia8dec97011cfbf59d9ce6506e7eae5fd44516f75
hj kim [Fri, 24 Jul 2020 04:50:25 +0000 (13:50 +0900)]
Improve msc_register_thread()
Change-Id: If9605d58e4a687728d4613f013da01b474a131bb
hj kim [Fri, 24 Jul 2020 02:41:34 +0000 (11:41 +0900)]
Sync batch insert code between scanner and scanner-v2
- add some debug log
- Use GPtrArray instead of GArray
- bug fix when batch_insert is stopped due to power_off
Change-Id: I7b7837d50b701aac61c17c93e9c1c1b6ce2faca7
hj kim [Fri, 24 Jul 2020 02:06:31 +0000 (11:06 +0900)]
Remove unnecessary code for TV Product mode
_USE_TVPD_MODE is always enabled for scanner-v2
Change-Id: I83ead7c703e2e83f59447f46f166bec6c8626d8e
hj kim [Thu, 23 Jul 2020 07:36:17 +0000 (16:36 +0900)]
Rename function and apply it to scanner-v2
Change __msc_is_stop_needed() to __msc_is_power_off() because this function check only power status.
And msc_get_power_status() has been removed. _msc_is_power_off() can cover it.
Change-Id: Ib51109da141a4596ac67485d3bcdbaf5998dd619
hj kim [Fri, 24 Jul 2020 00:08:13 +0000 (09:08 +0900)]
Use functions instead of setting value directly. And apply tizen coding rule
Change-Id: If60290b803bbb74961127b4510833f386cd0def2