profile/ivi/murphy.git
9 years agosystem-controller: only override dst rectangle for apps. 83/34183/1 tizen
Janos Kovacs [Wed, 21 Jan 2015 13:57:27 +0000 (15:57 +0200)]
system-controller: only override dst rectangle for apps.

Ignoring other types of layers keeps the homescreen itself
without sudden changes. Makes the homescreen's launcher
component pop up and down smoothly.

Change-Id: If3fd985599a34d4226fd13250c9d4d2127e7d9ab

9 years agopackaging: depend on the same release 05/33505/1 sandbox/pcoval/tizen
Philippe Coval [Mon, 12 Jan 2015 10:29:58 +0000 (11:29 +0100)]
packaging: depend on the same release

Change-Id: Iabc2849bd257f7ba04a968e670dc58c7e48ecbbe
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
9 years agopackaging: bumped version, updated changelog. 43/33443/1 accepted/tizen_3.0_ivi accepted/tizen_ivi tizen_3.0_ivi accepted/tizen/ivi/20150112.012920 submit/tizen_ivi/20150109.150028 tizen_3.0_ivi_release
Krisztian Litkey [Thu, 18 Dec 2014 15:53:42 +0000 (17:53 +0200)]
packaging: bumped version, updated changelog.

Change-Id: Id3487d200965bad64123e0ef319837158bd6add5

9 years ago{common,system-controller}: make sure buffers are null-terminated. 42/33442/1
Jan Ekström [Thu, 8 Jan 2015 15:36:33 +0000 (17:36 +0200)]
{common,system-controller}: make sure buffers are null-terminated.

Fixes issues found by Coverity.

Change-Id: Ib226c27ebea07a27879e4450ca04cd2340ca7511

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Thu, 18 Dec 2014 14:57:45 +0000 (16:57 +0200)]
packaging: bumped version, updated changelog.

Change-Id: Ieb1f8c363368e36522bad5b705c0b804e49fe0fb

9 years agoconfig: declare phone class as non-shared.
Krisztian Litkey [Thu, 18 Dec 2014 14:56:48 +0000 (16:56 +0200)]
config: declare phone class as non-shared.

Change-Id: Ic6dd1f1dd57456d29f89827a917c7ed940424902

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Wed, 17 Dec 2014 17:39:56 +0000 (19:39 +0200)]
packaging: bumped version, updated changelog.

Change-Id: Ia57df887e75957b707b1fdf7e6061ab85759f06d

9 years agowiden the name field in database to accommodate longer strings
Jaska Uimonen [Wed, 17 Dec 2014 17:35:39 +0000 (19:35 +0200)]
widen the name field in database to accommodate longer strings

Change-Id: I3572824fc00ad0b1cda715d92af4602a2c567d9a

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Tue, 16 Dec 2014 19:59:20 +0000 (21:59 +0200)]
packaging: bumped version, updated changelog.

Change-Id: Ia413dd83c6fda65ff9aa702c1d9af3fd30b70fed

9 years agoconfig: add missing name attribute definition for audio resources.
Krisztian Litkey [Wed, 17 Dec 2014 09:05:53 +0000 (11:05 +0200)]
config: add missing name attribute definition for audio resources.

Change-Id: I993589d596162b008917b057c86d22af1612088e

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Tue, 16 Dec 2014 19:42:40 +0000 (21:42 +0200)]
packaging: bumped version, updated changelog.

Change-Id: Iad3a35180661d66d3de91a3fb4730afe755afdc8

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Tue, 16 Dec 2014 16:00:12 +0000 (18:00 +0200)]
packaging: bumped version, updated changelog.

Change-Id: I9fc6710c50420035de0f4a4bf2992793258783c8

9 years agoprocess-watch: get rid of mrp_debug warning on both 32- and 64-bit systems.
Krisztian Litkey [Fri, 12 Dec 2014 17:47:16 +0000 (19:47 +0200)]
process-watch: get rid of mrp_debug warning on both 32- and 64-bit systems.

Change-Id: I66cc13f7e154404f2ee2ed7ff6d43f2d0057a824

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Fri, 12 Dec 2014 13:25:53 +0000 (15:25 +0200)]
packaging: bumped version, updated changelog.

Change-Id: I6023ca89473264c7801a406ba4cb065a28484bde

