framework/uifw/eina.git
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

12 years agoeina_value: add EINA_VALUE_TYPE_MODEL
barbieri [Tue, 31 Jan 2012 16:45:59 +0000 (16:45 +0000)]
eina_value: add EINA_VALUE_TYPE_MODEL

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

12 years agoeina_model: change the way extensions are done.
barbieri [Tue, 31 Jan 2012 15:26:48 +0000 (15:26 +0000)]
eina_model: change the way extensions are done.

Thanks to Tasn review it was noticed that subclasses using "const void *value"
with sub-structure would have to resolve their methods manually, quite bad.

Then the extension will happen with structures inside structures, as
previously used in Evas_Smart_Class. To allow the system to resolve
the methods and keep it, it is now specificed the type_size.

A new function is added to help extensions:
eina_model_type_method_resolve(), together with few helper macros.

To allow Eina_Model_Type to be augmented with more methods without
breaking the ABI, 4 slots are left there. We expect we got it right
from beginning and these will never be used, but we can never be sure
;-)

Last but not least, similar changes were done to Eina_Model_Interface
for consistency matters.

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

12 years agoEina test model: Use EINA_VALUE_STRUCT_MEMBER and the new EINA_C_ARRAY_LENGTH.
tasn [Sun, 29 Jan 2012 15:38:04 +0000 (15:38 +0000)]
Eina test model: Use EINA_VALUE_STRUCT_MEMBER and the new EINA_C_ARRAY_LENGTH.

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

12 years agoEina: Added EINA_C_ARRAY_LENGTH.
tasn [Sun, 29 Jan 2012 15:38:01 +0000 (15:38 +0000)]
Eina: Added EINA_C_ARRAY_LENGTH.

This macro returns the length of a standard C array.

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

12 years agoEina test model: Get offsets and sizes properly.
tasn [Sun, 29 Jan 2012 12:57:36 +0000 (12:57 +0000)]
Eina test model: Get offsets and sizes properly.

Make the tests work on multiple platforms and also let people who read the
code see how to do it properly.

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

12 years agoEina: fix previous commit
caro [Fri, 27 Jan 2012 07:52:30 +0000 (07:52 +0000)]
Eina: fix previous commit

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

12 years agoEina model: fix a memory leak in the model's "to_string" function.
tasn [Thu, 26 Jan 2012 16:42:00 +0000 (16:42 +0000)]
Eina model: fix a memory leak in the model's "to_string" function.

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

12 years agoEina: fix compilation errors in Eina_RWLock code when building code on Windows > XP
caro [Thu, 26 Jan 2012 07:21:27 +0000 (07:21 +0000)]
Eina: fix compilation errors in Eina_RWLock code when building code on Windows > XP

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

12 years agobugfix: reset iterator to head before the second lookup.
barbieri [Wed, 25 Jan 2012 17:06:29 +0000 (17:06 +0000)]
bugfix: reset iterator to head before the second lookup.

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

12 years agoeina_value_struct_member_value: helper to be used by esql and possibly others.
barbieri [Wed, 25 Jan 2012 16:58:57 +0000 (16:58 +0000)]
eina_value_struct_member_value: helper to be used by esql and possibly others.

It is common to already known the member, then no need to query
it. This provides optimized retrieval for people that can manage it.

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

12 years agoSmall fixes to eina_model documentation.
barbieri [Wed, 25 Jan 2012 13:48:32 +0000 (13:48 +0000)]
Small fixes to eina_model documentation.

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

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

12 years agoEina model: Fix the example in the docs to compile.
tasn [Wed, 25 Jan 2012 12:05:20 +0000 (12:05 +0000)]
Eina model: Fix the example in the docs to compile.

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

12 years agovalue got the helper, will be useful in other cases as well.
barbieri [Tue, 24 Jan 2012 22:56:17 +0000 (22:56 +0000)]
value got the helper, will be useful in other cases as well.

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

12 years agomore efficient model properties based on struct.
barbieri [Tue, 24 Jan 2012 22:17:57 +0000 (22:17 +0000)]
more efficient model properties based on struct.

this is a killer, should be very efficient in memory and speed to
set/get items: instead of a hash of properties, keep them in a C
struct!

The constraint is that properties have fixed types defined at compile
time and cannot be deleted, but this is expected in many cases (ie:
esql rows).

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

12 years agoreset log level after it's done testing.
barbieri [Tue, 24 Jan 2012 22:15:06 +0000 (22:15 +0000)]
reset log level after it's done testing.

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

12 years agoEina: fix requirements and a comment message
caro [Tue, 24 Jan 2012 22:05:46 +0000 (22:05 +0000)]
Eina: fix requirements and a comment message

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

