platform/upstream/efl.git
9 years agoEo tests: Add the needed define for accessing protected calls. (2)
Tom Hacohen [Wed, 6 May 2015 17:03:57 +0000 (18:03 +0100)]
Eo tests: Add the needed define for accessing protected calls. (2)

I don't know how came I missed that one the last time.

9 years agoEo: Add eo_do_part.
Tom Hacohen [Fri, 17 Apr 2015 13:31:19 +0000 (14:31 +0100)]
Eo: Add eo_do_part.

This is a convenience macro to be used by the common pattern of getting
a part and then immediately calling functions on it. For example,
  without this macro, you'd have to write code like:

Eo *part;
eo_do(obj, part = efl_part_name_get("partname"));
eo_do(part, a_set(7));

while using the helper function trims it to:

eo_do_part(obj, efl_part_name_get("partname"), a_set(7));

@feature

9 years agoEo tests: Add the needed define for accessing protected calls.
Tom Hacohen [Wed, 6 May 2015 16:05:38 +0000 (17:05 +0100)]
Eo tests: Add the needed define for accessing protected calls.

Fixes the warnings. Thanks to cedric for reporting.

9 years agoEo base: Reorder the eolian file to be in a sensible order.
Tom Hacohen [Fri, 1 May 2015 14:59:57 +0000 (15:59 +0100)]
Eo base: Reorder the eolian file to be in a sensible order.

9 years agoEo base: Fix eo_constructor's declaration.
Tom Hacohen [Fri, 1 May 2015 14:47:35 +0000 (15:47 +0100)]
Eo base: Fix eo_constructor's declaration.

Remove it from the constructors section.
This was wrong. This place is for functions that are allowed to be
passed to eo_add() and should be used by bindings to create
constructors.
This is wrong for both cases, as this should always be called, not
optional.

Also remove the redundant legacy: null.

9 years agoEo: Improve documentation.
Tom Hacohen [Fri, 1 May 2015 14:36:13 +0000 (15:36 +0100)]
Eo: Improve documentation.

9 years agoEo: Take eo out of beta.
Tom Hacohen [Fri, 1 May 2015 12:10:01 +0000 (13:10 +0100)]
Eo: Take eo out of beta.

This is following a last review and a discussion on IRC. Eo has been
stable (apart of a decision a few months ago to support more compilers)
for a long while. Developers are already using it for a while, and it's
stupid to break it for them anyway, so we might as well make this
promise now. There are no plans to change it anymore, and it's been
heavily used and tested throughout the EFL for a few releases now.

I'm tagging it as a feature, although it's not, I'm doing it for the
automatic changelog generation. :)

@feature.

9 years agoEo base: mark composite API as not ready.
Tom Hacohen [Fri, 1 May 2015 11:57:40 +0000 (12:57 +0100)]
Eo base: mark composite API as not ready.

9 years agoMerge branch 'devs/q66/elua_lib_overhaul'
Daniel Kolesa [Wed, 6 May 2015 14:05:55 +0000 (15:05 +0100)]
Merge branch 'devs/q66/elua_lib_overhaul'

This merge introduces a solid, documented API for the Elua library,
allowing people to embed Elua into their own applications. For now
this library is beta and will remain so for a while, in case more
changes are necessary.

9 years agoelua lib: use -1 for default values in localeconv
Daniel Kolesa [Thu, 30 Apr 2015 12:35:11 +0000 (13:35 +0100)]
elua lib: use -1 for default values in localeconv

9 years agoelua lib: add API to retrieve lconv from lua
Daniel Kolesa [Thu, 30 Apr 2015 10:50:09 +0000 (11:50 +0100)]
elua lib: add API to retrieve lconv from lua

9 years agoelua lib: add a func to retrieve the current translation lang
Daniel Kolesa [Thu, 30 Apr 2015 10:15:48 +0000 (11:15 +0100)]
elua lib: add a func to retrieve the current translation lang

9 years agoelua lib: remove unnecessary checks (always initialized)
Daniel Kolesa [Mon, 27 Apr 2015 10:34:29 +0000 (11:34 +0100)]
elua lib: remove unnecessary checks (always initialized)

9 years agoelua lib: fix elua_util_app_load + docs
Daniel Kolesa [Mon, 27 Apr 2015 10:30:33 +0000 (11:30 +0100)]
elua lib: fix elua_util_app_load + docs

9 years agoelua lib: use Eina_Bool as return val in some utils
Daniel Kolesa [Fri, 24 Apr 2015 15:01:24 +0000 (16:01 +0100)]
elua lib: use Eina_Bool as return val in some utils