9 years agotelephony: fix a few incorrect mrp_debug usages.
Krisztian Litkey [Fri, 12 Dec 2014 15:22:25 +0000 (17:22 +0200)]
telephony: fix a few incorrect mrp_debug usages.

Change-Id: I6d70621864c20fa1c7f1ff5e9a15d5f7e140173e

9 years agosystem-controller: fix a few incorrect mrp_debug usages.
Krisztian Litkey [Fri, 12 Dec 2014 15:03:35 +0000 (17:03 +0200)]
system-controller: fix a few incorrect mrp_debug usages.

Change-Id: Iaf10a1ad8b3f26ef8b535f444d3560a96c6f137c

9 years agosystem-controller: don't include gone event.h.
Krisztian Litkey [Fri, 12 Dec 2014 14:59:51 +0000 (16:59 +0200)]
system-controller: don't include gone event.h.

Change-Id: I4551721d02fdc3b780364a0ff3082c109f62e7d1

9 years agoprocess-watch: fix a few incorrect mrp_debug usages.
Krisztian Litkey [Fri, 12 Dec 2014 14:33:37 +0000 (16:33 +0200)]
process-watch: fix a few incorrect mrp_debug usages.

Change-Id: I15f3d8641997e9652f633cd345c471b234e9feab

9 years agogam-resource-manager: adjust to updated event infra.
Krisztian Litkey [Fri, 12 Dec 2014 14:29:26 +0000 (16:29 +0200)]
gam-resource-manager: adjust to updated event infra.

Change-Id: Ie01eb0b1975b647fbf5894c6faa3c1c03062d1fd

9 years agosystem-monitor: fix a few incorrect mrp_debug usages.
Krisztian Litkey [Fri, 12 Dec 2014 14:16:45 +0000 (16:16 +0200)]
system-monitor: fix a few incorrect mrp_debug usages.

Change-Id: I25a02f2503299ee84f4e09be2fcc6e327deb9139

9 years agogam-resource-manager: don't include gone core/event.h.
Krisztian Litkey [Fri, 12 Dec 2014 14:10:44 +0000 (16:10 +0200)]
gam-resource-manager: don't include gone core/event.h.

Change-Id: Ibff2fcf313eb957c6c0681342c0a05de79e16ce1

9 years agopackaging: removed ivi-resource-manager.
Ismo Puustinen [Mon, 8 Dec 2014 13:10:48 +0000 (15:10 +0200)]
packaging: removed ivi-resource-manager.

Change-Id: Iab08fd26b687d4c0129e117d6f63172d8a1cd502

9 years agoivi-resource-manager: removed.
Ismo Puustinen [Mon, 8 Dec 2014 12:31:51 +0000 (14:31 +0200)]
ivi-resource-manager: removed.

Change-Id: Id64767c49bb94ac9b0d2fe7271daeec89d8fc0ac

9 years agosystem-controller: pass the updated layer id in set_window_layer.
Jan Ekström [Fri, 28 Nov 2014 13:05:54 +0000 (15:05 +0200)]
system-controller: pass the updated layer id in set_window_layer.

We were never updating the layer in the resulting window update,
and thus not sending the state back to HomeScreen. Additionally,
the resulting Murphy logging was misleading.

Change-Id: I188ec27c51eab8dec2c9706639f67db4dafea589

9 years agosystem-controller: fall back on area width/height if we have no request.
Jan Ekström [Fri, 21 Nov 2014 13:06:56 +0000 (15:06 +0200)]
system-controller: fall back on area width/height if we have no request.

Remove old nonzero checks that do not seem to be valid, special case
zero width/height to area width/height if available.

Change-Id: I087f0d4ea02c04b145ef7974af51edf7089cd128

9 years agosystem-controller: commit and flush in dest. rect. cb.
Jan Ekström [Wed, 19 Nov 2014 09:24:16 +0000 (11:24 +0200)]
system-controller: commit and flush in dest. rect. cb.

If we have to scale and/or move the rectangle, it is
preferred to have it committed and flushed to weston as
soon as possible.

Change-Id: I579c205a924b54fcd7c927e13443b864a42a123e

9 years agosystem-controller: simplify set_appid and set the win area in it.
Jan Ekström [Fri, 21 Nov 2014 13:55:08 +0000 (15:55 +0200)]
system-controller: simplify set_appid and set the win area in it.

Change-Id: Ie7f0fe8186638540b6ec38ab8ce4e87ff1cbe901

