Commit Graph

226 Commits

Author SHA1 Message Date
Jaime Thomas 22ec9fd53b Add a function to retrieve the timer interval.
SVN revision: 40404
2009-04-26 17:16:33 +00:00
Lars Munch 47840ee7a0 From: Lars Munch <lars@segv.dk>
thx, but you committed rev 1 of the patch. I send out an updated patch
since the function naming did not follow "e" style. Attached patch
renames the functions accordingly. Please apply.



SVN revision: 40322
2009-04-23 07:08:50 +00:00
Carsten Haitzler 7f1bde6cf4 From: lars@segv.dk (Lars Munch)
Hi

This patch adds two new functions, ecore_pipe_close_read and
ecore_pipe_close_write, to ecore_pipe. The purpose it to enable
ecore_pipe to be used together with fork (see example below).

The patch also handles if the read or write end of the pipe closes.



SVN revision: 40305
2009-04-23 01:38:55 +00:00
Vincent Torri 591fd731f1 fix compilation on Windows
SVN revision: 40111
2009-04-16 17:12:40 +00:00
Gustavo Sverzut Barbieri 852c598be4 Be able to change select() function used by main loop.
Patch by Kenneth Christiansen, used to integrate with GLib and other
main loops.



SVN revision: 40110
2009-04-16 15:44:26 +00:00
Carsten Haitzler d38a2a9488 new timer add func - avoids more gettimeofday calls.
SVN revision: 39638
2009-03-23 02:13:50 +00:00
Gustavo Sverzut Barbieri 14243bc1b3 runtime configurable timer precision
One can now configure the maximum acceptable delay to be introduced by
Ecore so possibly more timers will be dispatched together, reducing
wakeups and saving more power.



SVN revision: 37607
2008-11-13 20:42:01 +00:00
Peter Wehrfritz f0129584b5 take the right patch for ecore_pipe. I moved nbytes back to unsigned int, from int. Was there a reason why you changed it to a signed integer? Negative values doesn't make sense for a size value. Anyway, if you really prefer int, I can change it, later.
One possible problem that come to mind, is that some one could del a pipe inside of the handler. That segfaults at the moment. So this should be fixed some time.


SVN revision: 37438
2008-11-03 13:57:53 +00:00
Carsten Haitzler c8731aeaa6 add patch to add a pipe handler for glueing threads to the core main loop via
pipes - makes it save for a thread to send a message to the main loop and not
need lots of thread locks etc.



SVN revision: 37429
2008-11-03 05:42:27 +00:00
Vincent Torri 9b19b7dec4 autotools fixes
* remove useless _DEPENDENCIES variables
 * remove useless files in EXTRA_DIST
 * use -no-undefied directly
 * add some flags when the host is windows ce

make distcheck succeeds on my computer

next step will be to fix the horrible mess in Ecore.h and ecore_private.h


SVN revision: 37406
2008-11-02 09:01:35 +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
doursse 479741fef0 remove ecore_pipe declarations and some trailing spaces
SVN revision: 34672
2008-05-26 05:31:20 +00:00
doursse cc0ca9325e integration of evil in ecore. It's compiling on windows and my ubuntu. The commit is big, please report any problem
SVN revision: 34671
2008-05-26 05:16:34 +00:00
Cedric BAIL 3537f1033a Forgotten declaration.
SVN revision: 34628
2008-05-20 12:37:51 +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 4a3d696dcf cedric's timer freeze code.
SVN revision: 33967
2008-03-09 15:56:17 +00:00
Peter Wehrfritz 3f672adf1b remove stupid semicolons
SVN revision: 33626
2008-01-26 14:41:34 +00:00
Mike Frysinger 184812f289 replace a lot of win32 ifdef hacks with autoconf checks
SVN revision: 33616
2008-01-26 05:40:53 +00:00
Peter Wehrfritz 2c87820492 add ECORE_CALLBACK_RENEW and ECORE_CALLBACK_CANCEL
SVN revision: 33612
2008-01-25 18:28:16 +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
Brett Nash 06e02b3f6b Vincent Torri pointed out that char bitfields are undefined in C89... and he
is correct.


