Commit Graph

264 Commits

Author SHA1 Message Date
Daniel Willmann 9772e3b5dc efl: Fix possible memory corruption in ecore xrandr EDID functions
Report from Klocwork. I checked that the actual max size of the name is
13 bytes. Now we allocate one more to hold the terminating NULL byte and
not write into unallocated memory.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80773
2012-12-12 17:23:09 +00:00
Daniel Willmann 0258402fe8 efl: Fix building examples when coverage is enabled
When we compile with coverage CFLAGS we also need to link with
-lcov

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80770
2012-12-12 16:21:32 +00:00
Daniel Willmann e9bd0b7a27 eet: Fix possible buffer overflow in functions relying on EET_T_LAST.
Issue reported by Klocwork. Backport, ChangeLog, NEWS included

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80767
2012-12-12 14:49:49 +00:00
Cedric BAIL a16f6e2330 evas: add ellipsis support in evas.
Patch done with help from Tom Hacohen.



SVN revision: 80763
2012-12-12 14:05:29 +00:00
ChunEon Park 19e600254f evas/gl - actually, this is correct.
SVN revision: 80758
2012-12-12 12:39:32 +00:00
Cedric BAIL ebd83134a4 efl: check that the object is not deleted or NULL before accessing it.
SVN revision: 80744
2012-12-12 09:45:49 +00:00
ChunEon Park 7d98f2be38 evas - fix the gl line inccorect position problem.
I tested gl line drawing on a few devices and found the x line start position was 1.

On the other hand, our evas draws the line on start position 0.

So it needs to shift by 1 pixel if evas is working on gl backcned.



SVN revision: 80734
2012-12-12 08:03:46 +00:00
Cedric BAIL 0d1b29e5e1 eet: fix memory leak with OpenSSL.
Reported by Leandro Santiago <leandrosansilva@gmail.com>.


SVN revision: 80648
2012-12-11 11:52:53 +00:00
Rui Seabra 3a27a91046 Since it's now AC_OUTPUT'ed, ecore_x_version.h does not need to be generated by sed.
SVN revision: 80626
2012-12-10 23:05:16 +00:00
Gustavo Sverzut Barbieri c5667e3802 efl/ecore_getopt: add ECORE_GETOPT_ACTION_BREAK.
Thanks to PrinceAMD (Deon Thomas) for bugging me to implement this,
then test and add a fix, now we can implement something similar to
"xterm -e" in terminology.

ECORE_GETOPT_ACTION_BREAK will allow generic options to behave the
same as GNU's --, breaking out of argument parsing logic.



SVN revision: 80619
2012-12-10 18:43:36 +00:00
Carsten Haitzler fab2f4b8a2 poolers typo--
SVN revision: 80560
2012-12-10 03:28:05 +00:00
Igor Murzov d2062a0d27 From: Igor Murzov <e-mail@date.by>
Subject: [E-devel] [PATCH][Ecore] Fixes for invalid memory read issues
discovered by cppcheck

One more patch to fix issues discovered by cppcheck.



SVN revision: 80559
2012-12-10 03:19:38 +00:00
Jihoon Kim 39bde067b8 scim-immodule: remove unnecessary code
SVN revision: 80557
2012-12-10 02:48:01 +00:00
Jihoon Kim 7de7a24644 scim-immodule: fix wrong parameter name
SVN revision: 80549
2012-12-09 12:36:35 +00:00
Jihoon Kim e13743279f scim-immodule: use ecore_x_display_get instead of XOpenDisplay
SVN revision: 80548
2012-12-09 12:34:10 +00:00
Sebastian Dransfeld 0ca3d42c6d ecore_x: right name for variable
SVN revision: 80534
2012-12-08 20:45:09 +00:00
Gustavo Sverzut Barbieri f8c480fc83 efl/ecore_x: add version and backend to header file.
instead of -DHAVE_ECORE_X_XCB in the pc, which is a super-hack, add a
proper compile-time generated ecore_x_version.h that is included by
Ecore_X.h

This file contains HAVE_ECORE_X_XLIB or HAVE_ECORE_X_XCB defined and
will also define ECORE_X_VERSION_MAJOR and ECORE_X_VERSION_MINOR as
per other EFL (Ecore), also defining the runtime version in
Ecore_X_Version.