9 years agosystem-controller: fix a copy-paste bug in dest. rect. cb.
Jan Ekström [Wed, 19 Nov 2014 09:44:38 +0000 (11:44 +0200)]
system-controller: fix a copy-paste bug in dest. rect. cb.

Change-Id: I81ce16b5f6ba08bca9f70c72f76682a1cb962376

9 years agoivi-resource-manager: only set value once before validation in audio_allocate.
Jan Ekström [Tue, 18 Nov 2014 13:10:16 +0000 (15:10 +0200)]
ivi-resource-manager: only set value once before validation in audio_allocate.

Change-Id: Id430d17def5a437c9ea5864eb4b52e7903f427d7

9 years agoivi-resource-manager: fix out-of-bounds access in audio.c.
Jan Ekström [Tue, 18 Nov 2014 12:52:25 +0000 (14:52 +0200)]
ivi-resource-manager: fix out-of-bounds access in audio.c.

Change-Id: I2a4720e4536e9c5d2c20ae418d6087fbf6791b75

9 years agopackaging: get rid of subpkgs, commented files entries altogether.
Krisztian Litkey [Fri, 5 Dec 2014 09:07:12 +0000 (11:07 +0200)]
packaging: get rid of subpkgs, commented files entries altogether.

We have not used the finer-grained packaging practically ever, or
at least not for a veeeery loooong time. Get rid of it altogether
to ease packaging maintainability.

Change-Id: I159f2cefb65dbadc1134c435e1c75939ac9066d5

9 years agopackaging: fixing up 'merde'.
Krisztian Litkey [Fri, 5 Dec 2014 08:11:18 +0000 (10:11 +0200)]
packaging: fixing up 'merde'.

The Yocto-Tizen synchronization patch broke several things
in the build:

1) It simply did not build, trying to copy murphy-lua.conf while
   being in the wrong directory.
2) It carelessly inverted the semantics of squashpkg and thus
   generating a large(r) set of subpackages by default potentially
   breaking binary dependencies.

This patch fixes these. There might be other problems we have not
noticed yet.

Change-Id: I70c9e6bc597cefae73fac0768f63427bd88ed791

9 years agopackaging: adjust spec file for easier yocto-tizen synchronization.
Ronan Le Martret [Wed, 24 Sep 2014 17:01:02 +0000 (19:01 +0200)]
packaging: adjust spec file for easier yocto-tizen synchronization.

Change-Id: Idab709fb05d2fb72827f5cd48ff612a6c883c784
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Wed, 12 Nov 2014 15:16:18 +0000 (17:16 +0200)]
packaging: bumped version, updated changelog.

Change-Id: I5ed0623940c6471ff5b5fdfd790ccbdbfca5aae5

9 years agoconfig: limit resource set acquisition to non-system surfaces.
Jan Ekström [Fri, 14 Nov 2014 09:18:42 +0000 (11:18 +0200)]
config: limit resource set acquisition to non-system surfaces.

System surfaces have no resource sets, so trying to acquire them
leads to them just being not found and spamming the log with
error-like messages. Also generally move definition of locals to
the beginning of the block.

Change-Id: Idf553cc44ce5b84c3b002087164d6e7f4700dcb9

9 years agosystem-controller: add forgotten % signs in mrp_debugs for inttypes.
Jan Ekström [Thu, 13 Nov 2014 15:03:48 +0000 (17:03 +0200)]
system-controller: add forgotten % signs in mrp_debugs for inttypes.

Change-Id: I7ab35d60aa9880b24f5169d2ca477851e85da9d5

9 years agoconfig: grab the screen resource when forcing a window to be shown.
Jan Ekström [Thu, 13 Nov 2014 08:47:12 +0000 (10:47 +0200)]
config: grab the screen resource when forcing a window to be shown.

Mismatch in the resource and actual window state causes undesired
behavior.

Change-Id: I3bcb7a2e81c9147c0b2fd8a0734b670cb495b681

9 years agoconfig: fix inverted bit field check for a flag
Jan Ekström [Tue, 11 Nov 2014 12:15:47 +0000 (14:15 +0200)]
config: fix inverted bit field check for a flag

Change-Id: I5085df0ee69d1437f1a79b60b2994c1b3e116fd9

9 years agosystem-controller: only set value once before validation in audio_allocate.
Jan Ekström [Fri, 7 Nov 2014 12:34:29 +0000 (14:34 +0200)]
system-controller: only set value once before validation in audio_allocate.