9 years agoelua lib: fix tests
Daniel Kolesa [Thu, 23 Apr 2015 15:13:27 +0000 (16:13 +0100)]
elua lib: fix tests

9 years agoelua lib: merge the 3 setup funcs into one
Daniel Kolesa [Thu, 23 Apr 2015 15:02:58 +0000 (16:02 +0100)]
elua lib: merge the 3 setup funcs into one

This allows simpler initialization and elua_util_require
can now queue up modules before full initialization is done.

9 years agoelua: include fix
Daniel Kolesa [Thu, 23 Apr 2015 14:39:37 +0000 (15:39 +0100)]
elua: include fix

9 years agoelua: remove long opts (not necessary or useful)
Daniel Kolesa [Thu, 23 Apr 2015 14:30:12 +0000 (15:30 +0100)]
elua: remove long opts (not necessary or useful)

9 years agoelua lib: docs for elua_util_error_report + remove unnecessary arg
Daniel Kolesa [Mon, 20 Apr 2015 16:04:33 +0000 (17:04 +0100)]
elua lib: docs for elua_util_error_report + remove unnecessary arg

9 years agoelua lib: docs for elua_util_script_run
Daniel Kolesa [Mon, 20 Apr 2015 16:00:16 +0000 (17:00 +0100)]
elua lib: docs for elua_util_script_run

9 years agoelua lib: docs for elua_util_app_load
Daniel Kolesa [Mon, 20 Apr 2015 15:53:34 +0000 (16:53 +0100)]
elua lib: docs for elua_util_app_load

9 years agoelua lib: docs for elua_util_string_run
Daniel Kolesa [Mon, 20 Apr 2015 15:52:21 +0000 (16:52 +0100)]
elua lib: docs for elua_util_string_run

9 years agoelua lib: docs for elua_util_file_run
Daniel Kolesa [Mon, 20 Apr 2015 15:51:25 +0000 (16:51 +0100)]
elua lib: docs for elua_util_file_run

9 years agoelua lib: docs for elua_util_require
Daniel Kolesa [Mon, 20 Apr 2015 15:49:53 +0000 (16:49 +0100)]
elua lib: docs for elua_util_require

9 years agoelua lib: docs for elua_io_loadfile
Daniel Kolesa [Mon, 20 Apr 2015 15:38:52 +0000 (16:38 +0100)]
elua lib: docs for elua_io_loadfile

9 years agoelua lib: docs for elua_state_io_setup
Daniel Kolesa [Mon, 20 Apr 2015 15:35:55 +0000 (16:35 +0100)]
elua lib: docs for elua_state_io_setup

9 years agoelua lib: docs for elua_state_modules_setup
Daniel Kolesa [Mon, 20 Apr 2015 15:34:35 +0000 (16:34 +0100)]
elua lib: docs for elua_state_modules_setup

9 years agoelua lib: docs for elua_state_i18n_setup
Daniel Kolesa [Mon, 20 Apr 2015 15:33:38 +0000 (16:33 +0100)]
elua lib: docs for elua_state_i18n_setup

9 years agoelua lib: docs for elua_state_lua_state_get
Daniel Kolesa [Mon, 20 Apr 2015 15:12:22 +0000 (16:12 +0100)]
elua lib: docs for elua_state_lua_state_get

9 years agoelua lib: docs for elua_state_appload_ref_push
Daniel Kolesa [Mon, 20 Apr 2015 15:10:49 +0000 (16:10 +0100)]
elua lib: docs for elua_state_appload_ref_push

9 years agoelua lib: docs for elua_state_require_ref_push
Daniel Kolesa [Mon, 20 Apr 2015 15:10:31 +0000 (16:10 +0100)]
elua lib: docs for elua_state_require_ref_push

9 years agoelua lib: docs for elua_state_include_path_add
Daniel Kolesa [Mon, 20 Apr 2015 15:09:37 +0000 (16:09 +0100)]
elua lib: docs for elua_state_include_path_add

9 years agoelua lib: add docs for elua_state_prog_name_get
Daniel Kolesa [Mon, 20 Apr 2015 15:08:36 +0000 (16:08 +0100)]
elua lib: add docs for elua_state_prog_name_get

9 years agoelua lib: add docs for the dir retrieval APIs.
Daniel Kolesa [Mon, 20 Apr 2015 14:06:01 +0000 (15:06 +0100)]
elua lib: add docs for the dir retrieval APIs.