SVN revision: 32160
2007-10-25 05:55:07 +00:00
Brett Nash 3a4c71f293 Don't use unportable 1-bit bitfields.
SVN revision: 32159
2007-10-25 05:26:03 +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
Michael Jennings feabcdfe64 Thu Mar 15 12:20:27 2007 Michael Jennings (mej)
Re-apply the previously reverted patch and add (I think) the correct
fix for ecore-config.  I haven't tested this extensively, but edje
builds okay with it, so hopefully it's right.
----------------------------------------------------------------------


SVN revision: 28755
2007-03-15 22:21:28 +00:00
Michael Jennings 3edb26cf60 Wed Mar 14 21:57:38 2007 Michael Jennings (mej)
Reverting changes; kindly test patches BEFORE applying them.
----------------------------------------------------------------------


SVN revision: 28732
2007-03-15 07:57:43 +00:00
doursse d9fa45fe5f use the correct Windows macro when compiling with microsoft compiler, and not mingw/cygwin
SVN revision: 28727
2007-03-15 01:01:10 +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 53024d2603 Clarification of the documentation.
SVN revision: 21930
2006-04-07 13:01:55 +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 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 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 aa1b75baec Dammit.
SVN revision: 19853
2006-01-16 09:52:56 +00:00
David Walter Seikel bfa592058a Beginnings of the feature previously known as fork'n'bitch. Now it will be
a bit more general purpose.


SVN revision: 19852
2006-01-16 09:47:59 +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 5e78588f50 Damn typos. Well, at least I didn't break cvs.
SVN revision: 19693
2006-01-10 12:26:31 +00:00
David Walter Seikel c4cf8905c4 Preparation for adding stderr to fork'n'pipe. The rest cames later tonight.
SVN revision: 19692
2006-01-10 11:15:38 +00:00
Carsten Haitzler a8ac626eb0 include changes
SVN revision: 19676
2006-01-09 13:36:22 +00:00
David Walter Seikel a62dc114c7 Consistancy rules, 'mkay.
SVN revision: 19531
2006-01-04 20:53:07 +00:00
David Walter Seikel e1adc2f81b Bugger, thought I got rid of that a long time ago.
SVN revision: 19530
2006-01-04 20:36:56 +00:00
David Walter Seikel ad6a5a6c70 The beginnings of an effort to make ecore_exe fork'n'pipe more consistant
with ecore_con and ecore_ipc.  Probably best to have all IPC methods work
the same way.


SVN revision: 19527
2006-01-04 20:28:12 +00:00
David Walter Seikel 8bb13800f8 * exe exit event delay method changed.
* Added method to close an exe's stdin in a (probably) vain attempt to convince exe to exit.
* Other debugging shit.