Change-Id: I89de549fd97dcad88f10cf36c5807a8eeb9341bd

9 years agosystem-controller: fix out-of-bounds access in audio.c
Jan Ekström [Fri, 7 Nov 2014 12:25:19 +0000 (14:25 +0200)]
system-controller: fix out-of-bounds access in audio.c

Change-Id: Iab13d883e80d308d3ef3abad772b71b6e7e0d8ae

9 years agosystem-controller: mark scripting-notifier event objects as dynamic.
Krisztian Litkey [Wed, 12 Nov 2014 14:06:38 +0000 (16:06 +0200)]
system-controller: mark scripting-notifier event objects as dynamic.

Change-Id: Iad1955a84f133bf9e068a93d9f17501449267e37

9 years agopackaging: bumped version to 0.0.66, updated changelog.
Ismo Puustinen [Wed, 12 Nov 2014 13:47:24 +0000 (15:47 +0200)]
packaging: bumped version to 0.0.66, updated changelog.

Change-Id: I8267c607ce853272b369ef48a1cb3efc56524aa8

9 years agosystem-controller: change logging to be less misleading.
Ismo Puustinen [Tue, 11 Nov 2014 09:29:22 +0000 (11:29 +0200)]
system-controller: change logging to be less misleading.

Change-Id: I17fc27b9bc145307488036fe3e798da46577e258

9 years agoconfig: fix notification handling.
Ismo Puustinen [Mon, 10 Nov 2014 14:15:21 +0000 (16:15 +0200)]
config: fix notification handling.

Do not use user data variables for timers, resources anymore. Make sure that
memory is properly freed.

Change-Id: Ib30714df0b36c84cec61fd618546b2a5cc2393cf

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Tue, 4 Nov 2014 16:12:35 +0000 (18:12 +0200)]
packaging: bumped version, updated changelog.

Change-Id: I04a0b2391a49646c4e4a1fd8febe7dbdafa240ee

9 years agoconfig: enable removing some applications from regulation.
Ismo Puustinen [Thu, 6 Nov 2014 11:00:53 +0000 (13:00 +0200)]
config: enable removing some applications from regulation.

Change-Id: I82b3d552cb0e5b22fd88e4c02789829df62296b1

9 years agosystem-controller: do not fclose a nullptr in save_last_user.
Jan Ekström [Thu, 6 Nov 2014 13:58:13 +0000 (15:58 +0200)]
system-controller: do not fclose a nullptr in save_last_user.

Change-Id: I480354de3f040cfc0ec4d80759ada51299d091c6

9 years agoivi-resource-manager: fix out-of-bounds access in screen.c
Jan Ekström [Thu, 6 Nov 2014 13:39:05 +0000 (15:39 +0200)]
ivi-resource-manager: fix out-of-bounds access in screen.c

Change-Id: Ia03f3c7a74aeed2732e5dca84dd711a985ccb594

9 years agosystem-controller: fix out-of-bounds access in screen.c
Jan Ekström [Thu, 6 Nov 2014 13:03:58 +0000 (15:03 +0200)]
system-controller: fix out-of-bounds access in screen.c

Change-Id: I83c31b2a0beaf4a15973bcc1961474de826c6fdb

9 years agosystem-controller: stop a possible out-of-bounds write.
Jan Ekström [Thu, 6 Nov 2014 12:32:27 +0000 (14:32 +0200)]
system-controller: stop a possible out-of-bounds write.

Change-Id: Ia63c65c74aeb119097acdb4000c6b4bc153e7937

9 years agosystem-monitor: always unref cgroup if cpu_register_cgroup fails.
Krisztian Litkey [Thu, 6 Nov 2014 12:37:49 +0000 (14:37 +0200)]
system-monitor: always unref cgroup if cpu_register_cgroup fails.

Change-Id: Ifddaab06c8d07bf42ed570b699c7ebbd1a360cd9

9 years agotelephony: mark intentional fallthrough with a comment.
Krisztian Litkey [Thu, 6 Nov 2014 12:05:05 +0000 (14:05 +0200)]
telephony: mark intentional fallthrough with a comment.

Change-Id: Ia89eb26d5984d36ef79ff9141b98c4edc2886163

9 years agosystem-monitor: force control descriptor table size.
Krisztian Litkey [Thu, 6 Nov 2014 10:38:11 +0000 (12:38 +0200)]
system-monitor: force control descriptor table size.

