framework/uifw/eina.git
12 years agoadd back in libs.private/requires to pc files with some fixes for
raster [Sat, 17 Mar 2012 05:37:25 +0000 (05:37 +0000)]
add back in libs.private/requires to pc files with some fixes for
missing.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69482 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agogear up svn for release. one of many steps/things to do.
raster [Sat, 17 Mar 2012 04:17:29 +0000 (04:17 +0000)]
gear up svn for release. one of many steps/things to do.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69481 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: update AUTHORS.
cedric [Fri, 16 Mar 2012 11:26:23 +0000 (11:26 +0000)]
eina: update AUTHORS.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69457 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: fix build when valgrind is not in a standard location.
cedric [Fri, 16 Mar 2012 11:25:14 +0000 (11:25 +0000)]
eina: fix build when valgrind is not in a standard location.

Patch by Raphael Kubo da Costa <rakuco@freebsd.org>.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69456 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: backport and ChangeLog for dead lock in Eina_File.
cedric [Wed, 14 Mar 2012 15:53:14 +0000 (15:53 +0000)]
eina: backport and ChangeLog for dead lock in Eina_File.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69339 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: fix dead lock issue. This is hidding a bug with eina_hash_pointer_new.
cedric [Wed, 14 Mar 2012 15:35:12 +0000 (15:35 +0000)]
eina: fix dead lock issue. This is hidding a bug with eina_hash_pointer_new.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69338 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: build back on FreeBSD.
cedric [Tue, 13 Mar 2012 11:25:56 +0000 (11:25 +0000)]
eina: build back on FreeBSD.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69293 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: use Windows macros
caro [Thu, 8 Mar 2012 20:32:15 +0000 (20:32 +0000)]
Eina: use Windows macros

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69069 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: use stat64() instead of GetFileAttributesEx()
caro [Thu, 8 Mar 2012 17:58:44 +0000 (17:58 +0000)]
Eina: use stat64() instead of GetFileAttributesEx()

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69067 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoFrom: cnook <kimcinoo@gmail.com>
raster [Thu, 8 Mar 2012 13:54:01 +0000 (13:54 +0000)]
From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch][Eina] eina_file_win32 - using
eina_file_statat();

On windows, Elementary gives build error. cause..
The elm_config.c uses eina_file_statat(); but It is not in the
eina_file_win32.c
So the attached patch comes. Please keep the patch in the up stream.
Thanks.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69058 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina 1.2 changelog: docs are now slightly less french
discomfitor [Wed, 7 Mar 2012 19:58:17 +0000 (19:58 +0000)]
eina 1.2 changelog: docs are now slightly less french

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69025 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agowarn--
discomfitor [Wed, 7 Mar 2012 19:52:21 +0000 (19:52 +0000)]
warn--

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69022 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agofix logic
caro [Wed, 7 Mar 2012 10:58:58 +0000 (10:58 +0000)]
fix logic

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68927 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: fix leak on windows too
caro [Wed, 7 Mar 2012 10:56:55 +0000 (10:56 +0000)]
Eina: fix leak on windows too

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68926 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: backport, ChangeLog and NEWS.
cedric [Wed, 7 Mar 2012 10:45:06 +0000 (10:45 +0000)]
eina: backport, ChangeLog and NEWS.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68925 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: don't reopen file when file didn't change.
cedric [Wed, 7 Mar 2012 10:40:49 +0000 (10:40 +0000)]
eina: don't reopen file when file didn't change.

NOTE: we were leaking file at very high speed !

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68924 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: fix argument numbering.
cedric [Wed, 7 Mar 2012 09:38:08 +0000 (09:38 +0000)]
eina: fix argument numbering.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68917 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: cosmetic (move eina_file_mmap_faulty to the 'global' part)
caro [Wed, 7 Mar 2012 08:58:55 +0000 (08:58 +0000)]
Eina: cosmetic (move eina_file_mmap_faulty to the 'global' part)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68908 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: unlock mutex before returning
caro [Wed, 7 Mar 2012 07:25:05 +0000 (07:25 +0000)]
Eina: unlock mutex before returning