9 years agoelua lib: add doc for elua_state_dirs_fill
Daniel Kolesa [Mon, 20 Apr 2015 14:03:53 +0000 (15:03 +0100)]
elua lib: add doc for elua_state_dirs_fill

9 years agoelua lib: add docs for elua_state_dirs_set
Daniel Kolesa [Mon, 20 Apr 2015 13:57:43 +0000 (14:57 +0100)]
elua lib: add docs for elua_state_dirs_set

9 years agoelua lib: add state_free doc
Daniel Kolesa [Mon, 20 Apr 2015 13:49:10 +0000 (14:49 +0100)]
elua lib: add state_free doc

9 years agoelua lib: add state_from_lua_state_get doc
Daniel Kolesa [Mon, 20 Apr 2015 13:47:47 +0000 (14:47 +0100)]
elua lib: add state_from_lua_state_get doc

9 years agoelua lib: add state_new doc
Daniel Kolesa [Mon, 20 Apr 2015 13:45:08 +0000 (14:45 +0100)]
elua lib: add state_new doc

9 years agoelua lib: add init/shutdown doc
Daniel Kolesa [Mon, 20 Apr 2015 13:41:50 +0000 (14:41 +0100)]
elua lib: add init/shutdown doc

9 years agoelua lib: start adding documentation
Daniel Kolesa [Mon, 20 Apr 2015 13:38:18 +0000 (14:38 +0100)]
elua lib: start adding documentation

9 years agoelua lib: hide some APIs that should not be public
Daniel Kolesa [Thu, 16 Apr 2015 15:30:05 +0000 (16:30 +0100)]
elua lib: hide some APIs that should not be public

9 years agoelua lib: test elua_util_script_run
Daniel Kolesa [Thu, 16 Apr 2015 15:20:55 +0000 (16:20 +0100)]
elua lib: test elua_util_script_run

9 years agoelua lib: test elua_util_file_run
Daniel Kolesa [Thu, 16 Apr 2015 15:06:48 +0000 (16:06 +0100)]
elua lib: test elua_util_file_run

9 years agoelua lib: unset environment vars in tests
Daniel Kolesa [Thu, 16 Apr 2015 14:38:28 +0000 (15:38 +0100)]
elua lib: unset environment vars in tests

9 years agoelua lib: test raw file load
Daniel Kolesa [Thu, 16 Apr 2015 14:36:17 +0000 (15:36 +0100)]
elua lib: test raw file load

9 years agoelua lib: test error reporting + lua stack state
Daniel Kolesa [Thu, 16 Apr 2015 14:33:10 +0000 (15:33 +0100)]
elua lib: test error reporting + lua stack state

9 years agoelua lib: test more utility APIs
Daniel Kolesa [Thu, 16 Apr 2015 14:25:37 +0000 (15:25 +0100)]
elua lib: test more utility APIs

9 years agoelua lib: test some util APIs
Daniel Kolesa [Thu, 16 Apr 2015 14:23:33 +0000 (15:23 +0100)]
elua lib: test some util APIs

9 years agoelua lib: tests for require/appload refs
Daniel Kolesa [Thu, 16 Apr 2015 14:16:15 +0000 (15:16 +0100)]
elua lib: tests for require/appload refs

9 years agoelua lib: setup funcs tests
Daniel Kolesa [Thu, 16 Apr 2015 14:11:43 +0000 (15:11 +0100)]
elua lib: setup funcs tests

9 years agoelua lib: test elua_state_dirs_fill
Daniel Kolesa [Thu, 16 Apr 2015 14:08:02 +0000 (15:08 +0100)]
elua lib: test elua_state_dirs_fill

9 years agoelua lib: tests for core dirs + fix core dirs
Daniel Kolesa [Thu, 16 Apr 2015 13:58:42 +0000 (14:58 +0100)]
elua lib: tests for core dirs + fix core dirs

9 years agoelua lib: test progname
Daniel Kolesa [Thu, 16 Apr 2015 13:08:28 +0000 (14:08 +0100)]
elua lib: test progname

9 years agoelua: test state retrieval
Daniel Kolesa [Thu, 16 Apr 2015 13:02:21 +0000 (14:02 +0100)]
elua: test state retrieval

9 years agoelua: initial test (state creation/deletion)
Daniel Kolesa [Thu, 16 Apr 2015 12:45:08 +0000 (13:45 +0100)]
elua: initial test (state creation/deletion)