Change-Id: Id88230b7eaf89a00e9a37192d3c04e4c3b018e08

9 years agosystem-monitor: don't leak /proc/mounts fd.
Krisztian Litkey [Thu, 6 Nov 2014 09:48:00 +0000 (11:48 +0200)]
system-monitor: don't leak /proc/mounts fd.

Change-Id: Ib70d20140fee4b1a6803c7f8a7388282846f376d

9 years agosystem-controller: only set value once before validation in screen_allocate.
Jan Ekström [Wed, 5 Nov 2014 14:54:58 +0000 (16:54 +0200)]
system-controller: only set value once before validation in screen_allocate.

Change-Id: I56aa1716e848a6c400dc3e7f63d811dfdb015a35

9 years agoresource-asm: close correct fd in error handler.
Ismo Puustinen [Wed, 5 Nov 2014 13:59:06 +0000 (15:59 +0200)]
resource-asm: close correct fd in error handler.

Change-Id: I3bb0f813cebeefcf8d7214b935289560e73628de

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Fri, 31 Oct 2014 16:30:29 +0000 (18:30 +0200)]
packaging: bumped version, updated changelog.

Change-Id: Ie44a945b10ac745179f1329756e5fcd65b86b652

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Fri, 31 Oct 2014 15:52:41 +0000 (17:52 +0200)]
packaging: bumped version, updated changelog.

Change-Id: Ia89a2b14ce4ef582b46c4496a351c9e1270a29aa

9 years agoconfig: delete timers by setting 'callback', not 'cb', to nil.
Ismo Puustinen [Fri, 31 Oct 2014 15:02:03 +0000 (17:02 +0200)]
config: delete timers by setting 'callback', not 'cb', to nil.

Change-Id: I02173e3c32e783d2666b560b61d10d362703b24d

9 years agoconfig: create system surfaces on top, but not visible.
Jan Ekström [Fri, 24 Oct 2014 15:14:40 +0000 (18:14 +0300)]
config: create system surfaces on top, but not visible.

This matches CicoSCWindowController, and fixes the application
launcher (menuwindow) coming up when the ICO HomeScreen is started.

Change-Id: I8e8f135979e9342e7b3012499aa7263185bf968c

9 years agopackaging: move murphyd.service to systemd user session.
Ismo Puustinen [Tue, 21 Oct 2014 14:05:07 +0000 (17:05 +0300)]
packaging: move murphyd.service to systemd user session.

Change-Id: I390d190a3d2d621a37527e652040d667a36afe08

9 years agosystem-controller: launch HS with user name instead of user dir.
Ismo Puustinen [Tue, 21 Oct 2014 10:10:48 +0000 (13:10 +0300)]
system-controller: launch HS with user name instead of user dir.

Change-Id: Ib9f0e5d23b89471d1528051d6bca63505b8ef032

9 years agosystem-controller: do mkdir recursively.
Ismo Puustinen [Tue, 21 Oct 2014 13:49:17 +0000 (16:49 +0300)]
system-controller: do mkdir recursively.

Change-Id: I272794e74738c9bf678948bcaebd0dfdc765d8c7

9 years agosystem-controller: fix a crash in inotify watching.
Ismo Puustinen [Fri, 31 Oct 2014 08:49:31 +0000 (10:49 +0200)]
system-controller: fix a crash in inotify watching.

Change-Id: I27953443b1418034fe4d88538ddbaa628a357d36

9 years agoplugin-amb: explicitly restore Lua stack across callbacks.
Krisztian Litkey [Tue, 28 Oct 2014 12:51:49 +0000 (14:51 +0200)]
plugin-amb: explicitly restore Lua stack across callbacks.

Change-Id: I6c20435fde7bd25842b1e673e31b5e1bae23d086

9 years agopackaging: cherry-picked fixes for TC-1835, bumped version, updated changelog.
Krisztian Litkey [Thu, 30 Oct 2014 14:33:53 +0000 (16:33 +0200)]
packaging: cherry-picked fixes for TC-1835, bumped version, updated changelog.

Change-Id: I50fa2b294aa324b5afadc186c5a6066540700a42

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Tue, 28 Oct 2014 07:51:46 +0000 (09:51 +0200)]
packaging: bumped version, updated changelog.

Change-Id: I8642e22fdd823ae53a8da2f09f80be70b4a3c9b9

