Commit Graph

81 Commits

Author SHA1 Message Date
Vincent Torri ed3ac88827 Add data and error events in ecore_exe_win32.c.
There are still some problems with the win32 select loop, though

SVN revision: 44229
2009-12-06 19:25:48 +00:00
Rafael Antognolli 22e44c2b3b ecore_exe_send: Someone probably missed the const.
SVN revision: 44091
2009-12-01 13:33:05 +00:00
Vincent Torri e59c99485c formatting
SVN revision: 43111
2009-10-16 08:29:55 +00:00
Cedric BAIL 8e392a0742 * ecore: Remove user of Ecore_List2 from ecore events.
SVN revision: 41070
2009-06-17 11:39:37 +00:00
Massimiliano Calamelli 80d145c896 NetBSD requires <sys/resource.h>
SVN revision: 40299
2009-04-22 23:48:49 +00:00
Vincent Torri 36bbb31389 Fix compilation on OpenBSD (ticket #252). Patch by eumel
SVN revision: 39625
2009-03-22 13:30:52 +00:00
Eric Schuele 0c8c30bddc FreeBSD requires these includes.
SVN revision: 38889
2009-02-01 15:02:36 +00:00
Vincent Torri e18508b701 remove a bit the mess n ecore. It's just the first patch...
* add vim header
 * include config.h when necessary
 * fix the order of some include
 * move the standard header in ecore_private.h to the source files

I have recompiled all the efl and e17, and e17 seems to work fine with these changes.
If you encounter problems with that commit, let me know.


SVN revision: 38864
2009-01-31 18:33:39 +00:00
Vincent Torri b1f46fb7e8 remove trailing spaces
SVN revision: 37851
2008-11-29 11:23:17 +00:00
Carsten Haitzler b2edd2d7d6 new ecore_loop_time_get() call. also priority setting for spawning sub-procs
SVN revision: 37389
2008-11-02 01:29:08 +00:00
Carsten Haitzler 98623a9077 add new ecore_Exe control calls (interrupt and quit) and dont ertror dialog
on all exits of apps (sigint/quit/.term can be ignored i think).


SVN revision: 35246
2008-07-29 22:07:19 +00:00
Carsten Haitzler 3dedc3559e allow to have sub-rpocessed controlled by parent if parent dies/segvs/kill
-9'd , ecore_exe'd children die too.


SVN revision: 33974
2008-03-10 06:44:32 +00:00
Carsten Haitzler c1441e1c3a e:
1. configure/build changes to allow cross-compiling painlessly
2. pager module namespace changes - this was still dirty afdter the namespace
cleanup, so clean it up
3. add a powersave subsystem - doesnt have an "automatic" way to turn on and
off right now, this i think is best provided by modules (that do things like
monitor acpi status's (eg close lid of laptop), AC power status etc. etc.
this allows e to nicely defer "power" expensive actions to avoid disk
spinups etc.
4. move to use the new ecore poller system  - discussed long ago as part of
power management/saving issues. now it exists
5. add a canvas idle flush call that helsp cope with the new shm greedy
software x11 engine stuff
6. use the new powersave subsystem where appropriate
7. fix non-zeroed/initted memory access in e_fm_main
8. fix mem leak for e menus
9. remove ipc handlers for changed/removed config values
10. use animaotr not timer for menu scrolls - then menu scrolls obey the fps
config
11. fix up timer/poll happienss of cursor idle stuff
12. remove avoid damage from popups for now - causing problems
13. change battery and temp readouts to b e shorter so they fit
14. pager can emit signals on focus change for mini-windows now
15. temperature module now uses a slave process and uses stdin/out to talk to
it and get output - this makes e smoother as in my expereicne i found getting
the temp on my laptop actually took like 200ms so e "hang" for 200ms while
reading the acpi files - so now the subprocess does it and just writesa back
to e when it gets it.

ecore:
1. add ecore_pollers. see the documentation on them in doxygen comments :)
2. fix timers to only go off when they have to - bug there that made e's
select time out a LOT more than it needed to. defensive coding hid the
problem. now fixed. e should be much more power friendly now.
3. formatting/niceness in ecore_exe stuff
4. some comments on comments with SIGIO ideas vs. select
5. add call to be able to add an idle enterer at the start of the list of
them, not just the end (as has been the default)
6. fix ecore_evas to support auto evas idler calls after 0.5 secs of idle in
all canvases - and to do it right
7. if argb destination - set the shape EVENT shape (to mask out events in
transparent regions much like shape does withotu translucency)
8. in ecore_x add support for the event shape

evas:
1. fix cache to work properly and not just always fill up (as it seemed to
like to think cahce useage dropped below 0 when it didnt and thus just
over-fill)
2. software x11 engine now ONLY uses shm segments - no ximages over the
socket. this ximage hack was there to avoid the 2 round trips involved in
setting up an shm image - now i mitigated that wih an shm image cache pool.
it keeps shm images around and repurposes them for new update regions if
appropriate. this means many fewer shm creates (about 1/100th the number) and
since we recycle the memory less 0 memory page filling by the kernel - in the
end, i recorded about a 10-20% speedup over the old software x11 engine.
simple tests i have seen up to 120% speedups. idle flush now does something -
it frees all the cached shm segments. it has a hard-coded limit of 4mb worth
of shm segments (or 32 segments - whichever comes first) to keep around. once
can never complain much about speedups methinks :). also evas will defer sync
until the NEXT frame is written - this means evas can calculate the next
frame of data while x dma's/copies the images to the screen at the same time
(if you hve a dual core or multi-cpu machnike or your xserver is able to use
DMA to copy image data to the screen/video ram then this should see a decent
speedup).