9 years agoelua lib: add test suite
Daniel Kolesa [Thu, 16 Apr 2015 09:55:27 +0000 (10:55 +0100)]
elua lib: add test suite

9 years agoelua lib: error_report is now in util namespace
Daniel Kolesa [Tue, 14 Apr 2015 15:14:51 +0000 (16:14 +0100)]
elua lib: error_report is now in util namespace

9 years agoelua lib: API rename
Daniel Kolesa [Tue, 14 Apr 2015 13:14:50 +0000 (14:14 +0100)]
elua lib: API rename

9 years agoelua lib: unify API conventions
Daniel Kolesa [Mon, 13 Apr 2015 15:21:25 +0000 (16:21 +0100)]
elua lib: unify API conventions

9 years agoelua: cleanup launcher
Daniel Kolesa [Mon, 13 Apr 2015 14:42:02 +0000 (15:42 +0100)]
elua: cleanup launcher

9 years agoelua: cleanup main runtime
Daniel Kolesa [Fri, 10 Apr 2015 16:10:08 +0000 (17:10 +0100)]
elua: cleanup main runtime

9 years agoelua lib: add elua_state_setup_modules + use
Daniel Kolesa [Fri, 10 Apr 2015 16:04:07 +0000 (17:04 +0100)]
elua lib: add elua_state_setup_modules + use

9 years agoelua lib: move i18n initialization there
Daniel Kolesa [Fri, 10 Apr 2015 15:58:27 +0000 (16:58 +0100)]
elua lib: move i18n initialization there

9 years agoelua: utilize the new elua_util APIs
Daniel Kolesa [Fri, 10 Apr 2015 15:45:05 +0000 (16:45 +0100)]
elua: utilize the new elua_util APIs

9 years agoelua lib: add elua_util_ APIs
Daniel Kolesa [Fri, 10 Apr 2015 15:36:26 +0000 (16:36 +0100)]
elua lib: add elua_util_ APIs

9 years agoelua: use the new progname API
Daniel Kolesa [Fri, 10 Apr 2015 13:41:19 +0000 (14:41 +0100)]
elua: use the new progname API

9 years agoelua lib: add a way to retrieve the progname
Daniel Kolesa [Fri, 10 Apr 2015 13:39:20 +0000 (14:39 +0100)]
elua lib: add a way to retrieve the progname

9 years agoelua lib: add progname to state
Daniel Kolesa [Fri, 10 Apr 2015 13:36:26 +0000 (14:36 +0100)]
elua lib: add progname to state