Patch by Shinwoo Kim, modified by me

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68885 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoAnother eina_inarray example.
gastal [Tue, 6 Mar 2012 14:27:03 +0000 (14:27 +0000)]
Another eina_inarray example.

Patch by: "Daniel Vieira Franzolin" <daniel@profusion.mobi>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68835 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agonote the bug spotted by Tasn.
barbieri [Tue, 6 Mar 2012 12:35:24 +0000 (12:35 +0000)]
note the bug spotted by Tasn.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68824 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoFix examples's compilation instructions to work on ubuntu.
gastal [Mon, 5 Mar 2012 21:17:30 +0000 (21:17 +0000)]
Fix examples's compilation instructions to work on ubuntu.

Patch by: "Daniel Vieira Franzolin" <daniel@profusion.mobi>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68743 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoremoved useless information about libm dependency which is shipped with libc
thanatermesis [Mon, 5 Mar 2012 13:26:41 +0000 (13:26 +0000)]
removed useless information about libm dependency which is shipped with libc

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68718 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: fix warning. Patch by Seo Sanghyeon.
cedric [Fri, 2 Mar 2012 15:36:54 +0000 (15:36 +0000)]
eina: fix warning. Patch by Seo Sanghyeon.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68628 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: Add eina_value_array_value_get().
bdilly [Thu, 1 Mar 2012 17:15:54 +0000 (17:15 +0000)]
Eina: Add eina_value_array_value_get().

Since k-s is on the road this days, we'd better write some code ourselves.
This is array counterpart of eina_value_struct_value_get(), and retrieves
an item from an Eina_Value_Array as an Eina_Value.

Code writing the setter is welcome.