12 years agoEina: update alloca() declaration from latest autoconf doc.
caro [Tue, 24 Jan 2012 07:21:33 +0000 (07:21 +0000)]
Eina: update alloca() declaration from latest autoconf doc.

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

12 years agoEina: Windows version is managed by Evil, now. I'm not sure I have to update ChangeLog.
caro [Tue, 24 Jan 2012 07:08:23 +0000 (07:08 +0000)]
Eina: Windows version is managed by Evil, now. I'm not sure I have to update ChangeLog.

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

12 years agodereference pointer before using
sachiel [Mon, 23 Jan 2012 16:51:02 +0000 (16:51 +0000)]
dereference pointer before using

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

12 years agobeef eina_error tests.
barbieri [Mon, 23 Jan 2012 00:25:12 +0000 (00:25 +0000)]
beef eina_error tests.

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

12 years agofix paths to be relative to project build root.
barbieri [Sun, 22 Jan 2012 22:00:07 +0000 (22:00 +0000)]
fix paths to be relative to project build root.

"make doc" was doing "cd doc" and paths were relative to it, misleading.

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

12 years agohelp buildbot and user know where the html files are.
barbieri [Sun, 22 Jan 2012 18:07:04 +0000 (18:07 +0000)]
help buildbot and user know where the html files are.

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

12 years agobuildbot: new attempt at coverage support.
barbieri [Sun, 22 Jan 2012 15:09:51 +0000 (15:09 +0000)]
buildbot: new attempt at coverage support.

I've changed a bit the rules, let's see if it works with buildbot
(out-of-tree builds).

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

12 years agoEina: remove warning when compiling with mingw-w64
caro [Sun, 22 Jan 2012 12:08:06 +0000 (12:08 +0000)]
Eina: remove warning when compiling with mingw-w64

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

12 years agoEina: DOS2UNIX eina_file_win32.c
caro [Sun, 22 Jan 2012 08:57:50 +0000 (08:57 +0000)]
Eina: DOS2UNIX eina_file_win32.c

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

12 years agoEina: remove unused variable
caro [Sun, 22 Jan 2012 08:56:13 +0000 (08:56 +0000)]
Eina: remove unused variable

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

12 years agoEina "Fix" printf conversion format on Windows. printf family on Windows is just...
caro [Sun, 22 Jan 2012 08:55:02 +0000 (08:55 +0000)]
Eina "Fix" printf conversion format on Windows. printf family on Windows is just plain weirdness

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

12 years agoEina: formatting
caro [Sat, 21 Jan 2012 08:23:23 +0000 (08:23 +0000)]
Eina: formatting

eina_file_init() and eina_file_shutdown() are global symbols, not local ones

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

12 years agoEina: Windows fixes
caro [Sat, 21 Jan 2012 08:21:32 +0000 (08:21 +0000)]
Eina: Windows fixes

add eina_file_path_sanitize() which was missing in the windows port
add locks
synchronize a bit with the linux version

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

12 years agoalphabetical order
caro [Sat, 21 Jan 2012 08:19:46 +0000 (08:19 +0000)]
alphabetical order

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

12 years agoEina: put m4 files in their own subdir
caro [Sat, 21 Jan 2012 08:02:54 +0000 (08:02 +0000)]
Eina: put m4 files in their own subdir

Warning: you must relaunch autogen.sh for these changes to
be taken into account

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

12 years agoEina: include stdlib.h instead of alloca.h (alloca() is not used while malloc() is)
caro [Sat, 21 Jan 2012 07:44:05 +0000 (07:44 +0000)]
Eina: include stdlib.h instead of alloca.h (alloca() is not used while malloc() is)

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

12 years agoeina share log refactor.
barbieri [Sat, 21 Jan 2012 07:21:23 +0000 (07:21 +0000)]
eina share log refactor.

Don't print messages from share common, that way we have no way to
know where it happens, moreover the binshare values may lack trailing
'\0'.

Also makes no sense to share the log domain. With separate domains we
can be more selective in what we log/debug.

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

12 years agoeina_test_model: better use of check macros.
barbieri [Sat, 21 Jan 2012 06:26:56 +0000 (06:26 +0000)]
eina_test_model: better use of check macros.

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

12 years agoeina_model: fix uninitialized bit
barbieri [Sat, 21 Jan 2012 06:26:32 +0000 (06:26 +0000)]
eina_model: fix uninitialized bit

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

12 years agomatrixsparse: fix pointer after it's freed.
barbieri [Sat, 21 Jan 2012 05:32:39 +0000 (05:32 +0000)]
matrixsparse: fix pointer after it's freed.

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

12 years agoensure trailing \0
barbieri [Sat, 21 Jan 2012 04:52:27 +0000 (04:52 +0000)]
ensure trailing \0

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

12 years agocheck if file was parsed fine.
barbieri [Sat, 21 Jan 2012 04:49:54 +0000 (04:49 +0000)]
check if file was parsed fine.

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

