Vincent Torri
45bcc87e76
eio: fix correct stat structure on Windows 32 bits
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-08-14 10:17:24 -07:00
Al Poole
169a08c03a
efreetd: BSD optimizations.
...
Summary: Related to ticket T5475.
Reviewers: raster, cedric
Subscribers: jpeg, cedric, raster
Differential Revision: https://phab.enlightenment.org/D4865
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-05-10 12:26:08 -07:00
Al Poole
7ee68cb4e2
eio: improve Kevent (FreeBSD et. al)
...
Summary: Adds initial support for file/directory creation and deletion detection.
Reviewers: raster, cedric
Reviewed By: cedric
Subscribers: raster, jpeg
Differential Revision: https://phab.enlightenment.org/D4811
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-04-28 10:17:17 -07:00
Carsten Haitzler
24b77d8ed9
eio monitor - remove unused vars and fix warning
2017-04-21 16:39:06 +09:00
Cedric BAIL
9bd80d542c
eio: use new API eina_file_close_on_exec.
2017-04-18 16:56:40 -07:00
Cedric BAIL
aef1ee96e8
eio: avoid crash during shutdown due to Ecore_Event queue.
2017-03-09 16:17:58 -08:00
Felipe Magno de Almeida
a1f2db255b
cxx: Modify how to generate C++ headers and allow cyclic dependencies
...
Allow cyclic dependencies in generated C++ headers by changing order
of includes and creating forward declarations.
2017-01-18 22:47:04 -02:00
Daniel Kolesa
192ea2c9ad
eio, edje: use new property impl syntax
2016-12-27 17:47:00 +01:00
Ivan Furs
3df48e281e
eio: Correct deletion backend
...
Summary:
This patch fixes the bug Fileselector.
When backend is deleted need to remove event handler from the list.
This commit adds ecore_main_win32_handler_del for correct clean
handlers for cases when monitor backend was created by
eio_monitor_backend_add(Windows method) or eio_monitor_fallback_add. To
remove them needed to use eio_monitor_backend_del(Windows method) or
eio_monitor_fallback_del. To identify the method which should free
backend was added flag monitor->fallback instead of using static
_eio_monitor_win32_native. This solves conflicts if 2 monitors was
created and the second monitor changed the _eio_monitor_win32_native
variable value. When 1 monitor removed it will be deleted correctly .
@fix
Reviewers: NikaWhite
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4518
2016-12-27 16:20:59 +02:00
Jee-Yong Um
f1ab136abc
doxygen: remove reference warnings.
...
Reviewers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4503
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-12-20 16:39:30 -08:00
Ivan Furs
1c0b3668e1
Eio_monitor: support native monitor for Win32 (T4978)
...
Test Plan:
eio_monitor_backend_add() and eio_monitor_fallback_add use different structures
**eio_monitor_backend_add() **
struct _Eio_Monitor_Backend
{
Eio_Monitor *parent;
Eio_Monitor_Win32_Watcher *watcher_file;
Eio_Monitor_Win32_Watcher *watcher_dir;
Eio_Monitor_Win32_Watcher *watcher_parent;
};
**eio_monitor_fallback_add()**
struct _Eio_Monitor_Backend
{
Eio_Monitor *parent;
Eina_Stat self;
Eina_Hash *children;
Ecore_Timer *timer;
Ecore_Idler *idler;
Ecore_Thread *work;
int version;
Eina_Bool delete_me : 1;
Eina_Bool initialised : 1;
Eina_Bool destroyed : 1;
};
therefore, an error occurs
**void eio_monitor_backend_del**(Eio_Monitor *monitor)
{
if (!_eio_monitor_win32_native) <------_eio_monitor_win32_native is EINA_TRUE
{
eio_monitor_fallback_del(monitor); <------ignored------
return; <------ignored------
}
_eio_monitor_win32_watcher_free(monitor->backend->watcher_parent);
_eio_monitor_win32_watcher_free(monitor->backend->watcher_dir);
_eio_monitor_win32_watcher_free(monitor->backend->watcher_file);
free(monitor->backend);
monitor->backend = NULL;
}
Reviewers: raster, vtorri, an.kroitor, jpeg, reutskiy.v.v, FurryMyad, cedric
Reviewed By: cedric
Subscribers: vtorri, artem.popov, cedric, jpeg
Tags: #windows, #efl
Differential Revision: https://phab.enlightenment.org/D4492
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-12-16 15:27:14 -08:00
Cedric BAIL
9393560178
eio: check error case for eina_value_get.
...
CID 1356609
2016-12-16 14:10:58 -08:00
Carsten Haitzler
2de9f552b9
eio - have a smaller mempool as i can see 270k of stuff hanging about
...
eio seems to consume memory even when not in active use. this saves
most of 270k even when no longer needed. the mempool just keeps stuff
around pretty much forever. also the memory size limit doesn't work at
asll if yous set it to something other than -1. it just locks eio up.
@optimize
2016-12-03 18:01:53 +09:00
Jee-Yong Um
e037f30be4
efl.io.manager: fix eo types and indent
...
Reviewers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4413
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-11-28 11:35:27 -08:00
Stefan Schmidt
124effc524
docs: eio: finish up missing eo file docs in eio
2016-11-11 09:15:24 +01:00
Stefan Schmidt
a670418431
docs: efl_io: add missing docs for efl_io_manager
2016-11-07 15:53:35 +01:00
Daniel Kolesa
a8f240e10d
ecore_audio, eio eo: remove pointers
2016-11-04 17:14:30 +01:00
Stefan Schmidt
4a66bd14b7
docs: document all missing type defines in our eo files
...
With this commit we reach 100% alias doc coverage for our eo files.
2016-11-03 11:57:40 +01:00
Vitor Sousa
9f2270804b
eio model: remove useless efreet_mime_type_get call
2016-10-28 21:21:57 -02:00
Stefan Schmidt
0fd32899ec
docs: eio: document missing structs
2016-10-27 18:22:42 +02:00
Cedric Bail
fb8d139ad0
eio: fetch mime type asynchronously.
2016-10-25 16:54:55 -07:00
Jean-Philippe Andre
7f6f282210
Efl.Loop.User: Use prefix to rename efl_loop_user_loop_get
...
efl_loop_user_loop_get is idiotic. efl_loop_get should be good enough.
2016-10-06 12:24:59 +09:00
Jean-Philippe Andre
4e811bed17
eio_model: Provide main loop even without parent
...
An eio model (and I believe most other models as well, in fact)
require a Efl.Loop.User as parent in order for efl future/promises
to work. This adds a fallback code directly inside eio model. The
alternative was to parent and efl_del all models in fileselector.
See T4686
2016-10-06 09:43:19 +09:00
Al Poole
72125bd8c3
eio - put in fix by disabling some fallback code
...
as per https://phab.enlightenment.org/T4619
fixes 4619
@fix
2016-10-04 15:05:58 +09:00
Felipe Magno de Almeida
1a2014a122
efl: Update Efl.Model to use new Efl_Promise and Efl_Future
...
Replaced all Eina_Promise_Owner and Eina_Promise with Efl_Promise and
Efl_Future.
2016-09-29 13:12:27 -03:00
Vitor Sousa
87fec80413
eio model: use empty mime type when efreet is unable to determine it
...
FIX T4502
@fix
2016-09-23 13:21:55 -03:00
Cedric BAIL
59a77b3315
eio: properly track destruction of all Eet eio request.
...
@fix T4550
2016-09-12 16:19:10 -07:00
Cedric BAIL
bd362b13d6
efl: add documentation and last cleanup of the API.
2016-09-08 15:16:43 -07:00
Cedric BAIL
0c067fb62f
eio: implement efl_io_manager_xattr_ls
2016-09-08 15:16:43 -07:00
Cedric BAIL
c6e145da2d
eio: add an internal function for getting xattr in bulk.
2016-09-08 15:16:43 -07:00
Cedric BAIL
5579d2f5cd
eio: make xattr list packed for better performance.
2016-09-08 15:16:43 -07:00
Cedric BAIL
d7fbd6f13e
eio: fix allocation in eio_dir to reuse common safer infra.
2016-09-08 15:16:43 -07:00
Cedric Bail
52c63190d5
eio: rework efl_io_manager to use efl_future.
2016-09-08 15:16:23 -07:00
Cedric Bail
11fe9b8cd9
eio: add internal function able to build array instead of triggering a callback per files.
2016-09-08 14:58:06 -07:00
Cedric Bail
d26a0a2f70
eio: track length of resulting operation to be reported by futures.
2016-09-08 14:58:06 -07:00
Al Poole
a19f730137
eio: fix kevent monitor to not SIGBUS.
2016-09-07 16:41:59 -07:00
Tom Hacohen
9c779dca90
Rename efl_self to efl_added
...
It has been discussed on the ML (thread: "[RFC] rename efl_self") and
IRC, and has been decided we should rename it to this in order to avoid
confusion with the already established meaning of self which is very
similar to what we were using it for, but didn't have complete overlap.
Kudos to Marcel Hollerbach for initiating the discussion and
fighting for it until he convinced a significant mass. :)
This commit breaks API, and depending on compiler potentially ABI.
@feature
2016-09-05 16:59:56 +01:00
Vitor Sousa
f02ff462e7
efl callbacks: update some events calls to no longer trigger legacy callbacks
2016-08-30 13:59:59 -03:00
Vitor Sousa
8356b16a49
Efl Object: remove legacy callback calls from event_callback_call
...
Efl.Object.event_callback_call no longer calls legacy smart callbacks;
calling only event callbacks registered with the given event description
pointer.
Create the method Efl.Object.event_callback_legacy_call to inherit the old
behavior from Efl.Object.event_callback_call, calling both Efl.Object events
and legacy smart callbacks.
Update all other files accordingly in order to still supply legacy
callbacks while they are necessary.
2016-08-26 15:45:07 -03:00
Tom Hacohen
e65aae994e
Eo: Finish the renaming of Eo to the EFL.
...
This renames all the rest of the API to the EFL namespace except for
Eo_Event that will follow soon.
Obviously breaks both API and ABI.
2016-08-15 15:07:42 +01:00
Tom Hacohen
c662934be8
Change the EFL to follow the new Eo rename.
2016-08-11 17:04:43 +01:00
Stephen Houston
31f351ae4e
Eio: Update my email address.
2016-08-05 20:33:27 -05:00
Cedric BAIL
dd1d3f0d2d
autotools: since it has been broken for some times and nobody noticed, let's remove per directory support.
2016-08-01 13:36:47 -07:00
Cedric Bail
57226d86ff
eio: handle failure due to lack of access right.
2016-07-15 17:07:49 -07:00
Cedric Bail
adff89dfc0
eio: make it possible to force fallback monitor for testing purpose.
2016-07-15 17:07:49 -07:00
Cedric Bail
e93d6f90db
eio: avoid access after death of eio handler due to inotify triggering IN_IGNORED event.
2016-07-15 17:07:49 -07:00
Cedric Bail
bf369ba661
eio: cleanup thread pointer on thread finish.
2016-07-15 17:07:49 -07:00
Carsten Haitzler
e3b6b74aa6
eio model - fix leak found by coverity
...
fix CID 1355012
2016-07-08 18:15:05 +09:00
Cedric BAIL
b047bf7f64
eio: register one Efl_Io_Manager by default on the main loop at init time.
2016-06-22 13:19:13 -07:00
Cedric BAIL
10aadafcfd
eio: rename eio_job to efl_io_manager.
...
There is still a lot of work to do in this API to make it efficient and
stable. Will try to get at it before 1.18 release.
2016-06-22 13:19:13 -07:00