Patch by: "Raphael Kubo da Costa" <kubo@profusion.mobi>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68581 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: faster implementation of Eina_Rbtree by Alexandre Becoulet.
cedric [Mon, 27 Feb 2012 13:29:47 +0000 (13:29 +0000)]
eina: faster implementation of Eina_Rbtree by Alexandre Becoulet.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68474 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: fix typos due to merge.
cedric [Fri, 24 Feb 2012 11:42:47 +0000 (11:42 +0000)]
eina: fix typos due to merge.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68405 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: add Exotic support.
cedric [Fri, 24 Feb 2012 11:15:14 +0000 (11:15 +0000)]
eina: add Exotic support.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68398 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agolets not deprecate things just yet shall we?
raster [Fri, 24 Feb 2012 00:50:30 +0000 (00:50 +0000)]
lets not deprecate things just yet shall we?

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68369 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: forgotten since.
cedric [Thu, 23 Feb 2012 14:11:18 +0000 (14:11 +0000)]
eina: forgotten since.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68341 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: introduce Eina_Stat to prevent issue when building with different config option.
cedric [Thu, 23 Feb 2012 11:45:25 +0000 (11:45 +0000)]
eina: introduce Eina_Stat to prevent issue when building with different config option.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68315 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoContainer page improvements.
gastal [Wed, 22 Feb 2012 16:20:55 +0000 (16:20 +0000)]
Container page improvements.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68278 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoStringshare doc additions.
gastal [Wed, 22 Feb 2012 13:35:01 +0000 (13:35 +0000)]
Stringshare doc additions.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68271 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina inline array example.
gastal [Wed, 22 Feb 2012 13:15:38 +0000 (13:15 +0000)]
Eina inline array example.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68270 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: update info in eina_file_stat seems more usefull.
cedric [Wed, 22 Feb 2012 11:50:29 +0000 (11:50 +0000)]
eina: update info in eina_file_stat seems more usefull.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68264 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: add eina_file_stat helper function.
cedric [Wed, 22 Feb 2012 10:24:11 +0000 (10:24 +0000)]
eina: add eina_file_stat helper function.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68259 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agosince n->filename became non-stringshared only after 1.1 - no
raster [Wed, 22 Feb 2012 09:42:27 +0000 (09:42 +0000)]
since n->filename became non-stringshared only after 1.1 - no
changelog needed, but fix eina waring! (thanks shinwoo!!!)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68256 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: fix win32 RWlocks
caro [Wed, 22 Feb 2012 08:34:38 +0000 (08:34 +0000)]
Eina: fix win32 RWlocks
* initialize all the mutex members in eina_rwlock_new()
* fix assigments in eina_rwlock_take_read() and eina_rwlock_take_write()

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68248 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: gnu_printf format attribute was introduced in gcc 4.4
caro [Mon, 20 Feb 2012 23:34:15 +0000 (23:34 +0000)]
Eina: gnu_printf format attribute was introduced in gcc 4.4

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68174 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: remove ugly FMT_* compatibility strings as Evil has now POSIX printf family...
caro [Fri, 17 Feb 2012 20:53:36 +0000 (20:53 +0000)]
Eina: remove ugly FMT_* compatibility strings as Evil has now POSIX printf family functions

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68087 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoUse gnu_printf attribute to detect wrong usage of printf family functions
caro [Fri, 17 Feb 2012 20:52:15 +0000 (20:52 +0000)]
Use gnu_printf attribute to detect wrong usage of printf family functions

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68086 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agomove standard header file before private ones
caro [Fri, 17 Feb 2012 20:51:05 +0000 (20:51 +0000)]
move standard header file before private ones

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68085 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina value example with user defined type.
gastal [Fri, 17 Feb 2012 18:52:58 +0000 (18:52 +0000)]
Eina value example with user defined type.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68082 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoDocumented example of eina_value struct usage.
gastal [Fri, 17 Feb 2012 13:24:05 +0000 (13:24 +0000)]
Documented example of eina_value struct usage.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68072 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoDocumented example for eina_value.
gastal [Fri, 17 Feb 2012 13:24:02 +0000 (13:24 +0000)]
Documented example for eina_value.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68071 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: fix forgotten initialization of count during eina_list_split_list.
cedric [Fri, 17 Feb 2012 11:16:01 +0000 (11:16 +0000)]
eina: fix forgotten initialization of count during eina_list_split_list.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68067 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoChange impl. to follow param name of header.
leif [Fri, 17 Feb 2012 10:52:20 +0000 (10:52 +0000)]
Change impl. to follow param name of header.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68065 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agorename 'size' param of eina_list_sort to 'limit'
leif [Fri, 17 Feb 2012 10:48:49 +0000 (10:48 +0000)]
rename 'size' param of eina_list_sort to 'limit'

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68064 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: new events for load/unload.
barbieri [Thu, 16 Feb 2012 19:48:13 +0000 (19:48 +0000)]
eina_model: new events for load/unload.

Added the events: loaded and unloaded to notify eina_model_load() and
eina_model_unload() were called.

To be more specific, the interfaces used by EINA_MODEL_TYPE_MIXIN
(Eina_Model_Interface_Properties and Eina_Model_Interface_Children)
also do:
 * properties,loaded
 * properties,unloaded
 * children,loaded
 * children,unloaded

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68035 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years ago3/3 eina_model: fix inheritance test.
barbieri [Thu, 16 Feb 2012 19:33:50 +0000 (19:33 +0000)]
3/3 eina_model: fix inheritance test.

HUMAN_POOPER_IFACE must have ANIMAL_POOPER_IFACE as parent interface,
otherwise the order will be incorrect.

The test were also improved in other ways:
 * use ck_assert_int_eq() instead of fail_if()... it prints the incorrect value
 * check refcount
 * unref models
 * shutdown eina

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68034 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years ago2/3 eina_model: properly eliminate duplicates.
barbieri [Thu, 16 Feb 2012 19:31:56 +0000 (19:31 +0000)]
2/3 eina_model: properly eliminate duplicates.

We must check for duplicates otherwise we'll have remaining entries
after topological sort.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68033 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years ago1/3 eina_model: lookup interfaces in the correct order.
barbieri [Thu, 16 Feb 2012 19:30:23 +0000 (19:30 +0000)]
1/3 eina_model: lookup interfaces in the correct order.

We should lookup then in forward order, as they are sorted from
most-specific first, with parents at the end.

This breaks test, will fix in the last commit (3/3).

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68032 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoElm model: Updated examples.
tasn [Thu, 16 Feb 2012 12:37:27 +0000 (12:37 +0000)]
Elm model: Updated examples.