SVN revision: 33448
2008-01-11 07:33:57 +00:00
doursse 50432552c8 add windows support to ecore. ecore_evas is ported too (directdraw and direct3d. No opengl yet). It needs to be tested a lot, though. Remove some trailing spaces here and there. Replace WIN32 with _WIN32
SVN revision: 31513
2007-08-26 11:17:21 +00:00
doursse 0199c38044 make ecore module compilable on Windows(tm)
SVN revision: 30605
2007-07-05 09:51:09 +00:00
David Walter Seikel 97970e262f A good catch by devilhorns.
SVN revision: 27257
2006-11-27 21:33:01 +00:00
Kim Woelders 91e6ee5f66 Add const, fix warnings.
SVN revision: 26975
2006-11-05 16:42:30 +00:00
Carsten Haitzler 5f5f1984e0 leak--
ecore_exe leaked doosmdat clock dead data.
ecore_evas loaked netwm state data


SVN revision: 24293
2006-07-29 10:05:13 +00:00
Carsten Haitzler 4e25b857f5 nuke fd leak on ecore_exe pipes! :)
SVN revision: 23537
2006-06-22 19:49:00 +00:00
Horms 90cf4880c6 typo: start_lines->end_lines
SVN revision: 22476
2006-05-07 06:14:03 +00:00
chaos 7f7c51d47c * Patch for ecore_exe from Victor Kojouharov
SVN revision: 22131
2006-04-15 12:44:31 +00:00
David Walter Seikel c4b63aa74a Fix a segie. Thanks to CodeWarrior for helping to find it.
SVN revision: 21929
2006-04-07 12:44:36 +00:00
David Walter Seikel 533774b101 TODO++
SVN revision: 21886
2006-04-06 01:16:02 +00:00
Carsten Haitzler 0dc5cb5412 formatting
SVN revision: 21882
2006-04-05 23:45:59 +00:00
David Walter Seikel 97d9523a28 New flag to allow forcing the use of /bin/sh to execute the command.
SVN revision: 21861
2006-04-05 18:05:16 +00:00
David Walter Seikel 224b968219 Formatting.
SVN revision: 20861
2006-03-01 05:05:58 +00:00
David Walter Seikel e7fa0baa71 Brain fart--
SVN revision: 20513
2006-02-16 05:31:21 +00:00
Christopher Michael d214a5ad7e SVN revision: 788
SVN revision: 20472
2006-02-15 04:55:14 +00:00
David Walter Seikel 52579f1283 I thought the child exe was responsible for closing it's own end of the
pipe, guess I was wrong.  Thanks to raster for continueing to pester me.


SVN revision: 20455
2006-02-14 12:54:26 +00:00
David Walter Seikel 048a266571 Be paranoid, don't rely on dup2 to close for us. As a bonus, we get error
messages if there's a problem closing them.


SVN revision: 20325
2006-02-07 06:05:58 +00:00
David Walter Seikel f8d0bcb617 debug--
They are only commented out, coz there might still be a problem there.  On
the other hand, it might just be KDE strangeness.