12 years agomore safety test checks for file and unicode.
barbieri [Sat, 21 Jan 2012 04:44:17 +0000 (04:44 +0000)]
more safety test checks for file and unicode.

jsut add infra and reduce output noise.

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

12 years agoimprove counter tests wrt safety.
barbieri [Sat, 21 Jan 2012 04:32:33 +0000 (04:32 +0000)]
improve counter tests wrt safety.

TODO: parse dump and see if it's valid.

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

12 years agoinstall eina_model.h
barbieri [Sat, 21 Jan 2012 04:22:18 +0000 (04:22 +0000)]
install eina_model.h

thanks JihoonKim

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

12 years agobeef inlist tests wrt safety pointers
barbieri [Sat, 21 Jan 2012 04:20:32 +0000 (04:20 +0000)]
beef inlist tests wrt safety pointers

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

12 years agoimprove magic tests, check output to see if it happened
barbieri [Sat, 21 Jan 2012 03:59:03 +0000 (03:59 +0000)]
improve magic tests, check output to see if it happened

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

12 years agooops, use the copied va_list.
barbieri [Sat, 21 Jan 2012 03:57:09 +0000 (03:57 +0000)]
oops, use the copied va_list.

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

12 years agoimprove log tests.
barbieri [Sat, 21 Jan 2012 03:36:02 +0000 (03:36 +0000)]
improve log tests.

actually check stuff instead of relying on user to do so, also
produces no output if is correct.

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

12 years agowelcome eina_model.
barbieri [Sat, 21 Jan 2012 01:30:09 +0000 (01:30 +0000)]
welcome eina_model.

This is a simple to use generic hierarchical data access. It includes
properties, children, reference counting and notifications (callbacks).

It can be understood in the same lines as GObject or PyObject, but I
believe the best usage is just to provide data models, not generic
Object Oriented Programming in C.

It misses most of documentation, although the important bits are
there. Need help here :-/

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

12 years agoMy bad.. the type is referring to something out of the macro
sachiel [Fri, 20 Jan 2012 20:18:10 +0000 (20:18 +0000)]
My bad.. the type is referring to something out of the macro

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

12 years agotype-o... see what I did there? Yes, I'm an idiot.
sachiel [Fri, 20 Jan 2012 19:31:32 +0000 (19:31 +0000)]
type-o... see what I did there? Yes, I'm an idiot.

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

12 years agoeina_unicode: add safety checks.
barbieri [Fri, 20 Jan 2012 13:00:01 +0000 (13:00 +0000)]
eina_unicode: add safety checks.

they are not so expensive and will help detect bugs.

also, safety can be disabled at compile time... if performance is so
critical.

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

12 years agoeina_unicode: fix header inclusion.
barbieri [Fri, 20 Jan 2012 12:52:15 +0000 (12:52 +0000)]
eina_unicode: fix header inclusion.

library files should ALWAYS include config.h, they should not include
Eina.h using "<Eina.h>" to avoid messing with system's version.

Last but definitely not least: include safety checks BEFORE your local
header, otherwise the macros EINA_ARG_NONNULL() will remove every
check for null pointers! eina_safety_checks.h redefines it to empty so
compiler does not optimize these things.

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

12 years agoeina_test_clist: foce usage of local eina, not system.
barbieri [Fri, 20 Jan 2012 12:44:40 +0000 (12:44 +0000)]
eina_test_clist: foce usage of local eina, not system.

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

12 years agoFrom: Guillaume Friloux <guillaume.friloux@asp64.com>
raster [Fri, 20 Jan 2012 02:58:57 +0000 (02:58 +0000)]
From: Guillaume Friloux <guillaume.friloux@asp64.com>
Subject: Re: [E-devel] Various patches in eina's doc

update authors in doc patch.

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

12 years agoeina: fix inarray macro.
cedric [Thu, 19 Jan 2012 15:13:07 +0000 (15:13 +0000)]
eina: fix inarray macro.

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

12 years agouse $(MAKE) instead of make, echo the built doc package.
barbieri [Thu, 19 Jan 2012 14:07:35 +0000 (14:07 +0000)]
use $(MAKE) instead of make, echo the built doc package.

This removes the annoying:

   make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.

and with the package name I can upload it easily to somewhere else.

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

12 years agodocs: remove some warnings and make eina/eet doc more uniform.
barbieri [Thu, 19 Jan 2012 13:26:40 +0000 (13:26 +0000)]
docs: remove some warnings and make eina/eet doc more uniform.

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

12 years agoOops, forgot to fix some warnings for eina docs out-of-tree generation.
barbieri [Thu, 19 Jan 2012 12:25:42 +0000 (12:25 +0000)]
Oops, forgot to fix some warnings for eina docs out-of-tree generation.

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