Patch by Yakov.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@68027 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoDocumentation for all eina model functions.
gastal [Wed, 15 Feb 2012 18:44:50 +0000 (18:44 +0000)]
Documentation for all eina model functions.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67992 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agomake tasn happier
barbieri [Wed, 15 Feb 2012 14:17:16 +0000 (14:17 +0000)]
make tasn happier

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67987 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoreview animal as example for other example files.
barbieri [Wed, 15 Feb 2012 14:08:01 +0000 (14:08 +0000)]
review animal as example for other example files.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67986 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agobuild example.
barbieri [Wed, 15 Feb 2012 13:50:43 +0000 (13:50 +0000)]
build example.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67985 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Added an advanced inheritance + interface example.
tasn [Wed, 15 Feb 2012 08:18:47 +0000 (08:18 +0000)]
Eina model: Added an advanced inheritance + interface example.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67965 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Fix issues with interface inheritance.
tasn [Tue, 14 Feb 2012 09:48:00 +0000 (09:48 +0000)]
Eina model: Fix issues with interface inheritance.

The ptr comparison had issues.
Order of interface overrides was wrong.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67915 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value_stringshare: safer copy, to cope copying user-generated structs.
barbieri [Mon, 13 Feb 2012 16:18:47 +0000 (16:18 +0000)]
eina_value_stringshare: safer copy, to cope copying user-generated structs.

array, list, struct and others set() now copies the values. These
values can be created by user, in this case string is just a stack
object and not a real eina_stringshare.

To cope with it, add the string instead of referencing it. Bit slower,
but nicer behavior.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67886 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoimprove documentation of eina model and value.
barbieri [Sat, 11 Feb 2012 18:04:32 +0000 (18:04 +0000)]
improve documentation of eina model and value.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67851 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agomodel: add helper for common pattern
barbieri [Sat, 11 Feb 2012 00:48:42 +0000 (00:48 +0000)]
model: add helper for common pattern

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67845 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoone day I'll be less stupid...
barbieri [Sat, 11 Feb 2012 00:42:00 +0000 (00:42 +0000)]
one day I'll be less stupid...

... or one day we'll move to git so I can rewrite stupid commits :-D

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67844 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: break usage, but makes it more uniform and correct.
barbieri [Sat, 11 Feb 2012 00:34:25 +0000 (00:34 +0000)]
eina_value: break usage, but makes it more uniform and correct.

I did a bad decision to steal memory for Array, List, Hash and Struct
types, it was nice to not have to copy it internally, but breaks when
one needs to set a new value that was set elsewhere. What did not
happen with string, integers and other basic types.

This was exposed by Raphael Kubo using eina_model_property_set() with
complex types (Array, List and Hash) and it was not possible to
correctly set such properties.

Now it's all set, but the behavior changed and the memory is not
stolen and released anymore. Test eina_test_value.c was changed to
reflect it.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67843 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agovalue: be safer on reset of existing values.
barbieri [Fri, 10 Feb 2012 22:03:48 +0000 (22:03 +0000)]
value: be safer on reset of existing values.

if user get and then set the same value, we should not crash and this
may happen with previous code as the old
string/array/value/list... were released, then you ended with the
released memory still being pointed.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67841 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agovalue: just setup on new memory!
barbieri [Fri, 10 Feb 2012 21:43:55 +0000 (21:43 +0000)]
value: just setup on new memory!

We should not flush and then setup the memory, instead we leave
vset/pset functions do their own stuff to clean previous data, if any.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67840 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agovalue: allow multiple flush.
barbieri [Fri, 10 Feb 2012 21:34:28 +0000 (21:34 +0000)]
value: allow multiple flush.