9 years agosystem-controller: don't leak animation definition names.
Krisztian Litkey [Tue, 28 Oct 2014 08:25:31 +0000 (10:25 +0200)]
system-controller: don't leak animation definition names.

Change-Id: I68565fa3aab73643c501596c8812d68cf88a3c57

9 years agogam-resource-manager: adjust to updated proxied call callback signature.
Krisztian Litkey [Sun, 26 Oct 2014 15:52:47 +0000 (17:52 +0200)]
gam-resource-manager: adjust to updated proxied call callback signature.

Change-Id: Ice3db43842f81cc7368ed9438df730772c374233

9 years agosystem-controller: fixed a compiler warning.
Krisztian Litkey [Sun, 26 Oct 2014 15:25:42 +0000 (17:25 +0200)]
system-controller: fixed a compiler warning.

Change-Id: Idcfe06855806c24cb5bd111214280186a32da6f8

9 years agosystem-controller: fixed a few compiler warnings.
Krisztian Litkey [Sun, 26 Oct 2014 15:24:48 +0000 (17:24 +0200)]
system-controller: fixed a few compiler warnings.

Change-Id: I2719c688da5147478bfafb6af356097c0abfd915

9 years agoivi-resource-manager: fixed a few compiler warnings.
Krisztian Litkey [Sun, 26 Oct 2014 15:23:09 +0000 (17:23 +0200)]
ivi-resource-manager: fixed a few compiler warnings.

Change-Id: Ie5b6ab5af6e9898ffe1e3b7f7b39f8a2567ef038

9 years agogam-resource-manager: fix a few warnings.
Krisztian Litkey [Sat, 25 Oct 2014 11:22:19 +0000 (14:22 +0300)]
gam-resource-manager: fix a few warnings.

Change-Id: I49b7e63c5e014ec50d1ccfe1b46031d330fba6f6

9 years agoivi-resource-mananger: fix a few warnings.
Krisztian Litkey [Sat, 25 Oct 2014 11:21:59 +0000 (14:21 +0300)]
ivi-resource-mananger: fix a few warnings.

Change-Id: Ib5afbf266b2282614c00fea46d36a51632521120

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Sat, 25 Oct 2014 10:42:05 +0000 (13:42 +0300)]
packaging: bumped version, updated changelog.

Change-Id: If40d909392eadf0db7de9e835106cddb0cff4252

9 years agopackaging: remove commented out rpm sections.
Ismo Puustinen [Sat, 25 Oct 2014 10:30:20 +0000 (13:30 +0300)]
packaging: remove commented out rpm sections.

Change-Id: Ifc381a8634c15011380e92f6a876f9eb25420f8a

9 years agosystem-monitor: get rid of a compiler warning.
Krisztian Litkey [Sat, 25 Oct 2014 09:26:42 +0000 (12:26 +0300)]
system-monitor: get rid of a compiler warning.

Change-Id: I4e3a7802242572bda2bd453e91ecad2fb63dd502

9 years agogam-resource-manager: get rid of a few compiler warnings.
Krisztian Litkey [Sat, 25 Oct 2014 09:20:08 +0000 (12:20 +0300)]
gam-resource-manager: get rid of a few compiler warnings.

Change-Id: I05ae9b3b5d69ffd6b243312ac4ab8d5b2f6edf28

9 years agosystem-controller: don't dereference screen_resource_t after freeing it.
Krisztian Litkey [Sat, 25 Oct 2014 08:35:31 +0000 (11:35 +0300)]
system-controller: don't dereference screen_resource_t after freeing it.

Change-Id: Iaf35be947867d205449861c659d5915f8569447c

9 years agosystem-monitor: plant the necessary funcbridge gettop/settop wrappers.
Krisztian Litkey [Fri, 24 Oct 2014 16:36:48 +0000 (19:36 +0300)]
system-monitor: plant the necessary funcbridge gettop/settop wrappers.

Change-Id: I201ec63c673cad1312834bdc7b04efd702f2b60d

9 years agosystem-monitor: fixed a potentially uninitialized variable warning.
Krisztian Litkey [Thu, 23 Oct 2014 13:26:13 +0000 (16:26 +0300)]
system-monitor: fixed a potentially uninitialized variable warning.

Change-Id: Ib6e0384b442dd62cb4121f899a2a66b8b9b7d408