SVN revision: 19430
2005-12-30 19:17:21 +00:00
Carsten Haitzler 7554f8ee36 actually make symbol hiding work!
SVN revision: 19314
2005-12-27 17:17:31 +00:00
David Walter Seikel cdebf436cf Fixup the FIXME's.
SVN revision: 19283
2005-12-24 12:22:47 +00:00
David Walter Seikel 5ed307efed Document that the lines array is NULL terminated.
SVN revision: 19062
2005-12-16 03:33:52 +00:00
David Walter Seikel a4f340d074 Preperation for line buffering, coming soon. Just gotta spend the rest of the day testing it.
SVN revision: 19056
2005-12-16 01:11:24 +00:00
David Walter Seikel a2bc838d20 Getting ready for fork'n'pipe.
SVN revision: 18399
2005-11-09 13:59:03 +00:00
Carsten Haitzler 909a56813f stubs and comments for implementing pipes to child wrappers
SVN revision: 17876
2005-10-24 08:53:50 +00:00
Carsten Haitzler ea6d0fb19c allow tagging of exe's
SVN revision: 17032
2005-09-28 13:09:09 +00:00
sebastid 24fac015c6 Export TRUE/FALSE
SVN revision: 16620
2005-09-06 19:26:19 +00:00
sebastid d758ca86bb Header cleanup. Don't include unneeded headers in system lib header.
SVN revision: 16550
2005-09-05 10:17:08 +00:00
Carsten Haitzler 67ce5e1c1f move evas to private - it should be removed entirely though :) c++ thingies...
SVN revision: 14205
2005-04-15 01:22:46 +00:00
tsauerbeck 421719f1d2 Ecore_Fd_Handler: added a 'prepare' callback, that is called just before the main loop does its select() run for the FD handlers
SVN revision: 13957
2005-03-28 08:55:59 +00:00
sebastid de2a380ce9 Change timer interval.
SVN revision: 13461
2005-02-22 12:39:50 +00:00
Carsten Haitzler feb5571092 hidden symbol support
SVN revision: 12252
2004-11-25 05:18:31 +00:00
tsauerbeck 288842f199 added ABS and CLAMP macros
SVN revision: 12139
2004-11-03 19:23:18 +00:00
tsauerbeck f83c81433d mingw portability
SVN revision: 11926
2004-10-20 17:51:29 +00:00
ncn fa6db0a70e Ecore_Con module documentation, timer functions cleaned up, Time functions linked into Ecore.h docs.
SVN revision: 11704
2004-09-23 04:58:16 +00:00
ncn 0d31f7f17b Cleaned up the FD Handler stuff, grouped it, linked it to the Ecore.h file description.
SVN revision: 11703
2004-09-23 04:05:13 +00:00
ncn 4dc39d4dfa Some restructuring, clean up, grouping, explaining, etc. Getting there...
SVN revision: 11696
2004-09-22 08:17:15 +00:00
ncn 29474a9d15 Some cleanup, grouped functions, about to transfer more info into the header file descriptions.
SVN revision: 11693
2004-09-22 04:25:35 +00:00
Carsten Haitzler 5ef8dedf2e ecore animators... IN!
SVN revision: 11520
2004-09-05 08:00:10 +00:00
Carsten Haitzler ab01bcabdb hey guys! can u rememebr to add yourselves to AUTHORS?
SVN revision: 9978
2004-04-30 03:10:17 +00:00
Carsten Haitzler 38636f3cb1 fix a bug in ecore_ipc - damn.. how could that stay there? :)
and err - clean up some indenting etc...

trill - going to put n SSL server support too (ie ecore can act as SSL server
too) ?


SVN revision: 9720
2004-04-14 08:51:19 +00:00
tsauerbeck 087eb83658 added support for realtime signals. all signal event structs now have a siginfo_t member (this might replace the unused void *ext_data). sa_sigaction is now used instead of sa_handler
SVN revision: 9591
2004-04-04 19:53:19 +00:00
tsauerbeck 34e3b8f092 changed ECORE_MIN /MAX to MIN/MAX
SVN revision: 9399
2004-03-19 18:40:09 +00:00
xcomputerman 1034f13443 Merge Ewd code into Ecore.
The new functions (Ecore_Data.h) have not been tested yet, be warned! :)


SVN revision: 9384
2004-03-18 05:29:54 +00:00
Carsten Haitzler 5a4428d1b2 debugging stuff to help profile an application using evas/ecore etc. to see
where (rougly) time is spent (as it runs - dynamically). quite useful if your
code is dropping frames to keep animation going - but u'd like to know when
exactly its happening so you can lean down the graphics design or the code in
those situations.


SVN revision: 9379
2004-03-17 05:14:13 +00:00
xcomputerman 51ffb9d7ec Throw in a couple macros
SVN revision: 9154
2004-02-29 05:08:26 +00:00
tsauerbeck d245bdc21c Added ECORE_FD_ERROR to go w/ ECORE_FD_READ AND _WRITE. I couldn't trigger the error 'event' though, which makes me wonder whether i missed something
SVN revision: 9096
2004-02-24 19:45:01 +00:00
tsauerbeck 60a47ef2a8 add ecore refcounting, so ewl doesn't break apps that have their own ecore main loop
SVN revision: 8781
2004-02-03 19:49:46 +00:00
Carsten Haitzler a075b4b88c ALSO report children than exited due to signals... and why...
SVN revision: 7548
2003-10-12 05:48:34 +00:00
Carsten Haitzler a5c2425084 damn you salizar! damn you!
errr. i mean. ecore moves to HEAD!


SVN revision: 7475
2003-09-23 08:09:32 +00:00