multiple flush may happen when handling errors. May be used in some cases.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67839 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: fix convert to string on empty/null cases.
barbieri [Fri, 10 Feb 2012 21:18:59 +0000 (21:18 +0000)]
eina_value: fix convert to string on empty/null cases.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67838 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoignore generated files.
barbieri [Fri, 10 Feb 2012 20:56:47 +0000 (20:56 +0000)]
ignore generated files.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67837 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agofix test leaks
barbieri [Fri, 10 Feb 2012 20:39:27 +0000 (20:39 +0000)]
fix test leaks

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67836 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value_hash: must free hash value after it's flushed.
barbieri [Fri, 10 Feb 2012 20:39:07 +0000 (20:39 +0000)]
eina_value_hash: must free hash value after it's flushed.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67835 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agofix memleak in test suite.
barbieri [Fri, 10 Feb 2012 20:38:28 +0000 (20:38 +0000)]
fix memleak in test suite.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67834 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoAnother example for eina_model.
barbieri [Fri, 10 Feb 2012 17:18:10 +0000 (17:18 +0000)]
Another example for eina_model.

Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67832 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agothanks vincent.
barbieri [Fri, 10 Feb 2012 11:03:18 +0000 (11:03 +0000)]
thanks vincent.

I just did that mistake to see if you were paying attention... /me liar! :-)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67822 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: add xref/xunref, xrefs_get and models_usage_dump!
barbieri [Fri, 10 Feb 2012 10:48:39 +0000 (10:48 +0000)]
eina_model: add xref/xunref, xrefs_get and models_usage_dump!

Let's try to help debug by allowing extended reference management that
takes in account an identifier. This identifier is accounted on xref
and xunref and must match.

xrefs_get will return the list of such references, for debugging purposes.

eina_models_list_get() was added to return all live models, just
tracked when EINA_MODEL_DEBUG is enabled.

eina_models_usage_dump() was added and use the same infrastructure as
eina_models_list_get() and eina_model_xrefs_get() to aid debugging :-)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67821 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoadd missing shutdown
barbieri [Fri, 10 Feb 2012 10:34:19 +0000 (10:34 +0000)]
add missing shutdown

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67818 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoremove @EINA_CPPFLAGS@ from remaining Makefile.am
barbieri [Thu, 9 Feb 2012 21:42:50 +0000 (21:42 +0000)]
remove @EINA_CPPFLAGS@ from remaining Makefile.am

Thanks to Tommy[D] for spotting the problem!

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67799 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoadd Jonas to authors.
barbieri [Thu, 9 Feb 2012 20:26:00 +0000 (20:26 +0000)]
add Jonas to authors.

He worked previously with documentation, now is helping me with
Eina_Model and will keep adding some examples and fixes here and
there.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67798 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoMore documentation for eina_model.
barbieri [Thu, 9 Feb 2012 19:13:54 +0000 (19:13 +0000)]
More documentation for eina_model.

Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67797 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: rename all "search" to "criteria_match"
barbieri [Thu, 9 Feb 2012 16:29:50 +0000 (16:29 +0000)]
eina_model: rename all "search" to "criteria_match"

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67796 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: helper function to setup subclass during runtime.
barbieri [Thu, 9 Feb 2012 16:20:16 +0000 (16:20 +0000)]
eina_model: helper function to setup subclass during runtime.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67795 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina examples: Formatted model example a bit.
tasn [Thu, 9 Feb 2012 12:29:56 +0000 (12:29 +0000)]
Eina examples: Formatted model example a bit.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67791 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Made i_method_resolve a macro (for interface as well)
tasn [Thu, 9 Feb 2012 10:32:14 +0000 (10:32 +0000)]
Eina model: Made i_method_resolve a macro (for interface as well)

Same as the previous commit about "Type" this time about Interface.
This will also hopefully remove the likelihood for hacks.
Previous functions are still available as method_offset_resolve.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67786 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_sched: fix rt priority drop
lucas [Thu, 9 Feb 2012 00:06:14 +0000 (00:06 +0000)]
eina_sched: fix rt priority drop

Thanks to cedric for noticing this bug. Priority in userspace are in the
opposite order as in kernel space.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67776 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Added an eina model example for inheritance.
tasn [Wed, 8 Feb 2012 16:39:19 +0000 (16:39 +0000)]
Eina model: Added an eina model example for inheritance.

Patch by Yakov Goldberg.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67767 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Made _method_resolve a macro to remove the need for offsetof.
tasn [Wed, 8 Feb 2012 15:37:07 +0000 (15:37 +0000)]
Eina model: Made _method_resolve a macro to remove the need for offsetof.