9 years agosystem-monitor: removed now implicit MRP_LUA_CLASS_PRIVREFS.
Krisztian Litkey [Thu, 23 Oct 2014 13:16:44 +0000 (16:16 +0300)]
system-monitor: removed now implicit MRP_LUA_CLASS_PRIVREFS.

Change-Id: I4548bbe37e24504ce8138da8f19edc71dc58ee4b

9 years agosystem-controller: fix trailing white space in a few scripting-*.c.
Krisztian Litkey [Wed, 22 Oct 2014 17:09:43 +0000 (20:09 +0300)]
system-controller: fix trailing white space in a few scripting-*.c.

Change-Id: I3e4c7d84b5305d83c767a6634f698192a2357491

9 years agosystem-controller: mark masks DYNAMIC, add funcbridge gettop/settop wrappers.
Krisztian Litkey [Wed, 22 Oct 2014 17:08:36 +0000 (20:08 +0300)]
system-controller: mark masks DYNAMIC, add funcbridge gettop/settop wrappers.

Mark Lua *_mask classes (window_mask, layer_mask, input_mask,
output_mask, code_mask) as dynamic.

Finally (I think) I understood where the mysterious and seemingly
quasi-randomly occuring dynamic object leaks were stemming from.
It is caused by functionbridge invocations from a peculiar type
of context (see below). Sadly, in its current form, there is no
easy automatic way to mitigate the problem, or at least I haven't
managed to come up with one yet, to protect people from shooting
themselves in the foot with other instances of this bug. For the
time being folks will need to make sure they do the right things,
which inherently and eventually tends to be error prone...

Anyway, to make a long story short, the leaks were stemming from
calls to mrp_func{bridge,array}_call_from_c from contexts which
were not triggered, directly or indirectly, from Lua from a control
flow perspective. IOW, if there was a call to one of the *from_c
bridge-invoking and on the return path we never ended up returning
to the Lua interpreter (which would have then had been the one
having made the call out to C/us) then all the objects that were
pushed on the Lua stack before the call to the *from_c function
were simply left on the Lua stack forever.

These were not genuine leaks in the sense that the object still
were reachable on the Lua stack, it was just that there was never
a return to Lua or to anybode else to clean up the stack for us
so the object were never ever reclaimed.

The fix for now is to make sure that all invocations to bridges
strictly follow the pattern below, which makes sure that the Lua
stack top is saved before anything is pushed there and restored
before returning from the function:

  ...
  int top;

  error checks and potential bailout();

  top = lua_gettop(L);

  /* from here on no direct bailout, only return via 'goto out;' */
  preparation argument gathering and creation();

  fill funcbridge argument array();
  invoke funcbridge with one of the call_from_c calls();
  free returned values if needed();

  out;
  lua_settop(L, top);

  return status;

Now there are a couple of ways how this could be made safer / less
error prone, but AFAICT all of those require slight changes to the
funcbridge implementation and/or signature.

One, and a rather trivial, way would be to let people pass in the
stack top to be restored to the *_call_from_c functions and let
these make sure that the stack is restored properly before they
return. This would still require the caller to correctly determine
the right stack top, but it would save him from the trouble of
having to remember to correctly restore the stack on all return
pathes.

Another alternative would be to change the funcbridge signature
and allow the called to indicate there how many items were pushed
to the stack just for the funcbridge call (eg. the last item being
the number of items to clean up), or to have separate signature
markers for items that have been specifically allocated for the
funcbridge call. So for instance O would indicate a Lua object
while D would indicate a Lua object that needs to be cleaned from
the stack before returning. Neither of these would be fully fail-
safe though as the caller still needs to provide the right info
one way or another...

Change-Id: If002c8bb4936bbc8e2677dfb9cdc4a0a640c78d6

9 years agosystem-controller: don't leak unwrapped JSON objects/arguments.
Krisztian Litkey [Mon, 20 Oct 2014 09:23:48 +0000 (12:23 +0300)]
system-controller: don't leak unwrapped JSON objects/arguments.

mrp_json_lua_unwrap implicitly takes a new reference to the
unwrapped JSON object on behalf of the caller. Once the caller
is done with using the object, that reference must be dropped.

Change-Id: I06e132034355547fd4453140e8a1aeecf9cd1102

9 years agosystem-controller: fix user name handling.
Ismo Puustinen [Thu, 16 Oct 2014 07:37:23 +0000 (10:37 +0300)]
system-controller: fix user name handling.