SVN revision: 80524
2012-12-08 15:26:27 +00:00
Carsten Haitzler 05066801d3 lets have fcntl.h in eh?
SVN revision: 80521
2012-12-08 14:07:24 +00:00
Jihoon Kim bae5080e50 scim_immodule: implement slot_beep
SVN revision: 80513
2012-12-08 07:07:57 +00:00
Gustavo Sverzut Barbieri 2abb5474c4 efl/evas: make egl stuff compile with xcb
SVN revision: 80503
2012-12-07 22:50:47 +00:00
Gustavo Sverzut Barbieri ecadf8759c efl: generate keysym table for xcb
SVN revision: 80502
2012-12-07 22:50:06 +00:00
Gustavo Sverzut Barbieri aaf18a71a4 efl: baby steps to get sharing of options between evas and ecore-evas.
SVN revision: 80482
2012-12-07 18:24:49 +00:00
Alex Wu 4c534eb0e0 ecore-wayland: Fix monitoring ECORE_FD_WRITE defaultly on
wayland                display fd lead to 100% cpu usage

In ecore_wl_init(), adding wayland display fd with ECORE_FD_WRITE
flag make CPU usage 100%. The proper way to monitor the ECORE_FD_WRITE
is when the wl_display_flush() return value < 0 and errno == EAGAIN.
And if wl_display_flush() return, we remove ECORE_FD_WRITE flag from
the display fd.

Patch by: Alex Wu <zhiwen.wu@linux.intel.com>



SVN revision: 80476
2012-12-07 17:38:21 +00:00
Gustavo Sverzut Barbieri 892c64297e efl: begin (still partial!) to make an uniform choice of engines ecore/evas
still lots to do, but some improvements:

 - ecore_evas does not inherit pkg-config from modules since modules are SO

 - renamed internal ecore evas define from SOFTWARE_BUFFER to BUFFER,
   to make consistent.



SVN revision: 80473
2012-12-07 17:18:17 +00:00
Gustavo Sverzut Barbieri 7d41d6ace2 efl: valgrind is also in evas
SVN revision: 80463
2012-12-07 14:17:09 +00:00
Gustavo Sverzut Barbieri e674ea6706 efl: simplify valgrind handling
SVN revision: 80460
2012-12-07 14:10:55 +00:00
Cedric BAIL 88ba56d9d5 efl: don't leak fd on exec.
SVN revision: 80434
2012-12-07 11:01:41 +00:00
Sung Park 931e4f9325 Fixed polygon rendering bug in GL backend when there are cutouts.
It was clipping everything to (0,0,0,0) so it was all clipped out.


SVN revision: 80427
2012-12-07 10:02:26 +00:00
Sung Park dbcdaa6b68 Added EVAS_GL_LINE_NO_OFFSET_HACK evn var control to handle
line coordinate fiddling in gl line drawing code.  This fiddling
caused issues on some GPU drivers on ARM target.



SVN revision: 80417
2012-12-07 08:28:42 +00:00
Cedric BAIL 21bb5db3e2 efl: fix build with debug profile.
SVN revision: 80406
2012-12-07 02:32:11 +00:00
Gustavo Sverzut Barbieri 81bd007e5b efl: share HAVE_ATFILE_SOURCE between eina_file, ecore_file...
SVN revision: 80391
2012-12-06 21:15:30 +00:00
Flavio Vinicius Alvares Ceolin 186156afbc ecore_evas: Removing warning about unused function
Now the engines are modules, the checking for the engine is not done
in the compile time anymore, so we're removing these checks.



SVN revision: 80389
2012-12-06 20:39:20 +00:00
Gustavo Sverzut Barbieri bdbf2171fe efl/evas: simplify dither mask handling.
* a single option --with-evas-dither-mask=TYPE (big, small, line or none).

 * make a wise decision to fallback to small dither mask for
   conversions that do not support "no-dither" or "line". Before if
   you did not specify it would fallback to big (128x128).



SVN revision: 80383
2012-12-06 19:44:11 +00:00
Gustavo Sverzut Barbieri 62bb4646c9 efl/ecore_file: refactor to be more like eio in providing backends.
instead of the previous mess, just define the functions with common
names and call the backend that was compiled in, similar to what eio
does.

also do not be silent on errors, use eina_safety_checks to issue warnings.



SVN revision: 80360
2012-12-06 13:38:34 +00:00
Gustavo Sverzut Barbieri 6a5eaacc6a efl: common inotify checks, simplified.
Another try to make inotify checks more common.

This time uses AC_CHECK_HEADERS() as for others, that already define
HAVE_SYS_INOTIFY_H, then uses that.