This will also hopefully remove the likelihood for hacks.
Previous functions are still available as method_offset_resolve.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67765 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: correctly retrieve the memory from value.
barbieri [Wed, 8 Feb 2012 15:13:25 +0000 (15:13 +0000)]
eina_model: correctly retrieve the memory from value.

val->value.ptr is just valid on 64bits platforms, as on 32bits both
pointers of the Eina_Value_Struct fits in the 8bytes of val->value.buf.

Always use the function to correctly retrieve it.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67764 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Fix another issue with the method resolve functios.
tasn [Tue, 7 Feb 2012 13:24:27 +0000 (13:24 +0000)]
Eina model: Fix another issue with the method resolve functios.

Make it possible to resolve foo (the last item).
struct _My_Object_Type
{
   Eina_Model_Type parent_class;
   ...
   void (*foo)(Eina_Model *, int);
};

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67733 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina Model: Fix wrong error checking in the method resolve functions.
tasn [Tue, 7 Feb 2012 13:17:13 +0000 (13:17 +0000)]
Eina Model: Fix wrong error checking in the method resolve functions.

This enables resolving method foo...
struct _My_Object_Type
{
   Eina_Model_Type parent;
   void (*foo)(Eina_Model *, int);
   ...
}

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67732 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agofix @dates in each header file
jihoon [Sun, 5 Feb 2012 23:37:45 +0000 (23:37 +0000)]
fix @dates in each header file

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67705 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: use new Evil API to detect absolute path name
caro [Sun, 5 Feb 2012 09:41:25 +0000 (09:41 +0000)]
Eina: use new Evil API to detect absolute path name

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67702 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: append and prepend __ to gcc attributes
caro [Sun, 5 Feb 2012 09:34:17 +0000 (09:34 +0000)]
Eina: append and prepend __ to gcc attributes

Avoid conflicts with macros that have been previously defined
with the same name than the attribute

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67701 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoChange eina_mode_child_search to more descriptive
barbieri [Thu, 2 Feb 2012 12:32:13 +0000 (12:32 +0000)]
Change eina_mode_child_search to more descriptive
 eina_model_child_criteria_match.

Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67688 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoBetter documentation for eina_model.
barbieri [Thu, 2 Feb 2012 12:31:46 +0000 (12:31 +0000)]
Better documentation for eina_model.

Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67687 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: fix struct type.
barbieri [Tue, 31 Jan 2012 21:05:20 +0000 (21:05 +0000)]
eina_value: fix struct type.

 1. consider case where the struct was not set for flush and others;
 2. flush previous struct on pset;
 3. setup the new struct members memory on pset;
 4. always use ops->alloc and ops->free if they are provided;

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67662 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agounbreak eina_value
discomfitor [Tue, 31 Jan 2012 17:31:48 +0000 (17:31 +0000)]
unbreak eina_value

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67643 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina stringshare: fixed up the previous commit a bit.
tasn [Tue, 31 Jan 2012 17:27:57 +0000 (17:27 +0000)]
Eina stringshare: fixed up the previous commit a bit.

Fixed wrong usage of Eina_Stringshare - Thanks k-s.
Omited the star from the typedef - Thanks Sacihel.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67642 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina stringshare: Added Eina_Stringshare a stringshare visual hint.
tasn [Tue, 31 Jan 2012 17:12:23 +0000 (17:12 +0000)]
Eina stringshare: Added Eina_Stringshare a stringshare visual hint.

It's interchangeable with const char *, it's juts there as a visual hint
for functions expecting stringshared values. Docs are not enough...

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67641 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoadd new eina value dummy type TIMESTAMP which is identical to ULONG
discomfitor [Tue, 31 Jan 2012 16:55:10 +0000 (16:55 +0000)]
add new eina value dummy type TIMESTAMP which is identical to ULONG

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67639 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoadd missing @since 1.2
barbieri [Tue, 31 Jan 2012 16:47:36 +0000 (16:47 +0000)]
add missing @since 1.2

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67638 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33