SVN revision: 20256
2006-02-03 23:01:02 +00:00
David Walter Seikel 382628e412 Forgot to change the prototype. Still scratching my head about why it
complied here.

Good catch jcwong.


SVN revision: 20007
2006-01-24 15:25:26 +00:00
David Walter Seikel 33d8ec9653 When I cloned the pipe read stuff to make pipe error, I didn't realise that
ECORE_FD_ERROR is not the stderr equivilant of ECORE_FD_READ.  I just cloned,
and changed READ's to ERROR's.

imho ECORE_FD_ERROR is missnamed, and should at least be better documented.
See man select_tut, especially the entry on exceptfds.


SVN revision: 20006
2006-01-24 13:58:18 +00:00
David Walter Seikel dc78ff4607 A little bit more planning.
SVN revision: 19928
2006-01-20 15:52:12 +00:00
David Walter Seikel a92aef0a6b Better documentation.
SVN revision: 19916
2006-01-20 04:48:31 +00:00
David Walter Seikel 96b9fe94e5 Fork'n'bitch is now operational.
TODO -
* Actually make the limits mean something.
* Clean up all that allocing and copying.  I'm sure I could make that better.


SVN revision: 19915
2006-01-20 04:42:35 +00:00
David Walter Seikel 29b4630756 Seperate the data event code from the fd handler code in preparation for
fork'n'bitch.


SVN revision: 19876
2006-01-17 11:33:39 +00:00
David Walter Seikel 0f5da34bce Commit API now, write code later.
Actually, this may turn into a can of worms, so comments would be useful.
Search for "can of worms" in ecore_exe.c for some commentary.  Personally,
I worry that we may have gone overboard, polling is bad 'mkay.


SVN revision: 19859
2006-01-16 13:21:52 +00:00
David Walter Seikel e754564803 Refactoring the exe exit stuff.
SVN revision: 19844
2006-01-16 03:20:36 +00:00
David Walter Seikel e109255415 More ecore_exe naming break'n'fix. Should be all done now.
SVN revision: 19832
2006-01-15 11:27:19 +00:00
David Walter Seikel 8ff26002a5 * ecore_exe events now get allocated just like other events.
* added ECORE_EXE_EVENT_ADD and support code.


SVN revision: 19758
2006-01-13 13:18:36 +00:00
David Walter Seikel d08ccf6fa6 Minor API breakage and fixage.
SVN revision: 19757
2006-01-13 06:38:44 +00:00
David Walter Seikel cf29de295c * Preperation before making the exe events consistant.
* Inlining a function that is only used once.
* More comments.


SVN revision: 19756
2006-01-13 04:31:41 +00:00
David Walter Seikel 2bc2ef0db6 Merged the two almost identical fd handlers.
SVN revision: 19703
2006-01-10 18:36:19 +00:00
David Walter Seikel 20a8865152 * fork'n'pipe now has stderr support.
* both exe run functions now use the same code.
* don't allocate pipes that wan't be used.  This made the code much cleaner.
* track and free the exe timers as needed.

E still reports a naughty null timer free at shutdown time, but I don't
think its in ecore_exe.  I'll valgrind it later.

The error fd handler is curently an identical copy of the read fd handler,
with only the names changed.  That's a big slab of code that is duplicated.
I'll merge the two into something generic next.

raster also mentioned that say the first ten lines or so of stderr should
be thrown into a dialog and shown to the user.  I don't know if there is a
way to do that from ecore, or if the user of ecore_exe has to do that
themselves.  The stderr support does line buffered mode just like the read
support, but has not been tested yet.  I'll test properly after the merge.


SVN revision: 19700
2006-01-10 16:46:07 +00:00
Carsten Haitzler dcd2b68e49 indenting...
SVN revision: 19689
2006-01-10 08:44:15 +00:00
Carsten Haitzler 12aa35dd99 fix up some warnings
SVN revision: 19563
2006-01-06 17:58:12 +00:00
Carsten Haitzler 5ba10bb385 symbol hiding fixes
SVN revision: 19556
2006-01-06 13:56:47 +00:00
David Walter Seikel a62dc114c7 Consistancy rules, 'mkay.
SVN revision: 19531
2006-01-04 20:53:07 +00:00
David Walter Seikel 2369a9c01e Damn typo.
SVN revision: 19529
2006-01-04 20:33:58 +00:00