Commit Graph

101 Commits

Author SHA1 Message Date
Vincent Torri a17c58d0b0 improve doc layout
SVN revision: 53509
2010-10-17 07:03:28 +00:00
Iván Briano 1277d5b855 Dead code bye bye
SVN revision: 53497
2010-10-16 21:32:08 +00:00
Vincent Torri 16263f52cc tab--
SVN revision: 52918
2010-09-30 06:09:20 +00:00
Lucas De Marchi be1b6d32ef Fix common misspellings
Following misspellings were fixed:

alledgedly->allegedly
cant->can't
carefull->careful
consistant->consistent
currenly->currently
dependancy->dependency
descripters->descriptors
doesnt->doesn't
dosen't->doesn't
existant->existent
exmaple->example
inbetween->between
independant->independent
isnt->isn't
mroe->more
neccessary->necessary
occured->occurred
occurence->occurrence
parrallel->parallel
particualr->particular
preceeding->preceding
recieved->received
recieves->receives
seperate->separate
substraction->subtraction
succesfully->successfully
successfull->successful
sucess->success
supress->suppress
usefull->useful
witht->with



SVN revision: 51986
2010-09-08 11:23:42 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Lucas De Marchi 6b5d5eab73 Do not compare pointers to 0
SVN revision: 50973
2010-08-10 19:24:38 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Mike Blumenkrantz a475971aaa convert all function pointers to typedefs, add doxy stubs for typedefs.
note: I've chosen to consolidate typedefs where possible to simplify things

my time is limited this week, so feel free to expand on the doxy stubs I've added if you know what they do


SVN revision: 50803
2010-08-04 02:55:20 +00:00
Cedric BAIL fbe9064310 * ecore: Ecore callback really should return Eina_Bool.
SVN revision: 49829
2010-06-24 16:15:56 +00:00
Gustavo Sverzut Barbieri 18b1bf46d7 move bitfield booleans to Eina_Bool.
using one bit with integers will just have room for 0 and -1, not 0 and 1.



SVN revision: 46412
2010-02-23 22:49:15 +00:00
Vincent Torri f9f9b48c64 On Windows, ecore_exe_auto_limits_set() does nothing
SVN revision: 46331
2010-02-20 09:35:48 +00:00
Vincent Torri 5254d1a02e Windows: Add priority support when a child process is created
and add documentation for that.

SVN revision: 46330
2010-02-20 09:20:04 +00:00
Christopher Michael ecb57ac1b8 Fix nasty formatting.
SVN revision: 44988
2010-01-08 19:49:05 +00:00
Gustavo Sverzut Barbieri 65a53edd34 Ecore_Exe improvements.
* add const to getters.

  * add ecore_exe_callback_pre_free_set(), enabling bindings to free
    their resources once the handle is destroyed.

  * fix some possible segv from not checking magic

  * check conditions before ecore_exe_send() does its work



SVN revision: 44916
2010-01-06 05:16:59 +00:00
Vincent Torri a4b0afb1e4 * move structures from ecore_private.h to the corresponding source files
* add 2 internal ecore_exe functions as ecore_signak.c uses Ecore_Exe members
   no test is done in those 2 functions
 * remove standard headers from ecore_private.h



SVN revision: 44862
2010-01-03 21:55:50 +00:00
Sebastian Dransfeld 0a9456ccf7 Remove duplication from ecore headers
Clean up Ecore.h and ecore_private.h

SVN revision: 44664
2009-12-22 21:15:12 +00:00
Cedric BAIL d8e1895350 * ecore: Use eina_log.
Patch from Mathieu Taillefumier.


SVN revision: 44637
2009-12-21 17:32:19 +00:00
Sebastian Dransfeld 0ac67f75e7 Remove unused variable
SVN revision: 44258
2009-12-07 21:04:02 +00:00
Sebastian Dransfeld 73cde2ffa2 Make clang happy
SVN revision: 44257
2009-12-07 21:01:26 +00:00
Christopher Michael 254915c86e Remove a bunch of wasted white space.
SVN revision: 44235
2009-12-07 03:06:50 +00:00
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