profile/ivi/eina.git
12 years agoupdate date
caro [Tue, 3 Apr 2012 08:03:47 +0000 (08:03 +0000)]
update date

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69890 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoformatting
caro [Sat, 31 Mar 2012 10:12:05 +0000 (10:12 +0000)]
formatting

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69817 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: update ChangeLog (NEWS already filled)
caro [Sat, 31 Mar 2012 07:38:01 +0000 (07:38 +0000)]
Eina: update ChangeLog (NEWS already filled)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69814 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: more doc
caro [Sat, 31 Mar 2012 07:32:51 +0000 (07:32 +0000)]
Eina: more doc

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69813 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: add missing API on Windows. Do I need to update ChangeLog and NEWS ?
caro [Sat, 31 Mar 2012 06:32:11 +0000 (06:32 +0000)]
Eina: add missing API on Windows. Do I need to update ChangeLog and NEWS ?

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69811 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoformatting
caro [Sat, 31 Mar 2012 06:30:53 +0000 (06:30 +0000)]
formatting

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69810 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoFrom: Jérôme Pinot <ngc891@gmail.com>
Jérôme Pinot [Fri, 30 Mar 2012 10:13:38 +0000 (10:13 +0000)]
From: Jérôme Pinot <ngc891@gmail.com>
Subject: [E-devel] [patch] eina doc leftover

Forgot this one

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69792 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoHack to avoid freeing old data when calling eina_hash_set() with new_data == NULL...
sachiel [Thu, 29 Mar 2012 17:46:17 +0000 (17:46 +0000)]
Hack to avoid freeing old data when calling eina_hash_set() with new_data == NULL. Let's have a minute of silence for all the innocent children that died because of this very grave error.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69763 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoFrom: Jérôme Pinot <ngc891@gmail.com>
Jérôme Pinot [Thu, 29 Mar 2012 11:35:34 +0000 (11:35 +0000)]
From: Jérôme Pinot <ngc891@gmail.com>
Subject: [E-devel] [patch] eina doxygen doc

Here is a patch that fix several links in the eina doxygen doc. Most of
the problems come from unescaped special characters.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69746 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: plenty of place set EINA_CFLAGS before that line.
cedric [Wed, 28 Mar 2012 12:58:50 +0000 (12:58 +0000)]
eina: plenty of place set EINA_CFLAGS before that line.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69705 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agobring eina's NEWS up to date with changelog.
raster [Mon, 26 Mar 2012 04:33:56 +0000 (04:33 +0000)]
bring eina's NEWS up to date with changelog.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69625 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agofix dist
caro [Sun, 25 Mar 2012 17:08:13 +0000 (17:08 +0000)]
fix dist

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69614 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agobetter m4 macro
caro [Sun, 25 Mar 2012 16:39:51 +0000 (16:39 +0000)]
better m4 macro

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69613 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoand -lm in .pc
caro [Sun, 25 Mar 2012 11:16:14 +0000 (11:16 +0000)]
and -lm in .pc

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69610 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agodidn't mean to commit that
caro [Sun, 25 Mar 2012 11:14:48 +0000 (11:14 +0000)]
didn't mean to commit that

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69609 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: fix shm_open() check (can be in libc or librt) + various autotools cleaning
caro [Sun, 25 Mar 2012 11:12:32 +0000 (11:12 +0000)]
Eina: fix shm_open() check (can be in libc or librt) + various autotools cleaning

This works in linux and windows, and should fix shm_detection on BSD (including Mac)

BSD, Mac and solaris users : please check that it compiles and shm_open is detected

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69608 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina eina_list.h: Fixed typo in the documentation.
seoz [Sun, 25 Mar 2012 08:51:02 +0000 (08:51 +0000)]
eina eina_list.h: Fixed typo in the documentation.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69605 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: Fix a previous commit
caro [Mon, 19 Mar 2012 19:31:29 +0000 (19:31 +0000)]
Eina: Fix a previous commit

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@69511 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/svn/e/trunk/eina@69067 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoFrom: cnook <kimcinoo@gmail.com>
cnook [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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/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: http://svn.enlightenment.org/svn/e/trunk/eina@67791 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33