Carsten Haitzler
31458bd882
patch from mike - fix epoll on fork thing.
...
This is an attempt to fix the epoll/fork() issue reported to me where
we end up with a single epoll fd shared between two processes after a
fork() in E.
I've tested with elementary test in epoll and non-epoll combinations,
and all appears to be well. Please check it solves the issue you saw,
and reformat the code as you see fit... ;-)
SVN revision: 53670
2010-10-20 14:15:56 +00:00
Carsten Haitzler
9817dfe5a5
note -= we may leak display struct here...
...
SVN revision: 53668
2010-10-20 14:10:55 +00:00
Iván Briano
02dced207e
Revert the changes on ecore_x, seems not needed and break composite
...
SVN revision: 53617
2010-10-19 13:56:17 +00:00
Iván Briano
bab8d2d0cd
Use event_win when it exists to match source of events
...
I don't expect anything to break, but if mouse or keyboard events suddenly
disappear, feel free to revert this patch while blaming cedric or discomfitor.
SVN revision: 53583
2010-10-18 21:50:41 +00:00
Sebastian Dransfeld
38f1292466
Check for gnutls >= 2.6
...
SVN revision: 53578
2010-10-18 18:28:11 +00:00
Cedric BAIL
515f06978b
* ecore: time to cleanup ecore_con_url time.
...
Patch by Patch by Raphael Kubo da Costa <kubo@profusion.mobi>
As discussed on the development mailing list, we should accept a
double instead of a time_t for consistency with the rest of the API.
Some apidox has been added too, and as a result
ECORE_CON_URL_TIME_LASTMOD has been removed, since it does not make
much sense (it is an HTTP response header).
SVN revision: 53572
2010-10-18 16:39:12 +00:00
Cedric BAIL
7100d4ac62
* ecore: remove now useless structure.
...
Patch by Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53570
2010-10-18 13:49:06 +00:00
Cedric BAIL
313e855af5
* ecore: proper protection of newer constant.
...
SVN revision: 53567
2010-10-18 13:11:25 +00:00
Cedric BAIL
680fa431b3
* ecore: remove ecore_con_url_http_post_send as it expose CURL
...
API and is not useful to someone.
SVN revision: 53566
2010-10-18 12:52:46 +00:00
Carsten Haitzler
18f7762fc0
make sure we have undefed stuff
...
SVN revision: 53562
2010-10-18 05:09:30 +00:00
Vincent Torri
a17c58d0b0
improve doc layout
...
SVN revision: 53509
2010-10-17 07:03:28 +00:00
Mike Blumenkrantz
b149ef3a37
typedef function pointer
...
SVN revision: 53500
2010-10-16 23:02:35 +00:00
Iván Briano
1277d5b855
Dead code bye bye
...
SVN revision: 53497
2010-10-16 21:32:08 +00:00
Christopher Michael
50101673d4
Attempting to track a bug in ecore_x_randr_12 where we get a segfault
...
when trying to free the mode_info. Not much functional difference with
this commit except that we do not call strndup if the nameLength is
<= 0.
SVN revision: 53477
2010-10-15 23:19:45 +00:00
Mike Blumenkrantz
38c32c19a0
add info when generating dh params so people will know wtf is going on when their app hangs for an hour on startup
...
SVN revision: 53473
2010-10-15 21:31:25 +00:00
Carsten Haitzler
8be0e4590e
remove changes in case developer dumber than expected?
...
:) (aagh was most annoying to find this today).
SVN revision: 53437
2010-10-15 07:42:29 +00:00
Mike Blumenkrantz
1df6a75020
make this more explicit in case compiler is dumber than expected?
...
SVN revision: 53431
2010-10-14 22:13:40 +00:00
Cedric BAIL
94fb47d168
* ecore: improve and fix ecore_thread destruction.
...
SVN revision: 53411
2010-10-14 16:45:48 +00:00
Cedric BAIL
5ce901459c
* ecore: don't leak pipe.
...
SVN revision: 53410
2010-10-14 16:45:17 +00:00
Mike Blumenkrantz
513bdc7da1
stop trying to use ssl for local connections
...
SVN revision: 53409
2010-10-14 16:19:17 +00:00
Cedric BAIL
25e84c7f3d
* ecore: fix possible race. It also make ecore_thread_run
...
match ecore_thread_feedback_run better.
NOTE: I know it breaks API/ABI compatibility for that call,
but that's the only sane solution I could found.
SVN revision: 53370
2010-10-13 17:45:07 +00:00
Cedric BAIL
00c7021fcb
* ecore: turn on and off eina threads support when needed.
...
SVN revision: 53364
2010-10-13 16:44:15 +00:00
Mike Blumenkrantz
e2662d1b7c
2 obscure bugs in one commit:
...
make cert use more overt and set up fd handler before attempting to use it
SVN revision: 53363
2010-10-13 16:40:52 +00:00
Mike Blumenkrantz
a880b29c6e
<discomfitor> ecore_con_url.c: In function 'ecore_con_url_ftp_upload':
...
<discomfitor> ecore_con_url.c:963:14: warning: too few arguments for format
<rakuco> ah, missing a , filename there
<rakuco> can you commit that
SVN revision: 53334
2010-10-13 03:04:53 +00:00
Carsten Haitzler
031f1fecf5
and.. be safe! for funcs so they dont go closing things when they
...
already are.
SVN revision: 53324
2010-10-13 00:37:12 +00:00
Carsten Haitzler
5eeda40f55
if pipe handler deletes the pipe... be safe!
...
SVN revision: 53323
2010-10-13 00:35:09 +00:00
Cedric BAIL
21b78d18b3
* ecore: fix ecore_fb build.
...
SVN revision: 53303
2010-10-12 11:49:18 +00:00
Tom Hacohen
6390f7f88f
Ecore imf: Fixed documentation issues, patch by Jihoo Kim.
...
Fixed typos.
Made ecore_imf_context_preedit_string_get appear in doxygen output.
SVN revision: 53300
2010-10-12 08:59:42 +00:00
Vincent Torri
c5976de2ee
typo
...
SVN revision: 53298
2010-10-12 07:55:45 +00:00
Vincent Torri
9243d767a7
Ecore_Fb doc finished
...
SVN revision: 53297
2010-10-12 07:55:24 +00:00
Vincent Torri
eeb330adc3
fix doxygen warnings
...
SVN revision: 53296
2010-10-12 06:34:31 +00:00
Lucas De Marchi
fcad2a9244
Check for libcurl's return codes when appropriate.
...
Depending on the option being set by curl_easy_setopt, a return value
different from CURL_OK can be returned (the same applies to curl_multi_*
and CURLM_OK).
This commit checks the return value from those calls and usually
displays an error message with ERR() and returns -- in some cases, an
error is shown but the function does not immediately return.
A few lines of code have also been moved around in order to make
returning from functions as harmless as possible.
By: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53275
2010-10-11 19:13:12 +00:00
Lucas De Marchi
8912b4aa1d
Simplify the checks in ecore_con_url_http_post_send.
...
By checking for the validity of the Ecore_Con_Url struct before anything
else and merging some if's, the code can get much cleaner.
By: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53274
2010-10-11 19:12:26 +00:00
Lucas De Marchi
f39cdf2666
Always use ecore_con_url_ftp_use_epsv_set's parameters.
...
unused_warning--
By: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53273
2010-10-11 19:12:09 +00:00
Lucas De Marchi
bd92321ff1
Simplify if clause.
...
There is no need for an else here, as the return is the last
instruction.
By: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53272
2010-10-11 19:11:54 +00:00
Lucas De Marchi
c468b8c64b
Fix some indentation problems in ecore_con_url.
...
* Indent blocks inside EINA_LIST_* macros.
* Use sane indentation in ecore_con_url_ftp_upload().
By: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53271
2010-10-11 19:11:26 +00:00
Lucas De Marchi
b4e6e97808
Add a missing leading underscore to static variables.
...
By: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53270
2010-10-11 19:11:02 +00:00
Lucas De Marchi
c74eece7d1
Remove erroneus __UNUSED__ mark.
...
data is indeed used by _ecore_con_url_idler_handler.
By: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53269
2010-10-11 19:10:43 +00:00
Cedric BAIL
d2736c4d66
ecore: return more information on pipe_read error.
...
SVN revision: 53263
2010-10-11 13:27:03 +00:00
Carsten Haitzler
1cae896bba
delay comp setup until show. (and unset on hide)
...
SVN revision: 53256
2010-10-11 06:28:01 +00:00
Gustavo Lima Chaves
6656e77c9c
Yet another int -> Eina_Bool fix, similar to the one done to
...
ecore_con_url_verbose_set.
Patch by Rafael Kubo.
SVN revision: 53197
2010-10-08 18:41:49 +00:00
Bruno Dilly
13883b21f4
Document ecore_con_url_verbose_set's behaviour.
...
Author: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53191
2010-10-08 15:22:09 +00:00
Bruno Dilly
1a6d3a3eb7
unused_warning--
...
Author: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53190
2010-10-08 15:19:48 +00:00
Bruno Dilly
b26732d09c
In practice, it was already being treated as an Eina_Bool, so let us
...
declare it as such and simplify the code.
Author: Raphael Kubo da Costa <kubo@profusion.mobi>
SVN revision: 53189
2010-10-08 15:17:01 +00:00
Gustavo Sverzut Barbieri
3a88bc8b71
log domains in lower-case only please.
...
let's make it a standard so we don't have to look at the code
everytime to figure out the name...
SVN revision: 53172
2010-10-07 22:31:46 +00:00
Eduardo de Barros Lima
2f1827d132
Ecore: No need to #define _GNU_SOURCE
...
SVN revision: 53162
2010-10-07 20:40:33 +00:00
Mike McCormack
b34b4c2359
From: Mike McCormack <mj.mccormack@samsung.com>
...
Subject: ecore-glib integration patches
0001-Make-gmain-integration-work.path applies to the enlightenment SVN.
(in svn with some formatting fixes applied).
SVN revision: 53135
2010-10-07 07:23:26 +00:00
Lucas De Marchi
5c43c88f74
Fix signal accounting
...
copy&paste--
By: "Ulisses Furquim" <ulisses@profusion.mobi>
SVN revision: 53129
2010-10-07 00:33:51 +00:00
Carsten Haitzler
ac77353cfa
lets set num to 0 shall we? :)
...
SVN revision: 53126
2010-10-06 23:54:06 +00:00
Cedric BAIL
6b5c401b1f
* ecore: fix typo.
...
SVN revision: 53098
2010-10-06 13:01:35 +00:00
Cedric BAIL
d617b8574d
* ecore: refcount send and received notify to prevent leak on
...
ecore_thread_cancel.
SVN revision: 53096
2010-10-06 11:48:45 +00:00
Cedric BAIL
05262d2120
* ecore: remove thread from the correct list.
...
SVN revision: 53029
2010-10-04 15:24:34 +00:00
Cedric BAIL
f728fbf8f7
* ecore: fix build without X.
...
SVN revision: 53015
2010-10-04 09:35:06 +00:00
Carsten Haitzler
f7ad965e20
ecore-dfb - double+triple too.
...
SVN revision: 53013
2010-10-04 09:17:59 +00:00
Carsten Haitzler
6893412d80
aaagh ecore_fb needs double/triple fix too.
...
SVN revision: 53012
2010-10-04 09:02:43 +00:00
Carsten Haitzler
a77152c531
fix double/triple click
...
SVN revision: 53010
2010-10-04 07:58:06 +00:00
Mike Blumenkrantz
2f5589d890
add DBG for successfully completing SSL verification. with this commit, I believe that the ssl api should be 100% functional.
...
SVN revision: 52988
2010-10-02 22:27:30 +00:00
Mike Blumenkrantz
e8ee2a75f0
require peer verification when verify is called
...
SVN revision: 52987
2010-10-02 22:01:43 +00:00
Mike Blumenkrantz
abad9a5eb3
clear out the _try series of functions because they're useless
...
SVN revision: 52985
2010-10-02 21:13:56 +00:00
Mike Blumenkrantz
01c2990b47
openssl fixes:
...
only enable CRL checking when CRLs are loaded
output full ssl session info to DBG
SVN revision: 52982
2010-10-02 09:58:06 +00:00
Carsten Haitzler
201b13a221
NOOOOOOOOOOO spank disco-stu! spank. dont just dumbly shut warnings
...
up. read the code. its only because you HAPPEN to not have screensaver
support enabled that you happen to get the warning.
SVN revision: 52981
2010-10-02 09:32:45 +00:00
Mike Blumenkrantz
38f1d822a0
__UNUSED__
...
SVN revision: 52980
2010-10-02 09:15:22 +00:00
Mike Blumenkrantz
03d5ae91ca
formatting, correctly set ->ssl_err when appropriate, add cert verification for openssl
...
SVN revision: 52979
2010-10-02 09:14:41 +00:00
Carsten Haitzler
44093c2bdc
set client leader by default - support setting it explicitly from code
...
too. fix default win props too.
SVN revision: 52974
2010-10-02 01:56:23 +00:00
Mike Blumenkrantz
603831821f
some DBG edits, fix case where ssl handshake completes and no more data is sent/received
...
SVN revision: 52972
2010-10-02 01:32:54 +00:00
Mike Blumenkrantz
2516eec5f8
fix openssl CRL loading
...
SVN revision: 52971
2010-10-02 01:32:05 +00:00
Carsten Haitzler
a1cc721153
implement ecore_x_image to finish - put and convert done. actually no
...
need for convert from argb as that requires what evas already does
argb-> screen depth. use evas for that.
SVN revision: 52950
2010-10-01 12:31:22 +00:00
Carsten Haitzler
1e45be0a72
aaah bad. changed to free.
...
SVN revision: 52945
2010-10-01 07:38:36 +00:00
Howell Tam
fcbc86aec9
From: Howell Tam <howell.tam@fluffyspider.com>
...
Subject: ecore_file_download.c patch
Leak fix. Free url_con.
SVN revision: 52944
2010-10-01 07:04:07 +00:00
Vincent Torri
1c1f20484e
tab--
...
SVN revision: 52922
2010-09-30 07:35:00 +00:00
Vincent Torri
33ecb571b6
tab--
...
SVN revision: 52921
2010-09-30 07:31:11 +00:00
Vincent Torri
519007d376
tab--
...
SVN revision: 52920
2010-09-30 07:25:06 +00:00
Vincent Torri
586334710d
tab--
...
SVN revision: 52919
2010-09-30 07:24:46 +00:00
Vincent Torri
16263f52cc
tab--
...
SVN revision: 52918
2010-09-30 06:09:20 +00:00
Mike Blumenkrantz
0aaad2d41e
add returns for later certificate checking
...
SVN revision: 52916
2010-09-30 01:53:23 +00:00
Mike Blumenkrantz
585fecac5b
add fd flags for openssl
...
SVN revision: 52915
2010-09-30 01:50:58 +00:00
Mike Blumenkrantz
ce529f9758
formatting
...
SVN revision: 52914
2010-09-30 01:01:41 +00:00
Mike Blumenkrantz
a5d9f332a0
wow. just...wow
...
SVN revision: 52913
2010-09-30 00:45:48 +00:00
Mike Blumenkrantz
e3ab6e3aeb
I tried the lfelipe method: "hey, if fixing it seems to not be working, shouldn't you try to screw it up?"
...
it didn't work.
SVN revision: 52912
2010-09-30 00:01:25 +00:00
Mike Blumenkrantz
6990394b46
wow mike, you need to take a vacation. immediately.
...
change fd handler flags to be set when the handshake ISN'T finished
SVN revision: 52911
2010-09-29 23:56:31 +00:00
Mike Blumenkrantz
7cb095cc24
set fd handler flags properly from gnutls, update dbg info accordingly
...
reminder: do this for openssl later
SVN revision: 52910
2010-09-29 23:53:00 +00:00
Iván Briano
e6aa360c21
As requested by T_UNIX, remove the mention of any git hash in the comment, as it doesn't seem to be valid for upstream.
...
SVN revision: 52908
2010-09-29 22:34:02 +00:00
Mike Blumenkrantz
f799de1375
even more verbose debug output
...
SVN revision: 52906
2010-09-29 22:04:11 +00:00
Vincent Torri
439168c6ff
tab------------
...
SVN revision: 52896
2010-09-29 17:03:38 +00:00
Vincent Torri
62bcf9643e
check the returned value of evas_engine_info_set()
...
SVN revision: 52894
2010-09-29 16:45:49 +00:00
Mike Blumenkrantz
c0593c571a
add more debug output, and even more with -DPRINT_LOTS_OF_DEBUG
...
SVN revision: 52891
2010-09-29 14:52:36 +00:00
Tom Hacohen
0a04c0084d
Ecore IMF: Fixed typo in canvas_set, (the string used is window_set instead of canvas_set) and fixed an allocation to use calloc instead of malloc. - Patch by Jihoon Kim.
...
SVN revision: 52885
2010-09-29 10:55:40 +00:00
Tom Hacohen
467abe35c7
Ecore imf: changed int -> Eina_Bool in ecore_imf_context_use_preedit_set.
...
SVN revision: 52884
2010-09-29 09:29:36 +00:00
Mike Blumenkrantz
7af28b08ff
reorder some handshake events to hopefully reduce overhead slightly
...
SVN revision: 52878
2010-09-29 05:08:47 +00:00
Mike Blumenkrantz
75b958531d
compile fixes for sun compiler
...
SVN revision: 52877
2010-09-29 04:06:28 +00:00
Mike Blumenkrantz
f5f8a3c45d
DBG output
...
SVN revision: 52875
2010-09-29 03:52:32 +00:00
Carsten Haitzler
acb667de11
at least it builds now with eina_bool changes and randr changes.
...
woefully incomplete tho.
SVN revision: 52866
2010-09-28 22:37:04 +00:00
Mike Blumenkrantz
ac12734be2
switch to newer priority string stuff so gnutls devs stop being dicks to us
...
SVN revision: 52865
2010-09-28 21:59:13 +00:00
Lucas De Marchi
61a510d387
Fix clock_gettime detection in autotools
...
AC_CHECK_FUNCS checks for the existence of functions in the C standard
library, so we don't need it. Instead, we need to define
HAVE_CLOCK_GETTIME if the function was found inside the librt.
Moreover, in source file check if HAVE_CLOCK_GETTIME is defined rather
than of checking if it's 0.
SVN revision: 52863
2010-09-28 19:36:50 +00:00
Mike Blumenkrantz
7b3b888471
whoops comparison typo
...
SVN revision: 52846
2010-09-28 09:28:04 +00:00
Mike Blumenkrantz
b64b0b3ac9
first part of ssl rerererewrite: split functions, move stuff out of prepare(), and add verification for gnutls clients
...
SVN revision: 52837
2010-09-28 03:16:08 +00:00
Christopher Michael
1fe0153f77
Fix ecore to at least compile on systems that don't have clock_getting.
...
NB: Not sure if this is a correct fix or not, but at least svn is not
busted anymore.
SVN revision: 52831
2010-09-28 00:21:48 +00:00
Lucas De Marchi
162070b8f5
Respect namespace
...
_ecore_loop_time -> _ecore_time_loop_time
SVN revision: 52825
2010-09-27 22:35:55 +00:00
Lucas De Marchi
d17de81175
Make ecore_time_get and friends use monotonic clock
...
Instead of relying on unix time, use a monotonic clock provided by
clock_gettime(). If a monotonic clock is not available, it will fallback
to CLOCK_REALTIME or unix time if neither is available.
The impact is that now it only makes sense to call ecore_time_get() or
ecore_time_loop_get() if the value retrieved is intended to be used as
relative to previous/posterior measurements. If an absolute value is
needed, the right function to call now is ecore_time_unix_get() which
will give the number of seconds since Jan 1st, 1970, 12:00AM.
SVN revision: 52824
2010-09-27 22:35:35 +00:00
Mike Blumenkrantz
b04f0b0360
disable rehandshake support for now
...
SVN revision: 52792
2010-09-26 23:56:31 +00:00
Gustavo Sverzut Barbieri
ea831b3738
ecore_x: fix key-up events!
...
Bad cedric, no cookie for you! While merging r39505 introducing
Ecore_Input you had all the code to go through Xutf8LookupString(),
but its documentation says (man Xutf8LookupString):
{{{
Note
®To ensure proper input processing, it is essential that the
client pass only KeyPress events to XmbLookupString,
XwcLookupString and Xutf8LookupString. Their behavior when a
client passes a KeyRelease event is undefined.
}}}
Yeah, Xlib is quite stupid and this makes no sense.
As this just happens for UP events, it was unnoticed for a long time
(19 months) as most apps just handle DOWN events, as it gets X
keyboard repetition and all.
Thanks to Otavio Pontes that spotted this bug while doing some code
for EPhoto (that for some weird reason uses UP instead of DOWN
events).
SVN revision: 52786
2010-09-26 19:41:02 +00:00
Christopher Michael
da426bec51
Fix a couple of ecore_x_e_illume functions ... these Should be int.
...
SVN revision: 52785
2010-09-26 17:58:44 +00:00
Vincent Torri
29ec0433ab
int --> bool
...
Please review it. i don't have the courage to read
everything again
It should compile on linux (committed from windows, but
corrected at the same time on linux. Thank you, VirtualBox
devs !)
SVN revision: 52784
2010-09-26 17:49:05 +00:00
Vincent Torri
b3f24d8de4
[ecore-imf] more strict detection of exported functions on Windows
...
SVN revision: 52774
2010-09-26 06:00:14 +00:00
Vincent Torri
fbdfa54f82
int --> Eina_Bool
...
SVN revision: 52773
2010-09-26 05:42:56 +00:00
Carsten Haitzler
8d78e67870
formatting.
...
SVN revision: 52768
2010-09-26 02:24:36 +00:00
Carsten Haitzler
15659e1de8
formatting.
...
SVN revision: 52767
2010-09-26 02:17:53 +00:00
Vincent Torri
ce40390347
int --> Eina_Bool
...
please review it
SVN revision: 52730
2010-09-25 07:03:02 +00:00
Vincent Torri
a5d1c4bce5
Eina.h should be needed here too
...
SVN revision: 52729
2010-09-25 06:23:32 +00:00
Vincent Torri
b557254a6b
fix build (i'm on windows, so can't test it)
...
SVN revision: 52728
2010-09-25 06:21:43 +00:00
Vincent Torri
42dba1a3ea
formatting
...
SVN revision: 52726
2010-09-25 06:10:18 +00:00
Vincent Torri
1f3091dbb3
formatting
...
SVN revision: 52725
2010-09-25 06:03:38 +00:00
Vincent Torri
cdacbb84bb
formatting
...
SVN revision: 52724
2010-09-25 05:58:42 +00:00
Vincent Torri
0e9b4b0c3b
formatting
...
SVN revision: 52723
2010-09-25 05:56:01 +00:00
Vincent Torri
aac2ae60b5
formatting
...
SVN revision: 52722
2010-09-25 05:45:19 +00:00
Vincent Torri
b2d3d0af41
formatting and whitespace--
...
SVN revision: 52721
2010-09-25 05:36:21 +00:00
Vincent Torri
d5f1ed5907
int --> Eina_Bool
...
SVN revision: 52720
2010-09-25 05:34:26 +00:00
Vincent Torri
303edc4f9d
int --> Eina_Bool
...
SVN revision: 52719
2010-09-25 05:14:00 +00:00
Vincent Torri
2de55203a4
directfb does not exists on Windows, so simplify EAPI
...
SVN revision: 52718
2010-09-25 05:08:30 +00:00
Vincent Torri
6fd7b23478
formatting
...
SVN revision: 52717
2010-09-25 04:58:33 +00:00
Vincent Torri
88b8b5499a
formatting
...
SVN revision: 52716
2010-09-25 04:53:47 +00:00
Vincent Torri
6776962098
int --> Eina_Bool
...
SVN revision: 52715
2010-09-25 04:50:10 +00:00
Mike Blumenkrantz
a46d1d564c
attempt to rehandshake more frequently to avoid unnecessary looping
...
SVN revision: 52713
2010-09-25 04:22:10 +00:00
Mike Blumenkrantz
ec372b3bd5
whoops typo
...
SVN revision: 52712
2010-09-25 04:21:03 +00:00
Mike Blumenkrantz
0d535058a9
implement ssl rehandshakes
...
convert bool variable to bool
fix bug where ssl read/write could improperly result in disconnect
SVN revision: 52710
2010-09-25 03:02:10 +00:00
Mike Blumenkrantz
8ea3bbdd2e
fix warning detection
...
SVN revision: 52708
2010-09-24 22:49:06 +00:00
Mike Blumenkrantz
ae6f569862
remove double check for ssl
...
SVN revision: 52705
2010-09-24 20:07:55 +00:00
Mike Blumenkrantz
2430457121
don't use ssl for local connections
...
SVN revision: 52703
2010-09-24 20:03:09 +00:00
Mike Blumenkrantz
4a09cb751c
send server name extension
...
SVN revision: 52701
2010-09-24 19:47:25 +00:00
Cedric BAIL
3b324c10ed
* ecore: check GNUTLS version before using new feature.
...
SVN revision: 52680
2010-09-24 11:25:40 +00:00
Boris Faure
9d95bf5a82
ecore: fix compilation when GNUTLS_HANDSHAKE_NEW_SESSION_TICKET is not defined
...
SVN revision: 52679
2010-09-24 09:42:16 +00:00
Mike Blumenkrantz
da50c7b57d
add session ticket support for gnutls, also add extremely detailed handshake error messages
...
SVN revision: 52675
2010-09-24 06:54:49 +00:00
Vincent Torri
9f453d51e9
document abstract types
...
SVN revision: 52674
2010-09-24 06:35:30 +00:00
Vincent Torri
814013bb82
formatting
...
SVN revision: 52673
2010-09-24 06:34:56 +00:00
Mike Blumenkrantz
da4dcea34f
fix events for async handshaking
...
SVN revision: 52672
2010-09-24 05:57:03 +00:00
Mike Blumenkrantz
1757239da5
fix kx priority
...
SVN revision: 52671
2010-09-24 05:56:45 +00:00
Vincent Torri
826af2e024
deprecated function
...
SVN revision: 52670
2010-09-24 05:53:25 +00:00
Vincent Torri
b565d00399
add warning messages for ecore_cocoa, ecore_win32 and ecore_wince
...
SVN revision: 52669
2010-09-24 05:30:51 +00:00
Mike Blumenkrantz
60b4269b5f
yet another ecore_con overhaul!
...
*internal function rename
*******finally fix ssl handshaking to be non-blocking
SVN revision: 52665
2010-09-24 04:15:42 +00:00
Vincent Torri
e7392af747
* Eina.h needed for Eina_Bool.
...
* typo in comments.
* use a border of 1 for a table.
SVN revision: 52656
2010-09-23 22:18:15 +00:00
Lucas De Marchi
85599b20eb
Use eina_sched_prio_drop()
...
SVN revision: 52652
2010-09-23 20:39:40 +00:00
Vincent Torri
89fa0d7741
document completely the Ecore_Win32 and Ecore_WinCE
...
SVN revision: 52648
2010-09-23 18:47:40 +00:00
Vincent Torri
02ffe4765c
Windows: too much noise in the console with animations
...
SVN revision: 52647
2010-09-23 18:44:48 +00:00
Mike Blumenkrantz
b306683fec
something for morlenxus maybe
...
SVN revision: 52639
2010-09-23 10:35:30 +00:00
Mike Blumenkrantz
f617346761
finally. fix. openssl. again.
...
SVN revision: 52613
2010-09-23 00:16:42 +00:00
Mike Blumenkrantz
a1009c7893
cosmetic fix to use mixed protocol
...
SVN revision: 52610
2010-09-22 22:44:54 +00:00
Mike Blumenkrantz
0666d57062
better openssl error handlers
...
SVN revision: 52607
2010-09-22 22:33:02 +00:00
Mike Blumenkrantz
74d035df0b
prefer stronger anonymous client encryption
...
also some progress on openssl that does nothing except make servers take forever to start
SVN revision: 52606
2010-09-22 22:06:49 +00:00
Mike Blumenkrantz
3150202755
clean up openssl handshake
...
SVN revision: 52597
2010-09-22 17:37:25 +00:00
Cedric BAIL
b462783cae
* ecore: oops, forgot that change.
...
SVN revision: 52580
2010-09-22 11:09:44 +00:00
Cedric BAIL
8036a32918
* ecore: rename ecore_long_run to ecore_thread_feedback_run.
...
SVN revision: 52573
2010-09-22 09:47:55 +00:00
Vincent Torri
3fd0a6fb08
remove whitespaces
...
SVN revision: 52569
2010-09-22 08:03:38 +00:00
Mike Blumenkrantz
172da9d9cf
finally. fix. ssl.
...
SVN revision: 52567
2010-09-22 07:27:07 +00:00
Mike Blumenkrantz
787b09464b
disable PSK ciphers for now since they aren't implemented
...
SVN revision: 52565
2010-09-22 06:13:29 +00:00
Mike Blumenkrantz
fb977d72c4
implement functions to time out client connections to our server
...
*set/get default idle timeout of clients*
+ecore_con_server_timeout_set
+ecore_con_server_timeout_get
*set/get idle timeout of a client*
+ecore_con_client_timeout_set
+ecore_con_client_timeout_get
*get connection uptime of a client/server*
+ecore_con_client_uptime_get
+ecore_con_server_uptime_get
*fix giant ssl server memory leak*
SVN revision: 52564
2010-09-22 04:48:09 +00:00
Mike Blumenkrantz
5420324fd6
add ECORE_CON_USE_MIXED, which is just an alias for SSL3+TLS
...
SVN revision: 52561
2010-09-22 01:26:23 +00:00
Mike Blumenkrantz
38188213cf
!@#$ it, just going to rewrite the whole damn thing:
...
*fix gnutls client/server implementations to use correct ciphers and free memory properly
*prevent lots of segvs
this message brought to you by gnu dicks
SVN revision: 52559
2010-09-22 00:10:10 +00:00
Vincent Torri
565962c176
now that log colors work on Windows, let eina_log choose
...
the default colors
SVN revision: 52545
2010-09-21 16:38:33 +00:00
Mike Blumenkrantz
c2da918bd5
fix ecore con openssl clients (really ecore_con_server...) sigh
...
SVN revision: 52538
2010-09-21 07:04:10 +00:00
Mike Blumenkrantz
ad3ecd489a
ecore_con_url_destroy -> ecore_con_url_free
...
also some small function rearranging
SVN revision: 52534
2010-09-21 06:49:07 +00:00
Mike Blumenkrantz
6121edec86
this should have gone in with r52531...
...
SVN revision: 52533
2010-09-21 05:34:49 +00:00
Mike Blumenkrantz
3b55af0102
fix doxy and EAPI for ssl function
...
SVN revision: 52532
2010-09-21 05:34:10 +00:00
Mike Blumenkrantz
0929a7a9ce
-EAPI int ecore_con_url_url_set(Ecore_Con_Url *url_con,
...
+EAPI Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con,
-EAPI int ecore_con_url_httpauth_set(Ecore_Con_Url *url_con,
+EAPI Eina_Bool ecore_con_url_httpauth_set(Ecore_Con_Url *url_con,
-EAPI int ecore_con_url_send(Ecore_Con_Url *url_con,
+EAPI Eina_Bool ecore_con_url_send(Ecore_Con_Url *url_con,
-EAPI int ecore_con_url_ftp_upload(Ecore_Con_Url *url_con,
+EAPI Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con,
SVN revision: 52531
2010-09-21 03:14:46 +00:00
Mike Blumenkrantz
f6a8d74b50
formatting
...
SVN revision: 52530
2010-09-21 03:08:35 +00:00
Mike Blumenkrantz
f3a2858f37
remove unused variable
...
SVN revision: 52529
2010-09-21 02:16:40 +00:00
Mike Blumenkrantz
786e2bd7e4
ecore_main_fd_handler_active_get -> Eina_Bool
...
SVN revision: 52528
2010-09-21 02:06:41 +00:00
Mike Blumenkrantz
89e6e0d30d
ecore_ipc_server_connected_get -> Eina_Bool
...
SVN revision: 52526
2010-09-21 01:58:54 +00:00
Mike Blumenkrantz
fdadea7eca
ecore_con_server_connected_get now returns Eina_Bool
...
SVN revision: 52525
2010-09-21 01:48:46 +00:00
Mike Blumenkrantz
e56789f77e
This is the Doxygen Police! If you committed any of these lines, accept your public shaming!
...
SVN revision: 52513
2010-09-20 20:52:15 +00:00
Mike Blumenkrantz
130f5bec81
doxy error fixes
...
SVN revision: 52512
2010-09-20 20:33:50 +00:00
Mike Blumenkrantz
720fe88aef
T_UNIX I AM GUESSING THIS WAS YOU!
...
@Brief != @brief!!!
SVN revision: 52510
2010-09-20 20:18:26 +00:00
Mike Blumenkrantz
40396f6867
doxy todo--
...
SVN revision: 52509
2010-09-20 20:12:17 +00:00
Mike Blumenkrantz
c578a955ae
fix obscure error case where CLIENT_DEL event is not generated after a client ssl pings ecore's server and disconnects immediately after handshake
...
SVN revision: 52504
2010-09-20 19:32:37 +00:00
Mike Blumenkrantz
137da6826d
add cl->client_count member to prevent segv when counting a list that is actually null but hasn't been nulled
...
SVN revision: 52503
2010-09-20 19:31:11 +00:00
Mike Blumenkrantz
d28a6dd5d6
formatting, switch lost_client to bool
...
SVN revision: 52501
2010-09-20 18:52:52 +00:00
Mike Blumenkrantz
8e3be2fef8
FINALLY FIX OPENSSL SERVER!!!!!!!!! YESSSSSSSSSSSSSSSSSSSSS
...
SVN revision: 52497
2010-09-20 18:25:21 +00:00
Lucas De Marchi
71cba7da35
Fix typos
...
"he->the" where appropriate
SVN revision: 52493
2010-09-20 17:09:13 +00:00
Mike Blumenkrantz
2733968495
fix unused warns
...
SVN revision: 52470
2010-09-19 19:41:06 +00:00
Mike Blumenkrantz
27e3324ad2
remove ssl2 support completely
...
SVN revision: 52469
2010-09-19 19:38:38 +00:00
Mike Blumenkrantz
d1db6f1cf4
gnutls cleanup: only create diffie hellman bits on server init instead of for each client
...
overhead/blocking--
speed++
SVN revision: 52468
2010-09-19 19:25:47 +00:00
Mike Blumenkrantz
0c4707dcbc
finally crush the last openssl segv
...
still broken though
SVN revision: 52467
2010-09-19 18:40:43 +00:00
Carsten Haitzler
624628e9d1
more warngins--
...
SVN revision: 52460
2010-09-19 03:55:06 +00:00
Carsten Haitzler
bcf7b03bae
warnings--
...
SVN revision: 52459
2010-09-19 03:51:56 +00:00
Carsten Haitzler
9a977e2262
warning--
...
SVN revision: 52458
2010-09-19 03:44:42 +00:00
Carsten Haitzler
c1ea3349ac
warning--
...
SVN revision: 52457
2010-09-19 03:29:30 +00:00
Carsten Haitzler
0abc6703ba
warning--
...
SVN revision: 52456
2010-09-19 03:28:18 +00:00
Carsten Haitzler
2939d1548e
fmting.
...
SVN revision: 52455
2010-09-19 03:26:59 +00:00
Carsten Haitzler
308f4b0c22
warnings--
...
SVN revision: 52454
2010-09-19 03:25:15 +00:00
Carsten Haitzler
773c57ea1a
warning--
...
SVN revision: 52453
2010-09-19 03:09:09 +00:00
Mike Blumenkrantz
5775219503
check return of ssl_server_prepare
...
SVN revision: 52423
2010-09-18 19:29:43 +00:00
Mike Blumenkrantz
4239d5d67f
giant cleanups/rewrites which are unnoticeable to users:
...
*client->server renamed client->host_server to clarify ambiguity
*ecore_con_ssl_client_prepare.* killed off because it was useless and wrong
*openssl generates only one SSL_CTX per server now instead of a new one for each client, which is broken/unnecessary/wasteful
**as a result, certificate loading is now only done once
**additionally this will save a very large amount of memory and avoid unnecessary/broken refcounting
*ecore_con_ssl_server_prepare.* rewritten to actually be useful instead of just a lazy way to null pointers
**all SSL_CTX code now goes here^
*some formatting fixes
*internal function renames
SVN revision: 52422
2010-09-18 19:26:05 +00:00
Vincent Torri
f4f1dcf519
add the possibility to have shaped windows in ecore_evas (gdi
...
only for now)
SVN revision: 52418
2010-09-18 17:24:31 +00:00
Carsten Haitzler
fa5b80b879
dont use tls max if it doesnt exist eh?
...
SVN revision: 52413
2010-09-18 11:41:15 +00:00
Mike Blumenkrantz
36bd287841
add mixed protocol for gnutls as well
...
SVN revision: 52412
2010-09-18 08:46:17 +00:00
Mike Blumenkrantz
a8ef623de7
allow mixing sslv3+tlsv1 in openssl, FINALLY FIX INITIAL BUG FOR OPENSSL SERVERS!
...
note that openssl servers still do not work because there is more than one bug :/
SVN revision: 52411
2010-09-18 08:36:13 +00:00
Mike Blumenkrantz
f62bcf1ff1
switch private struct members from char bitfields to Eina_Bool bitfields
...
no noticeable difference
SVN revision: 52399
2010-09-18 06:30:13 +00:00
Mike Blumenkrantz
f8d56a023f
a loooooooot of outdents and reformatting
...
SVN revision: 52397
2010-09-18 06:06:05 +00:00
Mike Blumenkrantz
e9361b4e1c
whoops forgot an UNUSED for openssl
...
SVN revision: 52396
2010-09-18 05:32:27 +00:00
Mike Blumenkrantz
ac86c1aaa4
more progress on fixing openssl servers, fix all warnings, add error checking for openssl code
...
SVN revision: 52395
2010-09-18 05:31:00 +00:00
Mike Blumenkrantz
3736856f82
stop the indenting and line wrapping madness!!!!!!!
...
SVN revision: 52394
2010-09-18 05:30:16 +00:00
Mike Blumenkrantz
8cd87afb04
outdent for readability
...
SVN revision: 52393
2010-09-18 04:59:11 +00:00
Mike Blumenkrantz
d8afcde705
add rest of ssl algorithms and clean up
...
SVN revision: 52391
2010-09-18 01:27:38 +00:00
Mike Blumenkrantz
8db37b8518
formatting
...
SVN revision: 52390
2010-09-18 01:20:25 +00:00
Mike Blumenkrantz
5e499b0c0e
fix gnutls ssl
...
SVN revision: 52385
2010-09-17 19:43:03 +00:00
Mike Blumenkrantz
6542578149
new ssl error output: now with detailed location info and 50% more fiber!
...
SVN revision: 52380
2010-09-17 17:39:32 +00:00
Mike Blumenkrantz
d74f46d5a5
simplify error conditions and output errrors on failure
...
SVN revision: 52378
2010-09-17 17:22:59 +00:00
Mike Blumenkrantz
c7608248dd
enable compression for gnutls, add error checks to client functions
...
SVN revision: 52377
2010-09-17 17:18:41 +00:00
Mike Blumenkrantz
cb0c97b6c3
add error checking for servers
...
SVN revision: 52376
2010-09-17 17:03:15 +00:00
Mike Blumenkrantz
3e98b064d3
use right pointer for ssl ctx to avoid segv
...
SVN revision: 52362
2010-09-17 08:58:23 +00:00
Mike Blumenkrantz
f3a9a92d36
fix ssl to work with cert loading flag
...
SVN revision: 52361
2010-09-17 08:00:42 +00:00
Vincent Torri
5973521793
check returned value of evas_engine_info_set()
...
SVN revision: 52360
2010-09-17 06:14:08 +00:00
Vincent Torri
56fa2461ed
warning--
...
SVN revision: 52292
2010-09-15 08:41:41 +00:00
Bruno Dilly
d0eb6e4054
Add missing bogosity X cursor
...
SVN revision: 52270
2010-09-14 21:43:44 +00:00
Vincent Torri
93f58106a6
ecore_win32 does not depend on Evas.
...
SVN revision: 52264
2010-09-14 21:25:31 +00:00
Vincent Torri
47b00392a7
useless define (already defined in command line)
...
SVN revision: 52247
2010-09-14 16:47:01 +00:00
Carsten Haitzler
4081d86c6c
better cleanup of poll fd's on shutdown
...
SVN revision: 52229
2010-09-14 00:53:57 +00:00
Carsten Haitzler
4f823dab67
fix first map bug handling to handle more than first window map.
...
SVN revision: 52200
2010-09-13 22:16:26 +00:00
Brett Nash
ee8881634b
Add a semicolon. GCC: This ones for you.
...
SVN revision: 52184
2010-09-13 09:16:01 +00:00
Brett Nash
5ea066ec74
Deniggle and rename the exore_x_dndn_callback_pos_update_set call.
...
SVN revision: 52183
2010-09-13 09:15:57 +00:00
Brett Nash
ba4ae189ea
Use -1.
...
SVN revision: 52182
2010-09-13 09:15:53 +00:00
Brett Nash
e36847a0ab
Xdnd callback (API Addition): Rationale below.
...
Essentially the problem is this: For drag and drop Ecore currently handles the
position update calls. But usually the application wants to display some user
feedback - a window to display the drag selection for instance.
Now the way e17 does it is grab the mouse cursor movements and track them
itself. However ecore is already doing this, it's already walking window
trees, calculating real positions, _and_ sending them in an X client message.
So it seems rather silly to duplicate the code in the user app to get the same
info.
We could possibly have added a new event, but then we need to deal the fact
the position update may arrive _After_ the item has been dropped. Hilarity
ensures[1].
This callback is meant for purely the selection owner of the drag to use, so
it is a callback set, not an add.
[1] Segfaults probably. Nothing funnier.
SVN revision: 52181
2010-09-13 09:15:50 +00:00
Brett Nash
310ee61355
Always return an x rander version (unset in this case).
...
SVN revision: 52180
2010-09-13 09:15:45 +00:00
Carsten Haitzler
fae947f8ea
do extra composite checks - need to do the lot to be useful.
...
SVN revision: 52121
2010-09-10 06:57:21 +00:00
Lucas De Marchi
325e08065d
Fix priority dropping
...
Lowering priority was wrong. Some bugs:
1) You don't lower the priority by setting the scheduler policy to some
of the real-time ones (SCHED_RR or SCHER_FIFO). If you do so, you are
actually increasing the priority of the workers and your main thread
you be preempted and stalled until the workers complete their job.
Fortunately this will only happen if your programming is running as
root, as normal users (without CAP_SYS_NICE) are unable to set
priority to real-time values.
2) setpriority() and getpriority() are not part of pthread and you can't
use the id returned by pthread. Manpage explicitly says so on
pthread_self(3):
"The thread ID returned by pthread_self() is not the same thing as the
kernel thread ID returned by a call to gettid(2)."
Since glibc does not have a gettid, here we are using
syscall(SYS_gettid)
This patch was tested with the program below. Compile and run:
$ gcc p_hello2.c -o p_hello2 -lpthread
$ ./p_hello2 10
You'll see that the main thread remains with its priority and threads
created by the main thread change their own niceness.
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/resource.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <sys/types.h>
/* Lower priority of current thread.
*
* It's used by worker threads so they use up "bg cpu" as it was really intended
* to work. If current thread is running with real-time priority, we decrease
* our priority by 5. This is done in a portable way. Otherwise we are
* running with SCHED_OTHER policy and there's no portable way to set the nice
* level on current thread. In Linux, it does work and it's the only one that is
* implemented.
*/
static void
_ecore_thread_pri_drop(void)
{
struct sched_param param;
int pol, prio, ret;
pid_t tid;
pthread_t pthread_id;
pthread_id = pthread_self();
ret = pthread_getschedparam(pthread_id, &pol, ¶m);
if (ret)
{
fprintf(stderr, "Unable to query sched parameters\n");
return;
}
if (pol == SCHED_RR || pol == SCHED_FIFO)
{
prio = sched_get_priority_max(pol);
param.sched_priority += 5;
if (prio > 0 && param.sched_priority > prio)
param.sched_priority = prio;
pthread_setschedparam(pthread_id, pol, ¶m);
}
#ifdef __linux__
else
{
tid = syscall(SYS_gettid);
errno = 0;
prio = getpriority(PRIO_PROCESS, tid);
if (errno == 0)
{
prio += 5;
if (prio > 19)
prio = 19;
setpriority(PRIO_PROCESS, tid, prio);
}
}
#endif
}
/*
* p_hello.c -- a hello program (in pthread)
*/
#define MAX_THREAD 1000
typedef struct {
int id;
} parm;
void *hello(void *arg)
{
parm *p=(parm *)arg;
pid_t tid;
int prio;
tid = syscall(SYS_gettid);
printf("[%d] Hello from node %d\n", tid, p->id);
pthread_yield();
printf("[%d] tid=%lu\n", tid);
_ecore_thread_pri_drop();
prio = getpriority(PRIO_PROCESS, tid);
printf("[%d] New nice value: %d\n", tid, prio);
return (NULL);
}
void main(int argc, char* argv[]) {
int n,i;
pthread_t *threads;
pthread_attr_t pthread_custom_attr;
parm *p;
pid_t tid;
int prio;
if (argc != 2)
{
printf ("Usage: %s n\n where n is no. of threads\n",argv[0]);
exit(1);
}
n=atoi(argv[1]);
if ((n < 1) || (n > MAX_THREAD)) {
printf ("The no of thread should between 1 and %d.\n",MAX_THREAD);
exit(1);
}
threads = (pthread_t *)malloc(n * sizeof(*threads));
pthread_attr_init(&pthread_custom_attr);
p = (parm *)malloc(n * sizeof(parm));
/* Start up thread */
tid = syscall(SYS_gettid);
for (i=0; i<n; i++) {
prio = getpriority(PRIO_PROCESS, tid);
printf("[%d] root thread nice value: %d\n", tid, prio);
p[i].id=i;
pthread_create(&threads[i], &pthread_custom_attr, hello, (void *)(p+i));
}
/* Synchronize the completion of each thread. */
for (i=0; i<n; i++) {
pthread_join(threads[i],NULL);
}
free(p);
}
SVN revision: 52039
2010-09-09 11:48:31 +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
Brett Nash
4bf9ee3df3
Merge branch 'elmdnd'
...
Conflicts:
trunk/TMP/st/elementary/.gitignore
SVN revision: 51935
2010-09-07 06:56:16 +00:00
Cedric BAIL
d098e05951
* ecore: fix error detection of ecore_pipe_add.
...
SVN revision: 51926
2010-09-06 16:36:44 +00:00
Christopher Michael
e2b4501a74
Prototypes for the missing ecore_x convert functions.
...
SVN revision: 51906
2010-09-05 15:40:36 +00:00
Carsten Haitzler
9049befccf
make 1 func to set lower pri - fall back to setpriority on linux and
...
try it there only.
SVN revision: 51885
2010-09-04 14:32:50 +00:00
Carsten Haitzler
05cf40fc4d
same - back to RR.
...
SVN revision: 51878
2010-09-04 05:40:38 +00:00
Carsten Haitzler
2c397940de
rr->other
...
SVN revision: 51873
2010-09-04 00:54:53 +00:00
Cedric BAIL
b3dd293384
* ecore: ecore_thread are not here to bring your computer down, so
...
reduce their priority too.
SVN revision: 51862
2010-09-03 13:39:53 +00:00
Vincent Torri
156952f938
fix include order for Windows
...
SVN revision: 51740
2010-08-30 05:49:18 +00:00
Carsten Haitzler
46a62d5460
leak--
...
SVN revision: 51702
2010-08-28 15:07:45 +00:00
Carsten Haitzler
6402642686
more leak--
...
SVN revision: 51701
2010-08-28 14:56:14 +00:00
Carsten Haitzler
061f22552e
fix leak of fb fd in error event.
...
SVN revision: 51700
2010-08-28 14:51:56 +00:00
Mike Blumenkrantz
833c0d19a9
doxy clarification
...
SVN revision: 51694
2010-08-28 10:01:20 +00:00
Carsten Haitzler
be93013208
technically xerrorhandlers have a return of an int - but its ignored
...
by xlib (explicitly in docs).
SVN revision: 51693
2010-08-28 04:28:15 +00:00
Nicholas Hughart
7afd0b7173
Add the following functions to Ecore_Con API:
...
ecore_con_server_name_get
ecore_con_server_port_get
SVN revision: 51670
2010-08-27 05:16:00 +00:00
Vincent Torri
2e625ed90e
fix copy/paste
...
SVN revision: 51667
2010-08-26 22:39:42 +00:00
Lucas De Marchi
255b2cb870
Apply double_condition_check.cocci
...
The offending projects were:
E16/e/src/backgrounds.c | 10 ++++------
PROTO/eon/src/lib/layout/eon_stack.c | 4 +---
ecore/src/lib/ecore_win32/ecore_win32.c | 3 +--
ecore/src/lib/ecore_wince/ecore_wince.c | 3 +--
edje/src/lib/edje_edit.c | 3 +--
evas/src/lib/cache/evas_cache_image.c | 2 +-
exalt/src/lib/libexalt_private.c | 2 +-
This patch assumes code in these places were insane and the fix is to remove
one condition check. Most likely this is not true, but there's no automatic fix
for that.
Looking at the patch, it seems that some places should use "x" and "y" vars but
used just one of them and therefore they were caught by coccinelle.
SVN revision: 51666
2010-08-26 20:45:09 +00:00
Carsten Haitzler
2aebc5b458
fix ecore_thread to use pthread correctly. should build on windows now
...
too.
SVN revision: 51621
2010-08-25 00:26:01 +00:00
Christopher Michael
51f2ed1d97
Add UNUSED where missing.
...
SVN revision: 51618
2010-08-24 23:29:24 +00:00
Carsten Haitzler
864fcb6c17
fix sync issue in 1 special event re-order case. booo!
...
SVN revision: 51609
2010-08-24 09:26:34 +00:00
Cedric BAIL
243d7c71ad
* ecore: struct a b = { 0 }; doesn't mean memset.
...
SVN revision: 51571
2010-08-23 13:05:57 +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
Carsten Haitzler
3df7e6ebfc
fix randr bug! -> tunix!
...
SVN revision: 51475
2010-08-21 02:37:20 +00:00
Christopher Michael
f8d86f6d7c
Remove blank line & fix formatting of function params.
...
SVN revision: 51397
2010-08-19 14:41:24 +00:00
Christopher Michael
3e61872e46
Add missing UNUSED.
...
SVN revision: 51396
2010-08-19 14:33:49 +00:00
Christopher Michael
4c30f8ec92
Handle missing case of POLICY_NONE.
...
SVN revision: 51395
2010-08-19 14:32:16 +00:00
Christopher Michael
a154885a59
Add some missing UNUSED macros.
...
SVN revision: 51394
2010-08-19 14:29:05 +00:00
Carsten Haitzler
67782a333f
from t_unix <- add none enum for randr
...
SVN revision: 51387
2010-08-19 08:25:34 +00:00
Sebastian Dransfeld
ff0f25ea7b
Fix inline functions
...
Inline functions which are to be used in serveral files must be
completly written in the .x file.
SVN revision: 51361
2010-08-18 21:27:40 +00:00
Christopher Michael
1e8383c131
Fix 'suggest braces around empty body if statement'.
...
SVN revision: 51291
2010-08-18 16:28:36 +00:00
Christopher Michael
b82186120a
Fix 'unused variable'.
...
SVN revision: 51290
2010-08-18 16:26:20 +00:00
Mike Blumenkrantz
236d58f0de
ecore_thread_pool -> ecore_thread_local
...
SVN revision: 51272
2010-08-18 08:56:44 +00:00
Vincent Torri
aaffd2acac
fix compilation without thread support
...
SVN revision: 51267
2010-08-17 19:21:47 +00:00
Cedric BAIL
59f3bf1eb6
* ecore: const Eina_Bool don't make any sense.
...
SVN revision: 51252
2010-08-17 14:48:21 +00:00
Lucas De Marchi
32a891e57e
Don't return int in functions returning Eina_Bool
...
SVN revision: 51201
2010-08-16 12:03:49 +00:00
Carsten Haitzler
e286f48745
and now ecore is 1.0.0 ready too.
...
SVN revision: 51165
2010-08-16 08:17:24 +00:00
Joerg Sonnenberger
df0903779c
From: Joerg Sonnenberger <joerg@britannica.bec.de>
...
Subject: [E-devel] ecore's poll file manager
Hi all,
attached is a small bugfix for ecore. If the to-be-monitored path
doesn't exist, the poll monitor currently tries to remove an item from a
list which was never hooked up.
SVN revision: 51123
2010-08-15 02:59:32 +00:00
Cedric BAIL
2531cd8114
* ecore: fix cancel from another thread.
...
SVN revision: 51119
2010-08-14 16:15:09 +00:00
Mike McCormack
3bdbb34d64
From: Mike McCormack <mj.mccormack@samsung.com>
...
This patch implements the ecore main loop in terms of the GTK main loop, so
ecore is a layer on top of glib.
Compared the the current glib integration in ecore, this has the added
advantage of allowing use of EFL libraries in GTK.
SVN revision: 51113
2010-08-14 11:19:03 +00:00
Leif Middelschulte
e7e09623ef
From: Leif Middelschulte <leif.middelschulte@gmail.com>
...
patch for ecore-x xrandr 1.3 support - breaks previous api. final api
change (i know about) before we go alpha. in to svn we go.
SVN revision: 51109
2010-08-14 10:21:03 +00:00
Eduardo de Barros Lima
4cc5441313
Ecore_Getopt: Fix attributions
...
Modern languages in general use the '=' character for attribution, while
',' character is for something else.
SVN revision: 51082
2010-08-13 15:34:25 +00:00
Lucas De Marchi
1c651049c5
Apply memset-calloc.cocci
...
Change calls to malloc + memset to calloc whenever an automatic conversion can
be done.
Possible candidates are not treated here, only the ones we can be sure the
conversion is safe.
SVN revision: 51078
2010-08-13 12:53:08 +00:00
Cedric BAIL
a6645cb746
* eina: fix eina array threadsafe version.
...
Also add iterator and accessor ability to walk threadsafely.
Rename EINA_EACH to EINA_EACH_CB to match other callback cast.
SVN revision: 51000
2010-08-11 14:32:30 +00:00
Carsten Haitzler
6308b452af
oooh that broke comp - hmm this bears some investigaing. remove eating
...
of show/hide events for ee's
SVN revision: 50982
2010-08-11 05:18:58 +00:00
Carsten Haitzler
18c41d2e78
work around a gl driver bug
...
export ECORE_EVAS_GL_FIRST_MAP_BUG=1
if you end up with blank empty windows when using evas gl engine in them
SVN revision: 50981
2010-08-11 05:12:22 +00:00
Lucas De Marchi
6b5d5eab73
Do not compare pointers to 0
...
SVN revision: 50973
2010-08-10 19:24:38 +00:00
Carsten Haitzler
f3f7274796
shapeinput too
...
SVN revision: 50879
2010-08-07 01:32:07 +00:00
Carsten Haitzler
2692e43cf1
shape event gets info.
...
SVN revision: 50878
2010-08-07 01:27:25 +00:00
Lucas De Marchi
bbc863fbe7
init/shutdown ecore in ecore_x_init
...
2 simple rules:
1) init what you use
2) shutdown what you init
SVN revision: 50836
2010-08-05 13:50:47 +00:00
Lucas De Marchi
4f12b27ec7
Fix return value
...
SVN revision: 50835
2010-08-05 13:48:43 +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
Nicolas Aguirre
bd0d948867
uncrustify ecore directfb
...
SVN revision: 50815
2010-08-04 16:17:53 +00:00
Nicolas Aguirre
53380ff916
Use english messages for error log.
...
SVN revision: 50814
2010-08-04 16:12:12 +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
Carsten Haitzler
ee1b715780
support calls++
...
SVN revision: 50760
2010-08-03 09:02:27 +00:00
Mike Blumenkrantz
bec24bf71f
fix random value generator.
...
SPANK SPANK SPANK!!!
SVN revision: 50750
2010-08-02 19:36:37 +00:00
Mike Blumenkrantz
54a05dc2aa
re-reformat
...
SVN revision: 50747
2010-08-02 18:54:27 +00:00
Mike Blumenkrantz
d07a90f62a
re-uncrustify
...
SVN revision: 50745
2010-08-02 17:47:49 +00:00
Mike Blumenkrantz
122ec75b01
return void* for data functions; depend on user not to be stupid (hahahahahah)
...
fix doxy to display correctly and be accurate once again
TODO: add functions to rwlock global data while threads are modifying it?
SVN revision: 50692
2010-07-30 20:33:32 +00:00
Mike Blumenkrantz
5d52fce3f6
rrrrrrrrrrrrrr stupid enum!
...
SVN revision: 50689
2010-07-30 17:03:34 +00:00
Mike Blumenkrantz
8c946dff90
grrrrr this enum is really starting to piss me off
...
SVN revision: 50688
2010-07-30 15:57:19 +00:00
Mike Blumenkrantz
d25cc594f9
remove ecore_thread_pool_data_wait, make thread data struct private again, return void* on _set(), fix global_wait to not mutex longer than wait time when no data added
...
SVN revision: 50687
2010-07-30 15:56:18 +00:00
Lucas De Marchi
8989ca1261
Spell: rememebr => remember
...
SVN revision: 50686
2010-07-30 11:34:08 +00:00
Mike Blumenkrantz
7c45637e38
add data freeing support to ecore thread data api
...
TO FUTURE MIKE: you were too tired to update the doxy last night and instead of writing the doxy updates you fell asleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
SVN revision: 50682
2010-07-30 08:52:18 +00:00
Mike Blumenkrantz
bc39497059
ssl cert cleanups: round 3
...
fix bitmask detection and refcount more correctly
SVN revision: 50679
2010-07-30 06:47:59 +00:00
Carsten Haitzler
ffc048d5e4
doc++
...
SVN revision: 50673
2010-07-30 02:57:39 +00:00
Carsten Haitzler
6dd1042033
fix close before fd handler del's
...
SVN revision: 50670
2010-07-30 02:50:50 +00:00
Carsten Haitzler
bdce85e21c
del x fd handler before close.
...
SVN revision: 50669
2010-07-30 02:44:43 +00:00
Carsten Haitzler
24bf638323
clean up epoll stuff a little bit. 32 events now.
...
SVN revision: 50668
2010-07-30 02:42:47 +00:00
Carsten Haitzler
0b3b437823
close after del fd handler
...
SVN revision: 50667
2010-07-30 02:42:17 +00:00
Carsten Haitzler
e3d14a1032
formatting ewwww
...
SVN revision: 50665
2010-07-30 00:35:57 +00:00
Carsten Haitzler
9c3ea35501
fix valgrind unittied buffer bitches
...
SVN revision: 50664
2010-07-30 00:27:02 +00:00
Mike Blumenkrantz
21a7365572
dropping my life to fix previously broken mess so people will stop complaining
...
SVN revision: 50663
2010-07-29 23:42:32 +00:00
Cedric BAIL
8f423ef340
* ecore: fix comment.
...
SVN revision: 50642
2010-07-29 12:29:19 +00:00
Mike Blumenkrantz
3515de0a22
typos are frustratinnnnnnnnnnggggggggggggggggggggggggggggggggggggggg
...
SVN revision: 50637
2010-07-29 08:13:58 +00:00
Carsten Haitzler
29e957d6a7
bad mike!. fix.
...
SVN revision: 50634
2010-07-29 05:43:20 +00:00