Commit Graph

27874 Commits

Author SHA1 Message Date
Daniel Kolesa 85a135d32e elua: remove the eo_methods stuff, improve class registration 2014-09-24 13:37:26 +01:00
Daniel Kolesa 0061d5a437 elua: Eo metatype with method table redirection 2014-09-24 11:51:27 +01:00
Carsten Haitzler 222b49ba7c ecore_x_vsync - fix tiny leaklet of drmversion
@fix
2014-09-24 19:34:40 +09:00
Daniel Kolesa 92d39a9ed9 elua: ad the rest of Eo APIs to ffi cdef 2014-09-24 11:10:08 +01:00
Andrii Kroitor adff9e013d evas_events: fixed keyup with modifier
Summary:
removed check that disallows exact modifiers set.
I.e. if we need Ctrl+s without any other modifiers:

mask = evas_key_modifier_mask_get(obj, "Control");
evas_object_key_grab(obj, "o", mask, ~mask, false);

This works with keydown, but was broken with keyup.

Reviewers: cedric, seoz, Hermet, raster

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1474

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Signed-off-by: Carsten Haitzler (Rasterman) <raster@rasterman.com>
2014-09-24 11:43:37 +02:00
Daniel Kolesa cc1a5149fe elua: add some more eo APIs to ffi cdef 2014-09-24 10:39:47 +01:00
Jérémy Zurcher 65b2dd391a eina_value_util_type_offset: abs(unsigned int) is nonsense 2014-09-24 11:15:58 +02:00
Cedric BAIL c9fe6d64a8 eo: use the "EXTRA_DIST" macro to install .py files
Summary:
The SCRIPTS macro will add the executable flag (+x) to the Python scripts ; but as
these do not have a shebang (#!/bin/python) and we are executing them explicitly with
"python ...", it is useless. Plus, some build environments will issue a warning about
this.

Reviewers: tasn, JackDanielZ

Subscribers: mbachmann

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D1469

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-24 10:26:40 +02:00
Srivardhan Hebbar 4d0483608e autotools: modified autogen.sh to be able to build from any directory.
Summary:
Now we cannot have a designated build directory for building EFL. We have to build from the same source folder only. So have modified autogen.sh script
so that we can build from any directory. This is similar to the one which I had submitted for Enlightenment and Elementary.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns, cedric, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1480

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-24 10:20:13 +02:00
Carsten Haitzler 43e8aeee1b efl build - fix parallel builds with new branch merge from dh
fix tha broken stuff like missing dependencies and links for drm
engine module that cause parallel build breaks!
2014-09-24 09:07:57 +09:00
Chris Michael 763b210f4e eeze: Fix missing break in switch(s)
Summary: Fixes Coverity CID1240226, CID1240225

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 19:19:47 -04:00
Mike Blumenkrantz cbcd9c3718 +eina_strdup(), eina_streq()
there are macros/inlines for these in most efl projects I've seen, may as well have them standardized here

@feature
2014-09-23 16:15:34 -04:00
Mike Blumenkrantz 3dd8fb8a55 move eina_value_util_time_string_new() to not inline
uses strptime which will cause warnings for people who don't do includes correctly
2014-09-23 15:56:46 -04:00
Mike Blumenkrantz 5375e154fe fix config.h inclusion across the tree 2014-09-23 15:56:46 -04:00
Mike Blumenkrantz d7f729343b add eina_value_util.h to Eina.h 2014-09-23 15:56:46 -04:00
Chris Michael e16c4097d4 Merge branch 'devs/devilhorns/ecore_drm_eeze'
ecore-drm: Port existing ecore-drm to use Eeze

ecore-drm now uses Eeze library for udev device functions. This
removes the existing dependency on udev and makes use of our own
library (Eeze) to find, list, watch, and otherwise deal with udev
devices. This is the last of the ecore-drm code that needs porting

NB: Ecore-Drm Now uses Eeze for udev and Eldbus for dbus functionality.

@feature
2014-09-23 15:50:44 -04:00
Chris Michael e19fbbcd45 ecore-drm: Port ecore_drm_output backlight init code to use Eeze
Summary: This ports the current backlight_init code to use Eeze
library instead of udev functions directly.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:47:04 -04:00
Chris Michael a0395b07c5 ecore-drm: Port ecore_drm_inputs code to use Eeze instead of udev
Summary: This changes all of our internal ecore-drm input code to use
Eeze library instead of udev directly.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael 777e64fea5 ecore-drm: Remove udev from private header and add an Eeze_Udev_Watch
for Ecore_Drm_Input

Summary: This commit removes all references to 'udev' in the private
header, and replaces udev_monitor (in Ecore_Drm_Input structure) with
an Eeze_Udev_Watch.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael f16e061685 ecore-drm: Fix ecore_drm_device_find function to use Eeze
Summary: This converts the internal code of ecore_drm_device_find
function to use Eeze function calls instead of udev in order to locate
the drm card.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael 16d8352ebe ecore-drm: Remove references to udev functions and init Eeze during
startup

Summary: This removes the variable & function calls to udev and adds
code to initialize/shutdown Eeze.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael 9228a6ac6b ecore-drm: Fix comment to not mention udev
@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael e35f3414d1 ecore-drm: Add Eeze as an internal dependency for ecore-drm
@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael 368e9de044 ecore-drm: Remove internal dependency on libudev
@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael 29958c519f ecore-drm: Remove dependency on libudev for ecore-drm
@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael 043fab5a4c ecore-drm: Add Eeze as a dependency for Ecore_Drm
@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael a0b54c0c43 ecore-drm: Move Eeze above Ecore_Drm
Summary: Ecore_Drm is going to be using Eeze for udev functionality,
so we need to check for Eeze deps before Ecore_Drm

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:31:12 -04:00
Chris Michael 30c6aed053 eeze: Add cases for backlight and leds in get_syspath_from_watch.
Summary: This adds support for backlight and leds devices for use with
an Eeze_Udev_Watch

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:26:30 -04:00
Chris Michael c2f5e8331a eeze: Add cases for backlight and leds in eeze_udev_find_by_type
Summary: Add code to find backlight and led devices inside
eeze_udev_find_by_type function. This will be used in Ecore-Drm to
find the backlight of an output.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:25:29 -04:00
Chris Michael 6ef4f70b22 eeze: Add Eeze udev types for backlight and leds
Summary: Add additional types to Eeze udev device types for backlight
and leds. Ecore-Drm will use these types to locate the backlight in
order to support setting/getting the backlight level on an output.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:20:14 -04:00
Chris Michael 39db828aad ecore-evas-drm: Fix calling ecore_drm_device_find twice in some cases
Summary: If no device name was passed in to ecore_drm_device_find
function, then if we fail to find the default drm device on the first
call, there is No point in calling the same function again to get the
same result.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 15:09:47 -04:00
Chris Michael 431c3cac58 eeze: Fix issue with eeze_udev_find_by_type not finding devices when
name is NULL.

Summary: This was totally wrong !! eeze_udev_find_by_type can be
passed EEZE_UDEV_TYPE_NONE to list all devices and it can also be
passed name == NULL to find All devices listed of a certain type. To
check for !etype && !name is just plain Wrong !! We have checks below
for a valid name (and then do a comparison).

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 14:58:37 -04:00
Mike Blumenkrantz 8dffde69d1 rename eina_value_util_timestamp_new -> eina_value_util_time_string_new 2014-09-23 14:57:10 -04:00
Mike Blumenkrantz 77ba1c2761 +eina_value_util api
merged from maelstrom/azy. commonly used functionality for eina_value with _util_ namespace to make them easier to find in the value header nightmare

@feature
2014-09-23 14:37:48 -04:00
Chris Michael 5fbe3f1f70 eeze: Fix return value for eeze_udev_syspath_get_sysnum
Summary: oopsie !! Big fat copy/paste error :( This fixes the return
value for the eeze_udev_syspath_get_sysnum function

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 13:04:57 -04:00
Chris Michael 25c3570294 eeze: Add code for eeze_udev_syspath_get_sysnum function
Summary: This adds an API function to return the sysnum of a device
based on syspath. This is needed in ecore-drm to return the id
(sysnum) of a drm device.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 13:01:14 -04:00
Chris Michael 34ba873497 eeze: Add eeze_udev_syspath_get_synum function
Summary: This adds an API declaration for getting the sysnum of a
device from the syspath. This is needed in the ecore-drm code to fetch
the id of a device.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 13:01:11 -04:00
Cedric BAIL 0a6f26a106 edje: fix borked edje_external.
Someone fixed a CID without looking of the full use path a data, resulting
in a value being used after free and stored in edje file. Leading to a garbage
string with no meaning for those poor externals.
2014-09-23 18:05:29 +02:00
Vincent Torri 291c546143 eina: do no use umask on Windows in eina_file_mkstemp()
umask() sets the permissions of the file to read-only on Windows
(see umask documentation on MSDN).
This breaks the creation of .edj file (epp needs to modify the
created file).
Anyway, on Windows, permissions should be given to anybody.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-23 16:41:32 +02:00
Chris Michael 5a0e67e81d Merge branch 'devs/devilhorns/eeze'
eeze: Add ability for Eeze to find DRM cards

Ecore-Drm is going to use Eeze (instead of udev directly) to locate
drm cards and other inputs. As such, I needed the ability (inside
Eeze) to locate devices based on the drm subsystem. This merge adds
code to handle that.

@feature
2014-09-23 10:04:53 -04:00
Chris Michael e597f0b30b eeze: Add ability to get syspath from a watch for DRM
Summary: This adds the EEZE_UDEV_TYPE_DRM to the switch for
_get_syspath_from_watch.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 10:04:30 -04:00
Chris Michael d0dbd498df eeze: Add case for EEZE_UDEV_TYPE_DRM in eeze_udev_find_by_type function
Summary: This adds the ability to find drm cards using
eeze_udev_find_by_type function.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 10:04:30 -04:00
Chris Michael 6469405540 eeze: Add missing drm subsystem & device type and add a new
Eeze_Udev_Type for drm

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 10:04:30 -04:00
Tom Hacohen b33372b1f6 Eo do: simplify eo_do macro.
This moves the mainloop check inside the function. There was never need
for it to be in client code (i.e a header/macro).
This is better suited inside eo_do_start because this is a macro some
bindings have to re-implement, and we definitely don't want it to be any
more complicated than it has to be.

This breaks ABI and makes elm 1.12 depend on efl 1.11. This is not an issue
as because of eolian and interfaces it's already the case.
2014-09-23 14:36:20 +01:00
Chris Michael 0f24804c1a ecore-drm: Fix minor formatting issue
NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-23 08:41:43 -04:00
vivek 05ea3edda5 Ecore_drm: Added initial support for backlight in ecore_drm module
Summary:
Added initial support for backlight in drm by adding various structures
and provided api for initializing the backlight struct.

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: devilhorns, stefan_schmidt

Subscribers: stefan_schmidt, cedric

Differential Revision: https://phab.enlightenment.org/D1448
2014-09-23 08:41:43 -04:00
Carsten Haitzler 13295d7350 efl - vsync - deal with both broken and non-broken libdrm
@fix
2014-09-23 21:31:54 +09:00
Jérémy Zurcher 119134751f evas/engines: avoid redefinition of typedef Outbuf
'typedef struct _Outbuf Outbuf' is in software_generic/Evas_Engine_Software_Generic.h
that is always included
2014-09-23 11:16:47 +02:00
Amitesh Singh e66e132d9d Revert "edje: prevent resource leak."
Summary:
This reverts commit f6eb1f17a1.

This will result into failure of edc compilation with recursive use of include.

Reviewers: cedric, raster, seoz

Reviewed By: seoz

Subscribers: chinmaya061, cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1475

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-23 11:08:43 +02:00
Jérémy Zurcher cbcb8e29ec eolian: silence uninitialized var in goto end branch 2014-09-23 10:56:57 +02:00