I still kept AM_CONDITIONAL([HAVE_INOTIFY]) because I plan to convert
ecore_file to the same, smarter, method that is used in eio (compiling
the file depending on the backend.



SVN revision: 80358
2012-12-06 13:02:59 +00:00
Gustavo Sverzut Barbieri f8dd49ded4 efl: ecore thread safety (remove option, keep code, add instructions).
* remove the option, as it shouldn't really exist.

 * keep code, as requested by Cedric, someone may fix it someday. And
   the default is the DISABLED, as the enable was broken.

 * Add instructions on how to solve the problem, if a brave folk is up
   to it.



SVN revision: 80352
2012-12-06 12:18:24 +00:00
Vincent Torri 8e1879ade9 inotify: revert : i want to keep autotools **modularized**. Instead, use in Eio what has been detected in Ecore_File.
SVN revision: 80298
2012-12-06 07:23:50 +00:00
Cedric BAIL 1a3bb9f009 efl: revert r80290 as it bork the world.
SVN revision: 80296
2012-12-06 03:02:47 +00:00
Cedric BAIL 7396a53bb4 efl: update module path to reflect current state.
Patch by Jérémy Zurcher <jeremy@asynk.ch>.


SVN revision: 80294
2012-12-06 01:58:15 +00:00
Cedric BAIL 74872a4d09 efl: let Ecore_EVas_Extn link with Ecore_Ipc as needed.
I think some people earned a borker badge here :-)


SVN revision: 80293
2012-12-06 01:55:42 +00:00
Gustavo Sverzut Barbieri 9d93fc18da efl: simplify inotify by moving it to common.
also deprecate very ancient inotify usage by direct syscall.



SVN revision: 80292
2012-12-06 00:57:29 +00:00
Gustavo Sverzut Barbieri 2731721d50 efl: thread safety by default.
it's better to test this case and make it the only one and make it
work, than have two options that may not work.



SVN revision: 80290
2012-12-06 00:30:46 +00:00
Gustavo Sverzut Barbieri 48120ec0c8 efl: both eet and ecore_con now share --with-crypto and defines.
* rename USE_GNUTLS and USE_OPENSSL to HAVE_GNUTLS and HAVE_OPENSSL
   in ecore_con, to match other modules such as Eet.

 * define requirements_pc_crypto, requirements_pc_deps_crypto and
   requirements_libs_crypto so modules can use that.

 * move to a common check section.



SVN revision: 80288
2012-12-06 00:11:14 +00:00
Gustavo Sverzut Barbieri 511d8e8672 efl/eet: bumped requirement for gnutls >= 2.11 thus remove legacy code.
SVN revision: 80287
2012-12-05 23:44:45 +00:00
Gustavo Sverzut Barbieri 65bd780c3b efl: turn cpu extensions detection into generic section, simplify a bit.
* remove EVAS_ prefix as it may be used by other libs some day.

 * SSE3 is detected at runtime if x86.

 * remove AC_SUBST([altivec_cflags]) as it was not being used anywhere.

 * moved to top of file (maybe position is not optimal, let's wait
   vtorri to review)

 * simplified single-line summary that is as informative as before.



SVN revision: 80284
2012-12-05 23:18:59 +00:00
Carsten Haitzler 7b7a611805 if you are going to use symbols implicitly from a module provided by a
lib.. you have to EAPI them!



SVN revision: 80283
2012-12-05 23:11:46 +00:00
Flavio Vinicius Alvares Ceolin ad7579c129 ecore_evas: Make the engines loadable modules
Implementing support for loadables modules. It makes the engines been
loaded when they are needed. It not breakes the api, so each engine
still has its own api.

The implementation basically is:

* Functions that creates Ecore_Evas, for example
  ecore_evas_software_x11_new, request to load its module and then get
  the module's function to create the Ecore_Evas.
* The other functions such as \(.*\)_window_get from the Ecore_Evas
  its interface and then call the appropriate method.
* As there is no unified interface to communicate with the engines
  (not break api problem), all interfaces were declared in
  ecore_evas_private.h
* Now the data necessary for each module is not declared in the
  Ecore_Evas_Engine structure, instead of this, the struct has a void
  pointer that is used by the modules.
* In this first moment engines as software_x11 and gl_x11 were put
  together in the same module, but obviously exporting all the things
  necessary.


SVN revision: 80280
2012-12-05 21:15:42 +00:00
Vincent Torri 1a2daa057d add eio example and fix ecore_fb linking
SVN revision: 80273
2012-12-05 18:10:43 +00:00
Rafael Antognolli 8ea3c29132 ecore/wayland_egl: Remove image_mask_create from this engine too.
SVN revision: 80267
2012-12-05 16:33:46 +00:00
Daniel Willmann 5f81e0226d Make ecore examples compile again
Including ECORE_LIBS in LDADD is not enough, we have to include the
relevant libs from efl as well (eina, evas, ...)

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80260
2012-12-05 15:28:10 +00:00