summaryrefslogtreecommitdiff
path: root/src/lib/ecore (follow)
AgeCommit message (Collapse)Author
2019-07-31Efl.Composite_Model: Improve docs.Xavi Artigas
2019-07-30ecore: Fix download test.Lauro Moura
Summary: After ecore_main_loop_quit() changes, calling it from outside the main loop does not make the next iteration of the main loop quit, causing the original version of the test to deadlock. Also update the function documentation about it. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, felipealmeida, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9448
2019-07-30Fix typo in Efl prefixXavi Artigas
This annoyed me far far far more than it should.
2019-07-28eina file - stat generation inexactness supportCarsten Haitzler (Rasterman)
this is a performance optimization. it brings in a "stat generation". for now it's disabled by default so we retain previous behavior. this stops eina file from opening and stating a file every time you open ... it only does it if stat generation is off, or, if the generation changed since the last time it opened that file. this makes cache hits not have a 3 syscall cost (open+fstat+close). this optimizes that lower end of things path. but .. it comes at a cost. if the file changes before generation ticks over (which this forces to tick over every time the loop exits idle by default). now here is something to ask. 1. should we have this on by default and accept the "inexactness" since you can eina_file_statgen_next() before any call that would do i/o to force it to look at the real file stat info... 2. should we tick over every idle enter OR every N idle enters or every frame we render instead? ... i want to avoid getting a timestamp or having a timer interrupt often... so what should we do? at least this introduces the idea, some api's and an env var to turn this on. it definitely cuts down syscalls during things like creation of widdgets or objects in large batches etc.
2019-07-26eo: remove Efl_Event definition (replace with builtin)Daniel Kolesa
2019-07-20ecore - efl thread - remove mroe error case cnp code and share itCarsten Haitzler (Rasterman)
more cnp code de-duplication
2019-07-20ecore - efl thread - move duplicate code into shared func to reduce cnpCarsten Haitzler (Rasterman)
more copy & paste code - put into shared func.
2019-07-20ecore - efl thread - remove more copy & paste in fd in clearing handlingCarsten Haitzler (Rasterman)
move to common shared function to reduce c&p
2019-07-20ecore - efl thread - reduce copy & paste and merge into single funcCarsten Haitzler (Rasterman)
the call and call sync stuff was almost entirely copy & paste - this moves all the common code into shared funcs that reduce code bloat. it also moved from heap to stack for sync reply struct location.
2019-07-19ecore: avoid breaking next main loop start if quit occurs outside of loopMike Blumenkrantz
in the case where ecore_main_loop_quit() was called before ecore_main_loop_begin(), the latter call would exit immediately without ever iterating the main loop @fix Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9360
2019-07-17ecore: remove efl_loop_{un,}register from .eo.Cedric BAIL
We have to keep this as an API, but binding do not need to see it at this point. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9297
2019-07-17eo: use efl_provider_{un,}register infrastructure instead of Efl_Loop one.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9296
2019-07-17ecore: rely on efl_provider_{un,}register to do the job of ↵Cedric BAIL
efl_loop_{un,}register. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9294
2019-07-10ecore: phab didn't get this bit from D8570.Cedric BAIL
2019-07-10efl: use eina_streq for all property operation in model to avoid crash on ↵Cedric BAIL
NULL property name. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9266
2019-07-10ecore: improve usability of Efl.Select_Model to provide helpers in ↵Cedric BAIL
manipulating selection information. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8570
2019-07-10ecore: also error when trying to add an event handler for a type 0 eventMike Blumenkrantz
Summary: this is not a valid event type to add a handler for, it indicates an uninitialized event which means the component is not active and everything will break @fix Depends on D9255 Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9256
2019-07-10ecore: throw an error when trying to register a handler for a nonexistent ↵Mike Blumenkrantz
event type Summary: this should not be a silent return since event handlers are depended upon so heavily Depends on D9254 Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9255
2019-07-08docs: Fill last missing docs from EO filesXavi Artigas
Some docs have been filled with placeholder text ("TBD") or with preliminary text (marked with //TODO). Having 0 doc warning we can now enable Warnings as Errors in mono, and in Eolian later on.
2019-06-20ecore - efl thread - handle write call mishaps and complainCarsten Haitzler (Rasterman)
fixes warnings too.
2019-06-04efl proc/exe envrion work again - after a break earlier on freebsdCarsten Haitzler (Rasterman)
efl seemingly has been broken on freebsd for a while - environ the symbol does not exist for SHARED LIBS on freebsd (discussin had been had on this already, but i gave up). use dlsym as the escape mechanism so we build on freebsd again.
2019-05-29ecore: add simple logic to generate synthetic string property assembling ↵Cedric BAIL
value of other properties. I have choosen to use ${} as the property marker, but I am open to other suggestion. Let me know if you have other suggestion. This patch also fix recursion on properties changed to properly explore parents dependencies, avoid infinite loop and emit properties changed by added property logic or property text on the Efl.ViewModel. Reviewed-by: Lauro Neto <Lauro Moura <lauromoura@expertisesolutions.com.br>> Differential Revision: https://phab.enlightenment.org/D8755
2019-05-29ecore: enable property reflection support in Efl.CompositeModel.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8754
2019-05-29ecore/timer: fix handling of timer freeze during constructionMike Blumenkrantz
Summary: timer has no loop pointer until it is finalized @fix Depends on D8918 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8947
2019-05-26eolian: rename @warn_unused and its associated APIDaniel Kolesa
@warn_unused in syntax is now called @no_unused - this is because "warning about unused" is a C thing (or rather, an extension to C) and various languages might want to use stricter behavior for this. Its associated API does the reverse now - it lets you query whether being unused is allowed at all. This is to match future behavior of Eolian (once it supports versioning) that will likely reverse it. @feature
2019-05-17bin/efl and ecore: include evil_private.h when appropriateVincent Torri
Test Plan: compilation Reviewers: raster, zmike, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8908
2019-05-10ecore: add Efl.Filter_ModelCedric BAIL
This model provide facility to filter the content of composited model. Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D8797
2019-05-09Ecore_Exe: fix warning on WindowsVincent Torri
Summary: ExitProcess() has not the signature expected by CreateRemoteThread() Test Plan: compilation Reviewers: raster, zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8870
2019-05-09ecore: refactor Efl.CompositeModel to provide child allocation to other ↵Cedric BAIL
internal Model. Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D8796
2019-05-09ecore: property handle allocation error in Efl.CompositeModel.Cedric BAIL
Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D8795
2019-05-09eolian: move from eo_prefix to c_prefixDaniel Kolesa
2019-04-26ecore: properly handle CHILD_ADDED and CHILD_REMOVED from source for ↵Cedric BAIL
Efl.CompositeModel Before this patch we were directly sending this event on the Efl.CompositeModel, but they actually might contain an Efl.Model in the event child field. That Efl.Model wouldn't have been converted before to an Efl.CompositeModel exposing incoherence from the user of the object point of view. This patch fix that behavior. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8661
2019-04-26ecore: use new infrastructure for Efl.CompositeModel to only have one Model ↵Cedric BAIL
object represent its data at any point in time. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8660
2019-04-26ecore: protect efl_model_properties_get from accesing NULL pointer when ↵Cedric BAIL
Model parent is not a Efl.BooleanModel. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8659
2019-04-26ecore: fix efl_model_property_ready_get to actually return the right future ↵Cedric BAIL
when the data is not ready. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8658
2019-04-26ecore: allow multiple Efl.ViewModel of the same source thanks to new ↵Cedric BAIL
infrastructure. Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D8657
2019-04-26ecore: add infrastructure to create children Model once and avoid duplicated ↵Cedric BAIL
view of the same data. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8656
2019-04-23ecore: rely on event instead of creating one Eo object per future that need ↵Cedric BAIL
resolving. This was a terrible oversight, but the point of having a small native type for future was for making them efficient. Still we were using one Eo object for dispatching per future to dispatch new value. I could have gathered all the dispatch with just one object, but at the end we do have one object that notify us of the loop iteration... the loop object! And we have event on that object that we can rely to trigger the dispatching of future without requiring any additional object. So let's do that instead. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8567
2019-04-23efl_core_command_line: Fix resource leakChristopher Michael
Coverity reports that we leak the return from _escape(command) here, so since we have to free the return from _escape, place it in it's own variable that we can call free() on after we are done with it. Fixes CID1399105 @fix Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8688
2019-04-22ecore: add an helper for Efl.Boolean_Model to get all the index with a ↵Cedric BAIL
requested value. Differential Revision: https://phab.enlightenment.org/D8569
2019-04-21ecore: implement reflection for Efl.LoopModel properties.Cedric BAIL
This enable relying on Eo reflection capabilities to expose Efl.Model properties. Should make API nicer to maintain. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8652
2019-04-18ecore: move property string definition to shared headers for ↵Cedric BAIL
Efl.Composite_Model. Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8568
2019-04-15Windows : fix the definition of EAPIVincent Torri
Summary: with autotools, EFL_BUILD was passed to the preprocessor for libraries and binaries, which was wrong. Only libraries must have EFL_BUILD defined. See T7797 for an explanation This also fix EAPI in Ecore_Getopt.g and Efl_UI.h Also note that all the wayland and drm Makefile's have not been touched Test Plan: compilation Reviewers: raster, zmike, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8602
2019-04-02ecore: correctly clean up in ecore_fork_resetMarcel Hollerbach
Summary: after a fork does happen, the new process does not have any self created threads at all. However, _thread_cb can contain suspend calls of ecore_thread_main_loop_begin. _ecore_main_call_flush will then wait in the suspend block for the thread to call ecore_thread_main_loop_end. However, the thread is dead, the end function will never be called. Hence we should ensure that we definitly kill every entry in _thread_cb that has a susped flag on true. This fixes deadlocks while running the testsuites with EIO_MONITOR_POLL=1 Depends on D8526 Reviewers: cedric, segfaultxavi, zmike Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8531
2019-04-02docs: Fix common misspellings in H filesXavi Artigas
Fixed all appearances of words from this list in H files: https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
2019-04-02docs: Fix common misspellings in EO filesXavi Artigas
Fixed all appearances of words from this list in EO files: https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
2019-03-22docs: Add @since 1.22 to all stable classes' EO docsXavi Artigas
Summary: Previous @since tags have already been removed from eo files. Test Plan: Everything builds, but stable classes now have Since tags in the docs. Reviewers: zmike, bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8446
2019-03-20docs: Remove obsolete @since tags from EO filesXavi Artigas
Summary: All legacy @since tags have already moved to the *.legacy.h files. EO files are now devoid of @since tags (except some eldbus still needed for legacy). Upcoming patches will add @since 1.22 to those APIs which come out of beta in this release. APIs marked @beta do not need @since tags. Test Plan: Everything builds, EO docs (like DocFX) have no Since tags. Reviewers: zmike, bu5hm4n, lauromoura, cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8430
2019-03-19efl_io_*: apply new event calling conventionMike Blumenkrantz
Summary: ref T7758 Depends on D8409 Reviewers: cedric, zmike, segfaultxavi Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7758 Differential Revision: https://phab.enlightenment.org/D8410
2019-03-18efl: remove EFL_EO_API_SUPPORT macroDaniel Kolesa
Summary: Since we're now going to be shipping some eo classes as stable, there is no point in keeping the eo api behind a macro, and it should be enabled by default. Another case is beta classes, but those are behind the EFL_BETA_API_SUPPORT guard. This also changes includes around the place where things are clearly broken (such as an included header needing something from another header but that other header being guarded, notably efl_ui_widget.h needing focus manager but focus manager being behind beta in Elementary.h) Reviewers: zmike, cedric, bu5hm4n, stefan_schmidt, segfaultxavi Reviewed By: cedric, segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8322