9 years agoelua: remove -e param (we're not a REPL)
Daniel Kolesa [Fri, 10 Apr 2015 13:04:50 +0000 (14:04 +0100)]
elua: remove -e param (we're not a REPL)

9 years agoelua: utilize the new APIs for handling require/appload
Daniel Kolesa [Fri, 10 Apr 2015 11:10:57 +0000 (12:10 +0100)]
elua: utilize the new APIs for handling require/appload

9 years agoelua lib: add APIs to retrieve refs to require/appload
Daniel Kolesa [Fri, 10 Apr 2015 11:05:54 +0000 (12:05 +0100)]
elua lib: add APIs to retrieve refs to require/appload

9 years agoelua lib: add APIs for include path management
Daniel Kolesa [Fri, 10 Apr 2015 11:02:08 +0000 (12:02 +0100)]
elua lib: add APIs for include path management

9 years agoelua: remove elua_prefix from main runtime
Daniel Kolesa [Fri, 10 Apr 2015 10:44:30 +0000 (11:44 +0100)]
elua: remove elua_prefix from main runtime

9 years agoelua: new API elua_state_dirs_fill + utilize
Daniel Kolesa [Fri, 10 Apr 2015 10:42:09 +0000 (11:42 +0100)]
elua: new API elua_state_dirs_fill + utilize

9 years agoelua: remove path decision from register_require
Daniel Kolesa [Fri, 10 Apr 2015 10:29:34 +0000 (11:29 +0100)]
elua: remove path decision from register_require

9 years agoelua: remove EFL_RUN_IN_TREE hack (pass cmdline args)
Daniel Kolesa [Thu, 9 Apr 2015 16:33:35 +0000 (17:33 +0100)]
elua: remove EFL_RUN_IN_TREE hack (pass cmdline args)

9 years agoelua lib: manage bound modules within Elua_State
Daniel Kolesa [Thu, 9 Apr 2015 15:12:15 +0000 (16:12 +0100)]
elua lib: manage bound modules within Elua_State

9 years agoelua lib: make Elua_State fields private (opaque pointers)
Daniel Kolesa [Thu, 9 Apr 2015 13:37:12 +0000 (14:37 +0100)]
elua lib: make Elua_State fields private (opaque pointers)

9 years agoelua: use the new state get API
Daniel Kolesa [Thu, 9 Apr 2015 13:35:37 +0000 (14:35 +0100)]
elua: use the new state get API

9 years agoelua lib: add elua_state_lua_state_get
Daniel Kolesa [Thu, 9 Apr 2015 13:34:21 +0000 (14:34 +0100)]
elua lib: add elua_state_lua_state_get

9 years agoelua lib: const correctness
Daniel Kolesa [Thu, 9 Apr 2015 13:21:18 +0000 (14:21 +0100)]
elua lib: const correctness

9 years agoelua lib: new APIs to retrieve dirs
Daniel Kolesa [Thu, 9 Apr 2015 13:17:38 +0000 (14:17 +0100)]
elua lib: new APIs to retrieve dirs

9 years agoelua lib: more Elua_State usage
Daniel Kolesa [Thu, 9 Apr 2015 12:56:08 +0000 (13:56 +0100)]
elua lib: more Elua_State usage

9 years agoelua lib: elua_io_loadfile now uses Elua_State
Daniel Kolesa [Thu, 9 Apr 2015 12:48:06 +0000 (13:48 +0100)]
elua lib: elua_io_loadfile now uses Elua_State

9 years agoelua lib: use eina safety checks
Daniel Kolesa [Thu, 9 Apr 2015 10:06:48 +0000 (11:06 +0100)]
elua lib: use eina safety checks

9 years agoelua: use the dir paths from Elua_State
Daniel Kolesa [Wed, 8 Apr 2015 15:46:30 +0000 (16:46 +0100)]
elua: use the dir paths from Elua_State

9 years agoelua lib: add elua_state_dirs_set
Daniel Kolesa [Wed, 8 Apr 2015 15:43:14 +0000 (16:43 +0100)]
elua lib: add elua_state_dirs_set

9 years agoelua: no need for luaL_openlibs, the lib does that
Daniel Kolesa [Wed, 8 Apr 2015 15:30:44 +0000 (16:30 +0100)]
elua: no need for luaL_openlibs, the lib does that

9 years agoelua: remove the smart cb wrapper (ffi callbacks work fine for us)
Daniel Kolesa [Wed, 8 Apr 2015 14:11:53 +0000 (15:11 +0100)]
elua: remove the smart cb wrapper (ffi callbacks work fine for us)

9 years agoelua: pass Elua_State through Main_Data
Daniel Kolesa [Wed, 8 Apr 2015 14:03:30 +0000 (15:03 +0100)]
elua: pass Elua_State through Main_Data

9 years agoelua: Elua_state for elua_loadapp
Daniel Kolesa [Wed, 8 Apr 2015 13:54:43 +0000 (14:54 +0100)]
elua: Elua_state for elua_loadapp

9 years agoelua lib: Elua_State for elua_state_setup_i18n
Daniel Kolesa [Wed, 8 Apr 2015 13:52:06 +0000 (14:52 +0100)]
elua lib: Elua_State for elua_state_setup_i18n

9 years agoelua: use more Elua_State
Daniel Kolesa [Wed, 8 Apr 2015 13:46:31 +0000 (14:46 +0100)]
elua: use more Elua_State

9 years agoelua: elua_report_error now takes Elua_State*
Daniel Kolesa [Wed, 8 Apr 2015 13:43:52 +0000 (14:43 +0100)]
elua: elua_report_error now takes Elua_State*

9 years agoelua lib: add elua_state_from_lua_get
Daniel Kolesa [Wed, 8 Apr 2015 13:29:58 +0000 (14:29 +0100)]
elua lib: add elua_state_from_lua_get

9 years agoelua: use elua_state_new/free
Daniel Kolesa [Wed, 8 Apr 2015 13:14:49 +0000 (14:14 +0100)]
elua: use elua_state_new/free

9 years agoelua lib: add elua_state_new and elua_state_free
Daniel Kolesa [Wed, 8 Apr 2015 13:00:57 +0000 (14:00 +0100)]
elua lib: add elua_state_new and elua_state_free

9 years agoelua lib: add Elua_State (used later to hold elua-specific data)
Daniel Kolesa [Wed, 8 Apr 2015 12:56:19 +0000 (13:56 +0100)]
elua lib: add Elua_State (used later to hold elua-specific data)