hj kim [Wed, 22 May 2019 02:21:57 +0000 (11:21 +0900)]
just update redundant code
Change-Id: I411216c00b7f66996d74f63d6b5b46cfcf6a4204
hj kim [Tue, 21 May 2019 05:52:23 +0000 (14:52 +0900)]
Modify code not to send sqlite query directly to the daemon regarding the playlist
Change-Id: I025ce9f1eb3a0736b8c95829731b0bf991c0c046
jiyong.min [Tue, 21 May 2019 01:08:22 +0000 (10:08 +0900)]
Rearrange the code to unify duplicated code
- Unify duplicated code, remove dead application & remove from db
- Rename and relocate function related with database
Change-Id: Ib98dd6a5e7cbf58d201d8bed14acb302137e331c
jiyong.min [Tue, 21 May 2019 00:54:26 +0000 (09:54 +0900)]
Reduce to execute connect & disconnect db repeatly
Change-Id: Ic87ce76d99184e991349033a74fcc560d22f00c1
jiyong.min [Mon, 20 May 2019 23:55:52 +0000 (08:55 +0900)]
Unify duplicated code for removing apps information from db
Change-Id: I9fcb437dcf80cb77e6204699c9cb5b162064fbd8
hj kim [Thu, 16 May 2019 08:04:05 +0000 (17:04 +0900)]
Modify code not to send sqlite query directly regarding the metadata
Change-Id: I1620a1a80b8b084cadbcc1a6bc16f6ffc4de0d16
hj kim [Wed, 15 May 2019 07:46:29 +0000 (16:46 +0900)]
Fix to update latest_server table only if the new playback server is not same as the latest_server stored
Change-Id: I1c64ff2dc96169f3d1b92978ba66843a1096b28a
hj kim [Wed, 15 May 2019 06:50:40 +0000 (15:50 +0900)]
Modify code not to send sqlite query directly regarding the playback info
Change-Id: I7af2494a073336a44f3cd44ca05098e864e9ad57
hj kim [Wed, 15 May 2019 02:30:17 +0000 (11:30 +0900)]
Update debug msg to distinguish server mode
Change-Id: I1f23c679020beb828ccb946433247bd6cc038cba
hj kim [Tue, 14 May 2019 07:02:41 +0000 (16:02 +0900)]
Modify code not to send sqlite query directly
Change-Id: Ic41ed178127b9ab0d63a4d3154ad399f49b2e04a
hj kim [Mon, 13 May 2019 08:32:30 +0000 (17:32 +0900)]
Change the code to be simple When add new empty playlist
Change-Id: I8f5d40d077587e92a5489f76bf0c0e8977c718b9
hj kim [Thu, 9 May 2019 09:48:42 +0000 (18:48 +0900)]
Update pkg version
Change-Id: I1e911a74d812f0f918c0654f429dae9491dcb443
hj kim [Thu, 9 May 2019 07:59:11 +0000 (16:59 +0900)]
Save latest server status by using vconf
Some clients want to get latest server information before mc_create_client().
Because mc_create_client() takes some time.
To reduce the delay, we support vconf.
Change-Id: I372191d0ec01c91041f05a55af238611eab14fca
jiyong.min [Wed, 8 May 2019 08:03:40 +0000 (17:03 +0900)]
[Performance Enhancement] Reduce the socket IPC for create/destroy APIs
- Reduce the socket IPC, it will be sent just 1 time for create/destroy APIs.
Change-Id: I10d2f7d2a0601e32588299bdf99c84508d570cd3
jiyong.min [Wed, 8 May 2019 00:33:23 +0000 (09:33 +0900)]
Rearrange the code.
- After global variables are destroyed, initial values are added
- Remove invalid parameter for '__mc_main_destroy_timer()'
- Remove unuseful variable 'res'
Change-Id: I4e154bf13d9786c9d75d9c5f43b0c800eec1f49b
jiyong.min [Tue, 7 May 2019 10:14:24 +0000 (19:14 +0900)]
Add define for mc_ipc_service_connect() API to enable on_demand
- Fix TC fail
Change-Id: I811f8dea62e22c21eacae9d470a5fc6181425bde
hj kim [Tue, 7 May 2019 05:00:47 +0000 (05:00 +0000)]
Merge "Disable on-demand service in product TV" into tizen
Jiyong Min [Tue, 7 May 2019 05:00:27 +0000 (05:00 +0000)]
Merge "Remove unused mc_server_get_playlist()" into tizen
jiyong.min [Fri, 3 May 2019 00:59:52 +0000 (09:59 +0900)]
Disable on-demand service in product TV
[Cause]
It spent 100~200ms to execute mediacontroller daemon by systemd.
When application starts, the handle creation spent 200~300ms.
[Solution]
The mediacontroller daemon will starts on boot in product TV.
After this patch, the handle creation spent 30~50ms.
Change-Id: Ibc85df6f7dde8e31e3ceb197d5da5051dd87bf99
jiyong.min [Tue, 30 Apr 2019 07:40:13 +0000 (16:40 +0900)]
Add define to enable/disalbe on-demand service
Change-Id: I85debe67908c010275ce03412271cea463d4ff72
hj kim [Tue, 7 May 2019 01:58:44 +0000 (10:58 +0900)]
Remove unused mc_server_get_playlist()
Change-Id: I50adb982d921dc93e0f8423ec2f4fc879c6616b9
hj kim [Tue, 30 Apr 2019 08:17:12 +0000 (17:17 +0900)]
Bug fix of set icon. icon can be NULL
Change-Id: I94e627ebd04767b62e8f57973ac91dbb3afc1319
hj kim [Tue, 30 Apr 2019 07:43:10 +0000 (16:43 +0900)]
Add debug msg
Change-Id: I44c9aef534e8bd24cc665e99e439300fdea9e31c
hj kim [Fri, 5 Apr 2019 07:23:10 +0000 (16:23 +0900)]
Bug fix of removing all data for command verification
Change-Id: Iafaed5f04ea2dc879a65fc7448966de55d83ee31
hj kim [Fri, 5 Apr 2019 07:00:41 +0000 (16:00 +0900)]
Update test app name
Change-Id: Ic5e26fcce016051b5c3feee63fac9272bb1a3a69
hj kim [Tue, 2 Apr 2019 06:38:52 +0000 (15:38 +0900)]
Fix not to insert duplicated playlist to DB.
Duplicated playlist(same server name and same playlist name) can't be inserted to DB.
Change-Id: I5db839b695b1fbd83473971b003534aec1192c73
hj kim [Thu, 28 Mar 2019 09:51:03 +0000 (18:51 +0900)]
Bug fix of updating DB to (null) when using g_strdup_printf.
if the value is NULL, g_strdup_print make it to (null).
And this value added to DB and it looks like a real string value.
Change-Id: I03b8c9f1c6a52f683ee60ade6c1dfea39e6a80a3
hj kim [Thu, 21 Mar 2019 02:06:51 +0000 (11:06 +0900)]
[ACR-1379]Add new API to get number of condition. mc_seach_get_condition_count()
Change-Id: I477f6b2fed6c7f01468415d409051ec59008a939
jiyong.min [Fri, 22 Mar 2019 01:21:35 +0000 (10:21 +0900)]
Rearrange the code for error case
Change-Id: Ib88f5347b96d133f9b5bcbe4eddc8848edd26f9c
hj kim [Wed, 20 Mar 2019 23:23:23 +0000 (08:23 +0900)]
Fix typo
Change-Id: Ifb617166812c4965fc4f350be2e50095502115f1
hj kim [Wed, 6 Mar 2019 09:32:57 +0000 (18:32 +0900)]
[ACR-1363] Add and Remove some playlist related APIs
1. Deprecated
int mc_server_foreach_playlist(mc_server_h server, mc_playlist_cb callback, void *user_data)
int mc_client_foreach_server_playlist(mc_client_h client, const char *server_name, mc_playlist_cb callback, void *user_data)
2. Added
int mc_playlist_get_item_count(mc_playlist_h playlist, int *item_count);
int mc_playlist_get_playlist_count(const char *app_id, int *playlist_count);
int mc_playlist_foreach_playlist(const char *app_id, mc_playlist_cb callback, void *user_data);
int mc_playlist_get_playlist(const char *app_id, const char *playlist_name, mc_playlist_h *playlist);
Change-Id: I618b4f4141541bef05b452e408d90c59299b4bbf
hj kim [Fri, 8 Mar 2019 06:14:00 +0000 (15:14 +0900)]
Update wrong doxygen description
Change-Id: I6b1c2922e56dd5401a59fa6ad11976b230017e4e
hj kim [Thu, 7 Mar 2019 00:46:50 +0000 (09:46 +0900)]
Add and Modify APIs for checking activated server/client
Change-Id: I0db4b4ada69d78dc4ca30173d79def5a02fae8cb
hj kim [Wed, 6 Mar 2019 10:35:41 +0000 (19:35 +0900)]
Code refactoring. Add new internal API __mc_db_get_count() to reduce duplicated codes
Change-Id: I1fb4239ff3959bd05d15cf98f244dbae32e02751
hj kim [Wed, 27 Feb 2019 02:29:40 +0000 (11:29 +0900)]
Just update pkg version
Change-Id: I1653fde047b455358dfde6c6ff389f6518dc0166
hj kim [Tue, 12 Feb 2019 01:22:22 +0000 (10:22 +0900)]
[ACR-1355]Add new metadata. season, episode, resolution
Change-Id: Ic846961338f1c7bf7bd1948a23f9a49d5db64fd3
hj kim [Wed, 20 Feb 2019 07:09:28 +0000 (07:09 +0000)]
Merge "Rearrange safe functions to remove duplicated code" into tizen
jiyong.min [Tue, 19 Feb 2019 00:23:29 +0000 (09:23 +0900)]
Rearrange safe functions to remove duplicated code
- The shared library will be seperated. So new files are renamed mc_xxx.
Change-Id: Ia091efcd0f9403948777bc63f808b7f2803eb76a
hj kim [Tue, 19 Feb 2019 09:49:43 +0000 (18:49 +0900)]
Add APIs to get count of playlist and item
Change-Id: I2f8943baaeb1f419c6327ef354b352d9459b9569
hj kim [Tue, 19 Feb 2019 10:48:53 +0000 (19:48 +0900)]
change the return value regarding the checking of server/client
Change-Id: I536b986fb5fada173d2dff680ccefc0d08acb493
jiyong.min [Tue, 19 Feb 2019 05:20:34 +0000 (14:20 +0900)]
Replace removing all listener to use g_list_free_full()
Change-Id: I9b1581884fd46e67aee580e74702bf6ebc09c4e7
hj kim [Mon, 18 Feb 2019 08:08:00 +0000 (17:08 +0900)]
make api for getting metadata and remove duplicated code
Change-Id: I89a9819f1a3418513fcaeee0529318a54eb133e8
jiyong.min [Fri, 15 Feb 2019 06:14:04 +0000 (15:14 +0900)]
Rearrange database connect/disconnect functions
- Remove duplicated connect/disconnect functions
- Modify the way to get db_path from using group to using tzplatform_context
Change-Id: I637250a3b660bd39a193cb59e5783f8400e54e93
hj kim [Fri, 15 Feb 2019 04:12:02 +0000 (13:12 +0900)]
make api for setting metadata and remove duplicated code
Change-Id: I7a9826159f9b24b020d80e504d99a0d5c77eb519
hj kim [Thu, 14 Feb 2019 09:08:08 +0000 (18:08 +0900)]
Rearrange the code. Change mc_playlist_item_s to use media_controller_metadata_s instead of having each meta parameter
Change-Id: Ibb791aa1075ed2c0c3d16596ecb900ec6bdfc821
hj kim [Thu, 14 Feb 2019 03:00:51 +0000 (12:00 +0900)]
Just code clean up
Change-Id: I596229c75af87d4991989d0f76bceca820f314da
hj kim [Wed, 13 Feb 2019 07:43:43 +0000 (16:43 +0900)]
Code clean up regarding getting latest server
Change-Id: I4f5bfd5d39a655d187eb0dc32eddf2ab39bdb588
jiyong.min [Tue, 12 Feb 2019 00:57:40 +0000 (09:57 +0900)]
Add to remove and update information for dead application on database
Change-Id: I0dfe7eef25ae2552d87dd3dd5a1aeea926071065
jiyong.min [Wed, 30 Jan 2019 02:05:59 +0000 (11:05 +0900)]
Add to notify the updated server_name and server_states to clients
Change-Id: I4200d24402c3797ddd252e5d7175208d55ac76ab
jiyong.min [Fri, 18 Jan 2019 07:30:36 +0000 (16:30 +0900)]
Add signal handler for app_dead_signal
- When app_dead_signal is raised, remove pid from connected_list
and decrease connection count
Change-Id: I6deaf323619ef12e1ba9616debdb6ae65fce37a8
hj kim [Thu, 24 Jan 2019 08:11:35 +0000 (17:11 +0900)]
Change normal log to secure log
Change-Id: I7a9aebcd8149fbf6d15056232c017cabd2b4b79e
Jiyong Min [Wed, 23 Jan 2019 08:40:43 +0000 (08:40 +0000)]
Revert "Add internal API for dotnet framework"
This reverts commit
d239370d839e3aabda75b9342db82fab3709ee44.
Change-Id: Ib7203cdcb50fed16abcb79920084d685515ae207
hj kim [Thu, 17 Jan 2019 08:43:08 +0000 (17:43 +0900)]
controller daemon will save not only pid but also appid when server and client create
Change-Id: I0dc3f2645e45e83b285fc8dcd2d326e71f22642a
hj kim [Fri, 11 Jan 2019 07:29:55 +0000 (16:29 +0900)]
Change the order of the workflow when update server playback info
when playback state is "PLAYING", latest server should be updated.
but previous coude send dbus msg of updating playback info to the client first and then update latest server info.
However, some client apps could expect to update the latest server info when they receive a dbus msg of "PLAYING".
but when clients check it right after getting the dbus msg, db didn't updated yet.
So change order to do update latest server info first before send dbus msg to the client.
Change-Id: I2d659287e1f8e5d758e13ea69f481701a8f287e3
hj kim [Fri, 11 Jan 2019 05:53:17 +0000 (14:53 +0900)]
Just add some debug msg to check activated server/client list
Change-Id: Id96b94abcfabcc0e8922ad730986a60881517b30
hj kim [Thu, 10 Jan 2019 07:05:19 +0000 (16:05 +0900)]
just add some debug msg to check abnormal status
Change-Id: I859cb1c239720bf9c88100d29647bdc8aa05b6d2
hj kim [Thu, 10 Jan 2019 07:00:57 +0000 (16:00 +0900)]
just add some debug msg to check abnormal status
Change-Id: Ib68283e122117e87aa7bbc56035553ed7ab4331a
jiyong.min [Fri, 4 Jan 2019 05:48:26 +0000 (14:48 +0900)]
Add to init variable and check memory allocation failure
Change-Id: I9db4b2da2b706ccf01c6c51492831717b45ff7ac
hj kim [Wed, 26 Dec 2018 05:32:15 +0000 (14:32 +0900)]
Fix Coverity issues
Change-Id: Ie63d53ed8665b43457a8a6201bdf909c9daef264
jiyong.min [Wed, 19 Dec 2018 04:19:14 +0000 (13:19 +0900)]
Just change the color of log(enter & leave) to be same
Change-Id: I54d2e46edfc89762bb84fb629b2b23359b6277fb
jiyong.min [Tue, 18 Dec 2018 01:54:39 +0000 (10:54 +0900)]
Change to check the database when the database exists
Change-Id: Ifa274df8caa20a3afecded0bf5eb220143e0df47
jiyong.min [Fri, 14 Dec 2018 05:42:33 +0000 (14:42 +0900)]
Add to check abnormal database and to restore the database
Change-Id: I8b0c2093edc9ccfed43b918113ae1116dac52bcf
jiyong.min [Tue, 11 Dec 2018 05:10:33 +0000 (14:10 +0900)]
Add internal API for dotnet framework
- mc_client_send_playback_state_command
- mc_server_set_playback_state_command_received_cb
- mc_server_unset_playback_state_command_received_cb
Change-Id: I508f72027c0a754980af29e33c19afb833cb159b
jiyong.min [Fri, 7 Dec 2018 03:26:47 +0000 (12:26 +0900)]
Fix format error in logs
Change-Id: I95289d35f6ee431572b05f37cf59e1ca72b1589b
hj kim [Mon, 3 Dec 2018 05:31:30 +0000 (14:31 +0900)]
Add bundle in the pc_dependens
Change-Id: I968283bfca93ca4d921d3b1e50721dc9227dedd1
jiyong.min [Mon, 3 Dec 2018 02:53:14 +0000 (11:53 +0900)]
Remove db-util package dependency
Change-Id: I07ebd41dfb997680b27515f2725a36858a01e06d
jiyong.min [Fri, 30 Nov 2018 05:37:15 +0000 (14:37 +0900)]
Just fix the description
Change-Id: I1b6823a8fafc73c3bd98f8e4758b49dcf0a8ee14
jiyong.min [Fri, 30 Nov 2018 02:01:25 +0000 (11:01 +0900)]
Remove useless parameter and add to check signal unsubscribe
Change-Id: Ia9b18dd12cef978eb3dc0f6dee4756e874eba6be
jiyong.min [Thu, 29 Nov 2018 05:29:45 +0000 (14:29 +0900)]
Add to check the error of signal subscribe
Change-Id: I40d12aec304151927abe9814db677ab3ae537b88
hj kim [Fri, 23 Nov 2018 06:13:38 +0000 (15:13 +0900)]
Update test code
Change-Id: I1d7323c62028760b233fa2fc81fff8fdc361de0e
hj kim [Wed, 7 Nov 2018 08:17:23 +0000 (17:17 +0900)]
[ACR-1314]Remove deprecated APIs from tizen 4.0
Change-Id: I2da87c33f6b186cc105d7020b083fd78e3c5d3f3
jiyong.min [Thu, 15 Nov 2018 05:20:22 +0000 (14:20 +0900)]
Reduce the delay to bind server socket
Change-Id: I74e7a281fd7637c472a4c2a6b02f432dc99c1842
hj kim [Wed, 31 Oct 2018 06:06:58 +0000 (15:06 +0900)]
Fix wrong PC_REQUIRED
Change-Id: I7e73ae9c7ea3baa0b256d0e9c57edcf8c0cae94c
hj kim [Thu, 27 Sep 2018 06:49:15 +0000 (15:49 +0900)]
Fix dlog format string error
Change-Id: Ibebf0dc9e215a597f66e519aa5be1e6d63ea9b88
hj kim [Thu, 27 Sep 2018 05:47:50 +0000 (14:47 +0900)]
Remove unused db handle
Change-Id: Ia739bcd2b8ecc25c2d0309e341782024a4fff1db
hj kim [Thu, 27 Sep 2018 05:13:38 +0000 (14:13 +0900)]
Reinforce document for the ability support
Change-Id: I89f1e98c7945912f945895d1a43d522700eccb90
hj kim [Fri, 21 Sep 2018 04:59:14 +0000 (13:59 +0900)]
Code rearrangement
Change-Id: I0eb336910104a05be77e20b5be04b1e34350b112
jiyong.min [Wed, 19 Sep 2018 05:38:46 +0000 (14:38 +0900)]
Add 'immediate_update' to update playback ability at once
Change-Id: Ib35d432d964720d09458001e1a37cab42e5e2fd3
jiyong.min [Mon, 17 Sep 2018 22:46:48 +0000 (07:46 +0900)]
Add to destory Glist and search item by g_list_free_full
Change-Id: I7ac83c7b228b3273d81743227a94c2475d754cf8
hj kim [Mon, 17 Sep 2018 06:23:07 +0000 (15:23 +0900)]
Coverity issue fix
Change-Id: I12fdb2170bb01586ccf7974fe20d6e2cfcd51ab0
SeokHoon Lee [Mon, 17 Sep 2018 04:21:26 +0000 (13:21 +0900)]
Add gcov environment
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I0545788a4a00216ca1c4103497f2b58fec6f55f9
hj kim [Mon, 17 Sep 2018 02:20:31 +0000 (11:20 +0900)]
Update doxygen and Fix memory leak
Change-Id: I888d197f777908201fa98b0c0f6e3702e12bca21
hj kim [Fri, 14 Sep 2018 06:30:48 +0000 (15:30 +0900)]
Do not remove "since_tizen" for the deprecated APIs
Change-Id: Icd001b4276005052fca220cc922d0cbc6556e5d5
hj kim [Tue, 4 Sep 2018 05:50:40 +0000 (14:50 +0900)]
[ACR-1298] Add new APIs for Setting age rating and Searching.
Change-Id: I9abb5c53668d0d05b7055d2cc476b1ced28642c4
hj kim [Thu, 13 Sep 2018 07:33:17 +0000 (16:33 +0900)]
Add internal APIs to support C#
Change-Id: I1e26023d66877d5d766c1234c4f6893cfe7f93ca
hj kim [Mon, 10 Sep 2018 09:24:25 +0000 (18:24 +0900)]
[ACR-1300][Add/Deprecated] Change Playlist info related APIs.
Change-Id: I54c2f13a2f31c38d697b588b461a3487f6789123
hj kim [Mon, 3 Sep 2018 07:00:31 +0000 (16:00 +0900)]
Code refactoring. Unify server callback register/unregister APIs
Change-Id: Id3e11bdf1faf7bc4ef636cce0111f8efe72b4e15
hj kim [Fri, 31 Aug 2018 02:45:04 +0000 (11:45 +0900)]
Just rename enum
Change-Id: Ieea3bb97cd6f2b7b66eb27fff7daaf886b54670a
jiyong.min [Thu, 16 Aug 2018 00:47:16 +0000 (09:47 +0900)]
[ACR-1293] Add the playback content type, the capability and the icon uri for media controller server
Change-Id: Ic14a66c70b0ba574182b6c205137e138e1ea60b6
hj kim [Wed, 29 Aug 2018 06:06:01 +0000 (15:06 +0900)]
Code refactoring. Unify subscribe/unsubscribe code
Change-Id: I7828ffb0bdc54007a73e68c90ce361c8d4a38b38
hj kim [Tue, 28 Aug 2018 06:40:05 +0000 (15:40 +0900)]
Code refactoring. Unify client callback register/unregister APIs
Change-Id: I29dacfda1bf6bef0f7b400b0b535d8426ddc442c
hj kim [Thu, 9 Aug 2018 00:20:31 +0000 (09:20 +0900)]
Fix test code crash
Change-Id: I23361c014f3042216d03a877d5a857a9e7eab071
hj kim [Wed, 18 Jul 2018 02:27:25 +0000 (11:27 +0900)]
[ACR-1274]Change APIs profile for the newly added ones. From Common to Mobile only
Change-Id: If84e173763253ebbd16172d5c832c4aa37d2570e
Minje Ahn [Wed, 8 Aug 2018 03:42:17 +0000 (12:42 +0900)]
Fix memory leak
Change-Id: Id41c86f180203f4c4f9e575760f0585ec10a77b6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
yhji [Fri, 27 Jul 2018 01:54:28 +0000 (10:54 +0900)]
Fix Wformat build error
Change-Id: I8a8999e3b5b452a02947d90652df50b18704ef6d
Signed-off-by: yhji <yhji.lee@samsung.com>
jiyong.min [Mon, 16 Jul 2018 23:37:56 +0000 (08:37 +0900)]
Remove unused upgrade script
Change-Id: Ic4a2a97ca9bed2aeb8a8a5e0fbe38fba66a66ed6
hj kim [Fri, 13 Jul 2018 02:23:32 +0000 (11:23 +0900)]
Just update doxygen description
Change-Id: Ib36121eb278135cb9e7931f18a1fa41341f99217
hj kim [Thu, 12 Jul 2018 08:29:15 +0000 (17:29 +0900)]
Fix typo
Change-Id: I0f4e45fc72d1154a4b4a55d0d4a40860986e3fe9
Jiyong Min [Tue, 10 Jul 2018 03:32:00 +0000 (12:32 +0900)]
Add to remove client from client_list table when it is created
(The handle was not destroyed, it make the client_name duplicated.)
Change-Id: I13eea6d69e7ddd6b3c6ed51836ab0a213ac2c5c6
hj kim [Fri, 6 Jul 2018 01:41:35 +0000 (10:41 +0900)]
Fix Coverity issues
Change-Id: I2e77a011e2401387a282f0768d3a5bd7b8d8ec5a