summaryrefslogtreecommitdiff
path: root/src/lib/eldbus (follow)
AgeCommit message (Collapse)Author
2019-01-31efl_model : rename all efl_model based classes.SangHyeon Jade Lee
Summary: As the result of discussion in T7458, we need to rename all efl_model based classes with efl_XXX_Model sequence. I've run few vote for this, see V42, V43 few classes are totally renamed as our consideration of misnaming. | Efl.Model_Loop | Efl.Loop_Model | | Efl.Model_Item | Efl.Generic_Model | | Efl.Model_Container | Efl.Container_Model | | Efl.Model_Container_Item | Efl.Container_Model_Item | | Efl.Model_Composite | Efl.Composite_Model | | Efl.Model_Composite_Boolean | Efl.Boolean_Model | | Efl.Model_Composite_Boolean_Chlidren | Efl.Boolean_Model_Item | | Efl.Model_Composite_Selection | Efl.Select_Model | | Efl.Model_Composite_Selection_Chlidren | Efl.Select_Model_Item | | Efl.Model_View | Efl.View_Model | | Eio.Model | Efl.Io.Model | | Efl.Ui.Model_State | Efl.Ui.State_Model | | Efl.Ui.Model_Size | Efl.Ui.Size_Model | | Efl.Ui.Model_Exact | Efl.Ui.Exact_Model | | Efl.Ui.Model_Average | Efl.Ui.Average_Model | | Efl.Ui.Model_Homogeneous | Efl.Ui.Homogeneous_Model | I worried about Efl.Io.Model changes, cause it is widely used, but as I tested, there is no issue found yet. Eldbus.Model also may can changed Efl.Dbus.Model, but I cannot found any class who using Efl.Dbus namespace, so I left it future work. Test Plan: Run the Make Test, it works well except Efl test about selection. there are class inheritance problem exist in select_model, I reported it and will fix it in another patch. Reviewers: cedric, felipealmeida, woohyun, Hermet Reviewed By: cedric Subscribers: lauromoura Tags: #efl, #do_not_merge Differential Revision: https://phab.enlightenment.org/D7533
2019-01-18efl: convert all classes to the new eolian syntaxMarcel Hollerbach
ref T7459 Reviewed-by: Daniel Kolesa <daniel@octaforge.org> Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7684
2019-01-16ecore: remove data parameters of Efl.Loop_Consumer.promise_new to reduce the ↵Cedric BAIL
risk of inadvertently using the wrong data. If you need data, use a efl_future_then as done in every case here to get the same feature. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D7577
2018-12-26Revert "Revert "ecore: make efl_loop_promise_new a function of ↵Carsten Haitzler (Rasterman)
Efl.Loop_Consumer."" This reverts commit 42e886d8d61d551bb544b777e6d254ce4dd3fcf1.
2018-12-26Revert "ecore: make efl_loop_promise_new a function of Efl.Loop_Consumer."Marcel Hollerbach
This reverts commit 9b5155c9f135f9ef450a817979f5884352b2d4c0. For now lets revert this, this breaks copy and paste, further more it has the potential to break a lot more things, as eio_model tends to use efl_loop_promise new, and then eina_promise_data_set, which is explicitly forbidden. This fixes crashing terminology instances.
2018-12-20ecore: make efl_loop_promise_new a function of Efl.Loop_Consumer.Cedric BAIL
I am not sure this is the right way to do it as binding would have to likely to bind it manually. Reviewed-by: Lauro Neto <Lauro Moura <lauromoura@expertisesolutions.com.br>> Differential Revision: https://phab.enlightenment.org/D7492
2018-12-20cmake: remove!Marcel Hollerbach
This build was never complete and also was not maintained probebly. It is also dropped in favour of meson which is cool, merged, works & is fast. Differential Revision: https://phab.enlightenment.org/D7010
2018-12-04eldbus model - remove unused vars warnCarsten Haitzler (Rasterman)
2018-12-04eldbus model - fix signed compare warnCarsten Haitzler (Rasterman)
2018-12-03meson: use eolian_gen with -SMarcel Hollerbach
this ensures that eolian does not parse installed .eo files Differential Revision: https://phab.enlightenment.org/D7405
2018-11-30eldbus: simplify code by using helper that create future directly.Cedric BAIL
The new helper help replace call to eina_future_resolved and eina_future_rejected with a scheduler lookup to just one function call. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7340
2018-11-30eldbus: simplify code by using proper helper.Cedric BAIL
efl_loop_promise_new is a helper function that does automatically figure out an available scheduler and create a promise from it. Basically replacing the call to eina_promise_new(efl_loop_future_scheduler_get(o), ...). Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7335
2018-11-29eldbus: add bracketsYeongjong Lee
Summary: assignment expression is always true. Test Plan: make Reviewers: cedric, devilhorns Reviewed By: devilhorns Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7357
2018-11-23eo: rename efl_future_Eina_FutureXXX_then in efl_future_then as this has ↵Cedric BAIL
been available for some time. Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7327
2018-11-23eldbus: switch Eldbus.Model to inherit from Efl.Model_Loop.Cedric BAIL
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7326
2018-11-23efl: make Efl.Model.properties_get return an Iterator<string>.Cedric BAIL
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7289
2018-11-09eldbus- fix warning by casting through voidCarsten Haitzler (Rasterman)
so eldbus does silly things like use a cb ptr with a different type of cb - very explicitly. so it casts but warnigns don't like it and assume it maybe a bug, so use void *'s so have some silence for this bit of evil.
2018-10-24meson: add eolian custom dependencies supportDaniel Kolesa
This uses the meson/ninja depfile functionality + eolian to make sure proper dependencies between generated files and .eo files are managed, to ensure consistent re-generation of all generated files that are affected upon .eo file modification. For custom rules with multiple outputs, Ninja currently does not support depfiles. Therefore, split those into two custom rules so that the depfiles functionality can be enabled. While this is ugly and slows down the process a little by having to invoke Eolian twice instead of once, it has to be done and it's still better than what we had in Autotools anyway. Differential revision: D7187 Fixes T6700.
2018-10-10eldbus: remove unreachable code.Hosang Kim
Coverity doesn't like this unreachable code. Differential Revision: https://phab.enlightenment.org/D7120
2018-10-02here comes mesonMarcel Hollerbach
a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
2018-05-24eldbus: manage death of children during invalidate.Cedric Bail
Differential Revision: https://phab.enlightenment.org/D6091
2018-05-19efl: Add missing event typesXavi Artigas
Summary: All events must have a type now, otherwise bindings don't know how to handle the event_info field. Most of the missing event types were actually "void" (no event_info present). Some struct definitions had to be moved to eo instead of h files, so they are available to bindings. Some have not, and are marked with FIXME. Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb). In general, there are hundreds of changed files, but mostly to add a type which was not present before, so there's no harm done. Also, A lot of FIXMEs have been added which should be, like, fixed. For example, some events can send different types of event_info, which is very inconvenient (and error prone). Test Plan: make with c# bindings works, make check and make examples work too. Reviewers: cedric, q66, lauromoura Subscribers: zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6169
2018-05-13eolian: second batch of unused import removalsDaniel Kolesa
This fixes all remaining occurences introduced by false negatives in 6bcd70f01d527cb05c16bfde0bf85ce79bef465e. The rest was already fixed in 6be3809c04fad847e353edecf5b6eef3c8766df4.
2018-05-13eolian: first batch of unused import removalsDaniel Kolesa
Initial results of our static analysis showed a bunch of unused imports or imports used only for documentation references. In the first case, remove entirely, in the second case, change to 'parse' in order to keep references working. The static analysis is not perfect and yields false negatives for certain cases, so there will be a second batch later.
2018-05-01efl: update Efl.Model to properly propagate ↵Cedric BAIL
EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED.
2018-05-01eldbus: make sure we do not destroy our log domain until we shutoff eina.Cedric BAIL
2018-04-30ecore: move efl_model_list_value_get to be an internal function.Cedric BAIL
2018-04-30eldbus: migrate and refactor eldbus.model to new efl.model API.Cedric Bail
2018-04-30eldbus: refactor model code.Cedric Bail
2018-04-17eolian gen: enable constness generation on property getter implsDaniel Kolesa
This changes a lot of things all across the EFL. Previously, methods tagged @const had both their external prototype and internal impl generated with const on object, while property getters only had const on the external API. This is now changed and it all has const everywhere. Ref T6859.
2018-04-05eldbus: call ecore_init in eldbus_initMike Blumenkrantz
eldbus requires ecore and cannot run without it @fix Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
2018-03-19eldbus: ensure the lifetime of the eldbus object path is monitored for proxiesCedric BAIL
the object is instantly destroyed when connection is lost Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
2018-03-19eldbus: use efl_del when clearing the model connection child listCedric BAIL
it is an error to delete an object with an existing parent Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
2018-02-15eldbus: rename conflicting "name" properties for some classesMike Blumenkrantz
2018-02-15eldbus: rename custom constructor methodsMike Blumenkrantz
"constructor" conflicts with the base efl object constructor some of the params for these should maybe be refactored into properties and use finalize?
2018-02-02eldbus: make connections fork-safeMike Blumenkrantz
after a fork, any existing connection objects can no longer be used, but it's up to the user to destroy them. internally, this prevents existing connections from ever being returned as valid connections and creates new ones after a fork also destroy fd handlers for connections to ensure that no data is accidentally clobbered before the connections are cleaned up
2018-02-02eldbus: do not require error return when adding/removing signal matchesMike Blumenkrantz
this forces the functions to be synchronous and blocks (potentially forever)
2018-01-18all: Simplify definition of EAPIVincent Torri
This will help in the transition from Autotools to Meson. This has been tested on Windows for which EFL_XXX_BUILD were first introduced.
2017-11-02eo files: convert various to use @crefDaniel Kolesa
2017-10-26eldbus_message: Add description to fix doxygen warningJaehyun Cho
Change-Id: Id85f85de352019b29268cfa3d6e70df7cd8e84ee
2017-10-26eldbus_connection: Add description of parameters to fix doxygen warningJaehyun Cho
Change-Id: I3be25d4b7c8bdb69c23c1c5071fac8ac1420d87d
2017-10-26eldbus signal handler: add param, return type description for doxygenJinYong Park
Summary: Add omitted description to eldbus signal handler for doxygen warning Test Plan: API Doxygen Revision Reviewers: raster, cedric, jpeg, myoungwoon, Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5379
2017-10-26eldbus-service: add parameters and return type description for doxygenJinYong Park
Summary: Add omitted descriptions for doxygen warning Test Plan: API Doxygen Revision Reviewers: raster, cedric, jpeg, myoungwoon, Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5378
2017-08-01eldbus - make file local func added in fix staticCarsten Haitzler (Rasterman)
better to keep the func local unless needed elsewhere too
2017-07-31eldbus: check message serial before usingShinwoo Kim
Summary: Whatever the dbus_connection_send_with_reply returns, the serial value should be checked, because if the seral value is invalid a process could be aborted. There is backtrace as below. The dbus_connection_send_with_reply could return TRUE even though it has a problem. Please refer to following comment: /* Refuse to send fds on a connection that cannot handle them. Unfortunately we cannot return a proper error here, so the best we can do is return TRUE but leave *pending_return as NULL. */ Test Plan: There is not a exact reproduce step. If the Tizen login manager is relaunched repeatedly, then the dbus and other service processes are relaunched. If a service process tries to use dbus when the dbus has problem as above, then it could be possilbe to get above backtrace. Reviewers: raster, zehortigoza Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5053 @fix
2017-07-30eldbus lower error print levesl from ER to WRN in get all propsCarsten Haitzler (Rasterman)
this is generally unnecessary noise as the majority of the time i see this it's because the message was canceled by the caller... thats not an error though then... it's intended. less debug noise to sift through.
2017-04-26eldbus: check return of dbus_signature_iter_next()Stefan Schmidt
CID: 1341856
2017-01-26cmake: add eldbus.Gustavo Sverzut Barbieri
2016-12-27eldbus: use new property impl syntaxDaniel Kolesa
2016-12-06eldbus: change to idle_enterer from idlerJean-Philippe Andre
Summary: This patch set changes eldbus to use idle_enterer from idler. If an application does not give idle time, then the eldbus cannot have chance to work. Reviewers: raster, cedric Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D4443