Change-Id: I72d95e3e3c052394ca5a35170bc718dfc1ace6bf

9 years agopackaging: bumped version, updated changelog.
Krisztian Litkey [Fri, 10 Oct 2014 17:43:42 +0000 (20:43 +0300)]
packaging: bumped version, updated changelog.

Change-Id: I282f647296224ce411defd6fbfb18b3fa01fbe4e

9 years agosystem-controller: tizen_platform include order fix.
Ismo Puustinen [Fri, 10 Oct 2014 14:15:59 +0000 (17:15 +0300)]
system-controller: tizen_platform include order fix.

Change-Id: I354cc3be91c6f40e1dec03046c628892c89640d3

9 years agopackaging: bumped the version.
Ismo Puustinen [Mon, 29 Sep 2014 07:24:27 +0000 (10:24 +0300)]
packaging: bumped the version.

Change-Id: I8d006638850676e1ebcdd5d4b76891a9b3757e12

9 years agosystem-controller: use hash instead of pointers to fetch surface objects
Janos Kovacs [Fri, 10 Oct 2014 12:50:54 +0000 (15:50 +0300)]
system-controller: use hash instead of pointers to fetch surface objects

Change-Id: Ib7e00d3e2d6579e83888502dfe4895b3a1cd5309

9 years agopackaging: do not install ico-homescreen.service.
Ismo Puustinen [Tue, 7 Oct 2014 12:48:02 +0000 (15:48 +0300)]
packaging: do not install ico-homescreen.service.

Change-Id: I8f903326977ee0fa99c1d85f5948a83f1f9b01e4

9 years agosystem-controller: delay user init until weston is running.
Ismo Puustinen [Tue, 7 Oct 2014 12:36:58 +0000 (15:36 +0300)]
system-controller: delay user init until weston is running.

Change-Id: I8c703422b6f9385d7a92863e5a5dd0961980c0e2

9 years agobuild: added path-track to build.
Ismo Puustinen [Tue, 7 Oct 2014 12:13:55 +0000 (15:13 +0300)]
build: added path-track to build.

Change-Id: I3ff542d084d20a518ddecc47baecd4d9a7576f7e

9 years agosystem-controller: added code for tracking single files.
Ismo Puustinen [Tue, 7 Oct 2014 12:05:49 +0000 (15:05 +0300)]
system-controller: added code for tracking single files.

This is meant for figuring out when Weston socket appears.

Change-Id: I7d80eeb37bd8e733e4411860dfc8698d0811cf87

9 years agosystem-controller: save and restore the last user information.
Ismo Puustinen [Mon, 6 Oct 2014 13:56:48 +0000 (16:56 +0300)]
system-controller: save and restore the last user information.

Change-Id: Id8af88372aab821774572f4d7929b95361de33f1

9 years agoconfig: Updated murphy.lua to process incoming notification requests.
Ismo Puustinen [Tue, 30 Sep 2014 06:37:02 +0000 (09:37 +0300)]
config: Updated murphy.lua to process incoming notification requests.

Change-Id: Id5f8baf4e263ce0f4248f9679e2d1cdedc2465b6

9 years agosystem-controller: do mkdir() calls persistently.
Ismo Puustinen [Wed, 24 Sep 2014 14:01:01 +0000 (17:01 +0300)]
system-controller: do mkdir() calls persistently.

Change-Id: I5d457e621f0648706db52c25040402b2dc6686cb

9 years agosystem-controller: bail out if creating directories fails.
Ismo Puustinen [Wed, 24 Sep 2014 14:18:22 +0000 (17:18 +0300)]
system-controller: bail out if creating directories fails.

Change-Id: I1dd534f347d32f52bf43507b948efa60d81e2e10

9 years agoconfig: add D-Bus session bus address to systemd service file.
Ismo Puustinen [Wed, 8 Oct 2014 12:09:00 +0000 (15:09 +0300)]
config: add D-Bus session bus address to systemd service file.

Change-Id: Ia0ad14972c4d0b89eccbbccbe5da74180b81e9c1

9 years agosystem-controller: change the system-controller generated surface id range
Janos Kovacs [Wed, 1 Oct 2014 18:26:39 +0000 (21:26 +0300)]
system-controller: change the system-controller generated surface id range

Change-Id: I8d5f9d7d84a217dc2f0c25824d227313f3fe172f