summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fix build when cxx is disableddevs/raster/utcMike Blumenkrantz2015-01-061-5/+4
|
* edje shadow warning--Mike Blumenkrantz2015-01-061-1/+0
| | | | | | added in c501f2ce ref D1768
* ecore-drm: Fix issue with TakeControl and ReleaseControl functionsChris Michael2015-01-061-4/+27
| | | | | | | | | | | | Summary: The dbus calls to TakeControl and ReleaseControl of a session are actual Methods that need to be setup and called in order to operate properly. As such, this commit fixes that issue by using the proper eldbus method calls, and fixes an issue where shutting down Enlightenment would lead to "cannot release control" error messages. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm: Fix incorrect launcher shutdown procedureChris Michael2015-01-061-9/+9
| | | | | | | | | | Summary: We need to clean tty handlers and close the tty Before we can call logind_disconnect as that function ends up shuttting down our dbus connection. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-evas-drm: Perform shutdown in proper orderChris Michael2015-01-061-1/+1
| | | | | | | | | | Summary: This fixes an incorrect order with shutdown of drm library. Sprites are created (during init) before inputs, so they should be shutdown After inputs are. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* eet: Remove unused variableChris Michael2015-01-061-2/+0
| | | | | | | | Summary: This just removes an unused variable spotted during compile. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore_evas: fix doc for ecore_evas_pointer_warp.Andrii Kroitor2015-01-061-1/+1
| | | | | | | | | | Reviewers: cedric Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1815 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* edje: Edje_Edit - add Proxy to Edje_Part_Collection_Directory_Entry ↵Cedric BAIL2015-01-061-0/+2
| | | | | | | | | | | | | | | | | | | | | initializatoin. Summary: Add proxy while init Edje_Part_Collection_Directory_Entry at edje_edit_group_add and edje_edit_group_alias_add. @fix @fix Reviewers: Hermet, seoz, cedric, raster Subscribers: reutskiy.v.v Projects: #efl Differential Revision: https://phab.enlightenment.org/D1846 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* eet: refactoring jpeg encoding.Cedric BAIL2015-01-061-147/+97
|
* eet: refactorize handling of endian.Cedric BAIL2015-01-061-98/+59
|
* eet: use eina_swap*() function instead of custom slower one.Cedric BAIL2015-01-061-17/+3
|
* Evas fonts: Fix minor deviation in RLE font renderJean-Philippe Andre2015-01-061-3/+1
| | | | | | | | | | | | | | | | | | So I've discovered some weird output values after drawing some text. The destination alpha would become 0xFE even when the back buffer had a background with 0xFF alpha. Example: Dest is 0xff00ff00 (green). Color is 0xffffffff (white). Current font alpha is 170 (0xaa). --> Output was 0xFEaaFEaa instead of 0xFFaaFFaa. This is because of some slightly invalid calculation when doing the font masking (mtab[v] = 0x55 above). Indeed, MUL_256 takes alpha values in the range [1-256] and not [0-256] as was assumed.
* eolian-cxx: Fixed mixed inheritance between C and C++ classesFelipe Magno de Almeida2015-01-053-17/+18
| | | | | Removed genereation for Eo.Base primitive methods which segfault'ed on parent_set function.
* eolian_cxx: Using eina::optional to handle parameters without @nonull propertyVitor Sousa2015-01-054-1/+152
|
* eina_cxx: Allow creating an eina::optional<T> from a type convertible to TVitor Sousa2015-01-051-2/+31
|
* eo_cxx: Implicit conversion from C++ wrapper to void* via address_of operatorVitor Sousa2015-01-051-0/+2
|
* eolian_cxx: Fix compilation of inheritance from Eolian generated classesVitor Sousa2015-01-0512-137/+59
| | | | | | | | | | | | | | | | | | | | | | Updated the code for the "inheritance helper" functions and classes to be in conformance with the new wrapper architecture. Member variable "parents" of efl::eo::eo_class struct was split in two member variables, "ancestors" and "parents", the former containing all Eo class ancestors and the later only the direct bases. Changed all required files accordingly. Check to avoid using biding string when the parameter is @out now matches any variation of "char". Add default constructor to efl::eo::concrete in order to allow it to be NULL initialized in the "inheritance helper" classes. Removed conflicting parent_set member function in the efl::eo::inherit class. Removed the "inheritance_extension_function" generator since it is no longer used.
* allow C++ user create new classes inheriting from Eolian generated ClassesLarry Jr2015-01-059-5/+221
|
* eolian_cxx: Add implicit conversion of the returned pointer of C++ wrappersVitor Sousa2015-01-0513-2/+305
| | | | | | | | | | | Overloaded address-of operator for C++ Eolian wrappers for implicit converting to any ancestor pointer type when getting the object memory address. Added new grammars to aid the creation of the pointer wrappers responsible of doing the implicit conversions. Added a unit test which checks the address-of overload for arbitrary classes. Added new .eo files to be used in it.
* eolian_cxx: Fix "dreaded diamond" inheritance problem for C++ wrappersVitor Sousa2015-01-056-42/+48
| | | | | | | | | | | | | | | | | | | | | | | Solved diamond inheritance problem by completely removing inheritance in the abstract class. All ancestors are inherited directly in the concrete class. The algorithm that list the ancestors also avoid repetition. Now concrete classes define methods too. This helps referring the correct method directly by the object type (when there are methods with the same name). Moved the declaration and definition of constructor methods to the concrete class, since they should not be used in derived classes. Updated example that call "color_set". With this model, if two ancestor classes have a method with the same name, to call one of them from a derived class you must write the scoped name of the member function in the wrapper. In this case, either Evas.Object and Evas.SmartObject have a property named "color". Added "from_global" option to the full_name grammar too.
* cxx: General C++ Eo wrapper generation improvementVitor Sousa2015-01-0533-374/+599
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using a new architecture in the generated files that simplify multiple inheritance and allows the use of interface types as parameters. No longer using a hand-crafted C++ header for eo_base.eo. This file was added to the generation process. Updated all files that are dependent in the hand-crafted eo_base C++ header. Now there is a class that contains the essentials functions of the former eo::base wrapper and that is used to create (through inheritance) the "concrete" classes for all Eo generated wrappers. No longer binding any function or property that are protected, private or legacy for now. eolian_type_instance is now a struct with general information for the whole type. Added the new header file namespace_generator.hh to hold namespace generation grammars. Separated declaration and definition of Eo wrappers methods. Referring for most objects by its full name (starting at the global namespace ::) in the generated files. Created additional helper grammars to avoid code replication. Removed a TODO comment referring to a doubt about inheritance of constructor methods. Added a TODO comment regarding memory allocation for callbacks in static member functions.
* catch exceptions in cxx wrappers and throw a eina_errorLarry Jr2015-01-051-4/+20
|
* eolian_cxx: Fix: Using binding type for @out parameter instead of native typeVitor Sousa2015-01-054-11/+62
| | | | | | | | | | | | | | | | | | | No longer reverting to the native type when the parameter has "@out" direction. Added "is_out" member variable to eolian_type class. With that, generators can keep track of the direction of the parameters. Also added helper functions "type_is_out" and "type_is_complex". Created "to_native" functions in eo_cxx_interop.hh to convert binding types from C++ arguments to the actual C function arguments. Added static assertions in these functions to enforce compatibility between the binding and the native type (Required by @out parameters). Reworked the overload of the "to_c" function for eo::base derivated objects. Now there is a overload that rely in the compatibility between the native type and the wrapper, enabling a wrapper to be used as an output parameter.
* eolian-cxx: Fixed C++ conversion for listsFelipe Magno de Almeida2015-01-053-18/+24
| | | | Signed-off-by: Vitor Sousa <vitorsousasilva@gmail.com>
* added new types in lookup tableLarry Jr2015-01-051-0/+3
| | | | Signed-off-by: Vitor Sousa <vitorsousasilva@gmail.com>
* eolian_cxx: Fix callback handling on generated wrappersVitor Sousa2015-01-056-242/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added callbacks to the event EO_EV_DEL for deleting heap-allocated function objects. This will enforce that the allocated memory, necessary for maintaining these callable objects alive, is freed at least when the underlaying Eo object is destroyed. Functions and constructor methods are now able to have multiple callback types. Removed some unused generators, since they become inconsistent now that functions are required to handle multiple callback types. Allocating callback objects in the constructor methods instead of delaying it until the final constructor is called. Created some generators to avoid code repetition. Now the generator parameters_forward_to_c replicate the behavior of the generator parameters_list. The generator parameters_list was, then, removed since it have a less intuitive name. Added a TODO comment regarding the behaviour of simple not translating callbacks that are not followed by a user data pointer. The generator parameter_type was moved from "parameters_generator.hh" to "type_generator.hh" for more consistency and convenience.
* eo_cxx: Fix leakage of eo objects by removing unnecessary "eo_ref"Vitor Sousa2015-01-051-1/+1
| | | | | Removed the call to eo_ref in the conversion from eo::base to the native Eo* (in "to_c" function) in order to avoid eo objects being leaked.
* eolian_cxx: Fix Eolian C++ generated wrapper inconsistenciesVitor Sousa2015-01-0515-154/+452
| | | | | | | | | | | | | | | | | | | | | | | | | | In convert.cc: Reading functions instead of implements to convert the Eolian_Class. It avoids creation of methods that do not belong to the class, in special it avoids calling the default constructor twice in the generated code. No longer generating one constructor in the C++ wrapper for each eolian class constructor, since the correct behavior demands that all constructor should be called. Now the wrappers have "constructor methods" that must be called when creating a new object. Updated test cases and examples to match the new interface. Some class constructors and some test cases have to be removed since they were based on the wrong assumption that constructors are mutually exclusive. Created new generators for forwarding parameters and for looping over the relevant parameters to the C++ wrapper executing a generic lambda. Added a TODO comment regarding the call of constructor methods of all base classes. Currently there is no base type with constructors, so this situation should be discussed more. Added a TODO comment regarding the way callback parameters are being processed.
* eolian_cxx: Assertions to ensure C++ wrapper compatibility with Eo*Vitor Sousa2015-01-054-1/+36
| | | | | | | | | | | | | | | Added static assertion in the generated header to ensure that the wrapper have the same size of Eo*, thus grating compatibility between these types. Added static assertion in the generated header to ensure that the wrapper have standard layout. This should ensure correct type sizes when dealing with inheritance. Created a test to ensure that eo::base and the eolian wrappers have the same size of a Eo*. Added eolian_cxx_test_wrapper.cc to the list of test source files in Makefile_Eolian_Cxx.am.
* eina_cxx: Using eina::eina_init in all tests casesVitor Sousa2015-01-053-2/+4
| | | | | | | | Removed the eina_init call from the test suite main function to enforce that each test case creates an instance of the eina::eina_init object. Added an eina::eina_init object instanciation for each test case that were lacking this code.
* eina_cxx: Fix eina::array cend method recursive calling itselfVitor Sousa2015-01-051-1/+1
| | | | @fix
* eina_cxx: Fix eina::accessor for C++ Eo wrappersVitor Sousa2015-01-054-87/+592
| | | | | | | | | | | | | | | | | | | Created a specialization of the eina::accessor for C++ Eo wrappers. Created an override of the "accessor" methods in the eina::list specialization for Eo wrappers (in eina_list.hh). It is necessary to create accessors with the correct type. Created specializations of std::is_base_of to avoid compilation errors related with _Eo_Opaque type. Added new test cases in "eina_cxx_test_accessor.cc" to test the accessor specialization. Added efl::eina::eina_init to the existing test cases to correctly do the on demand initialization required by the tests. @fix
* ecore-evas: Fix compiler warnings about inproper returnsChris Michael2015-01-051-2/+2
| | | | | | | | | Summary: This fixes missing return values in functions that return non-void @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* elua: more getopt.lua featuresDaniel Kolesa2015-01-051-87/+109
| | | | | | | Argument count limit is now supported. The source has been cleaned up and unified so that less code repeating is done. The module is now environment safe, not depending on specific metatable being set on strings. More callbacks have been added and error messages are now more descriptive.
* edje: fix @since to match the next release.Cedric BAIL2015-01-051-1/+1
| | | | Damn we release to fast ! Thanks davemds !
* ecore_evas/wayland_shm: Set alpha of ecore_evas object if parent alpha is setkabeer khan2015-01-051-2/+4
| | | | | | | | | | | | | | | Summary: Resolved FIXME ecore_evas_wayland_shm_new_internal to set alpha if parent alpha is set Signed-off-by: kabeer khan <kabeer.khan@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1842
* ecore_evas_wayland: Add null check conditions in ecore evas wayland modulevivek2015-01-051-0/+6
| | | | | | | | | | | | | | | | Summary: Added null check conditions to check ecore_evas pointer in various places of ecore evas wayland common module Signed-off-by: vivek <vivek.ellur@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1812
* ecore-drm: remove duplicated code from logind and tty.Seunghun Lee2015-01-054-344/+147
| | | | | | | | | | | | Summary: integrates the code used in common. Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1796
* edje: Edje_Edit - add API for renaming of image.Cedric BAIL2015-01-052-0/+37
| | | | | | | | | | | | | | Reviewers: Hermet, raster, seoz, cedric @feature Subscribers: reutskiy.v.v Projects: #efl Differential Revision: https://phab.enlightenment.org/D1830 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* edje: Edje_Edit - remake deletion and replacing of stringsCedric BAIL2015-01-051-107/+88
| | | | | | | | | | | | | | | | | | Summary: Add new function for replacing string with using eina_stringshare_replace() and change _edje_if_string_free() to setup passed string to NULL. @fix Reviewers: raster, Hermet, seoz, cedric Reviewed By: cedric Subscribers: reutskiy.v.v Projects: #efl Differential Revision: https://phab.enlightenment.org/D1835 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* [edje] refine odd lines to delete _edje_timerShinwoo Kim2015-01-051-2/+4
| | | | | | | | | | | | | | Summary: Refine odd lines to delete _edje_timer Test Plan: Run example using edc programs to change state Reviewers: raster, cedric, woohyun, jaehwan, Hermet Reviewed By: Hermet Subscribers: cedric, seoz Differential Revision: https://phab.enlightenment.org/D1838
* [eina-cxx] fix: wrong parameter type preventing the use of copy ctorVinícius dos Santos Oliveira2015-01-041-2/+2
| | | | | | "Eina_Stringshare *" type is interchangeable with "const char *". The "stealing" constructor from efl::eina::stringshare was incorrectly using "char *" instead "const char *", preventing it from being used.
* curl usage better accounts for timeoutszmike2015-01-021-6/+43
| | | | | | | | | | | | | curl is dumb. it needs to poll its own fd for data, it gets confused with its own timeouts, and sometimes it forgets that it's supposed to be doing anything. this fixes: * connection timeout processing * connection data processing order also curl_multi_timeout calls are now done from a single function to handle all of this stupidness in one place maybe backport after more testing...
* ecore_con: SSL error function is waiting for Eo object not their private data.Cedric BAIL2014-12-301-12/+12
|
* ecore_con: the timer callback is waiting for the Eo object not its private data.Cedric BAIL2014-12-301-2/+2
| | | | This @fix T1962 .
* Make it clear in documentation that these methods are not implemented.Andy Williams2014-12-292-3/+6
| | | | Even so return a more meaningful value - 0 is not a member of the Enum it returns.
* eeze: Fix unused variable build warning.Daniel Juyung Seo2014-12-291-0/+2
| | | | | | lib/eeze/eeze_udev_syspath.c: In function 'eeze_udev_syspath_set_sysattr': lib/eeze/eeze_udev_syspath.c:206:38: warning: unused parameter 'value' [-Wunused-parameter] double value) ^
* Revert "evas/gl_x11: set EGL_PLATFORM environment variable" as cedric wants ↵Daniel Juyung Seo2014-12-291-2/+0
| | | | | | to change it. This reverts commit 6fe870de1470239bde7fb0b78f71b882f9ad62bf.
* evas/gl_x11: set EGL_PLATFORM environment variableMinJeong Kim2014-12-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: Without EGL_PLATFORM environment variable, eglInitialize() can be failed because egl tried to load DRM platform instead of X11 platform and it tried to handle XDisplay pointer as a gbm_device pointer as well. The failure seems to be occured especially if the egl was built with DRM platform as native platform. This revision can prevent the failure by indicating proper egl platform using EGL_PLATFORM environment variable. @fix Reviewers: gwanglim, jaehwan, seoz Reviewed By: seoz Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1828
* Edje_Edit: Add sound samples into generated code for the group.ChunEon Park2014-12-291-0/+60
| | | | | | | | | | | | Summary: Include sound samples, that uses in programs of this group in collections block. @fix Reviewers: cedric, Hermet, raster, reutskiy.v.v Projects: #efl Differential Revision: https://phab.enlightenment.org/D1824