Lucas De Marchi
4c184eff2f
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.
SVN revision: 67776
2012-02-09 00:06:14 +00:00
Tom Hacohen
8144798618
Eina model: Added an eina model example for inheritance.
...
Patch by Yakov Goldberg.
SVN revision: 67767
2012-02-08 16:39:19 +00:00
Tom Hacohen
1dbab17f64
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.
SVN revision: 67765
2012-02-08 15:37:07 +00:00
Gustavo Sverzut Barbieri
68d5bb81bc
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.
SVN revision: 67764
2012-02-08 15:13:25 +00:00
Tom Hacohen
b5de0cf46b
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);
};
SVN revision: 67733
2012-02-07 13:24:27 +00:00
Tom Hacohen
c0ab80f047
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);
...
}
SVN revision: 67732
2012-02-07 13:17:13 +00:00
Jihoon Kim
36c2029d0a
fix @dates in each header file
...
SVN revision: 67705
2012-02-05 23:37:45 +00:00
Vincent Torri
6199e30512
Eina: use new Evil API to detect absolute path name
...
SVN revision: 67702
2012-02-05 09:41:25 +00:00
Vincent Torri
76057ccbe8
Eina: append and prepend __ to gcc attributes
...
Avoid conflicts with macros that have been previously defined
with the same name than the attribute
SVN revision: 67701
2012-02-05 09:34:17 +00:00
Jonas M. Gastal
90f5f268dc
Change eina_mode_child_search to more descriptive
...
eina_model_child_criteria_match.
Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>
SVN revision: 67688
2012-02-02 12:32:13 +00:00
Jonas M. Gastal
8f35a3d5ab
Better documentation for eina_model.
...
Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>
SVN revision: 67687
2012-02-02 12:31:46 +00:00
Gustavo Sverzut Barbieri
ceb07e60d1
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;
SVN revision: 67662
2012-01-31 21:05:20 +00:00
Mike Blumenkrantz
128f5aa6e9
unbreak eina_value
...
SVN revision: 67643
2012-01-31 17:31:48 +00:00
Tom Hacohen
518424907e
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.
SVN revision: 67642
2012-01-31 17:27:57 +00:00
Tom Hacohen
ade018086c
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...
SVN revision: 67641
2012-01-31 17:12:23 +00:00
Mike Blumenkrantz
56dc6e9571
add new eina value dummy type TIMESTAMP which is identical to ULONG
...
SVN revision: 67639
2012-01-31 16:55:10 +00:00
Gustavo Sverzut Barbieri
0d72a87ff6
add missing @since 1.2
...
SVN revision: 67638
2012-01-31 16:47:36 +00:00
Gustavo Sverzut Barbieri
948ce4b9ec
eina_value: add EINA_VALUE_TYPE_MODEL
...
SVN revision: 67637
2012-01-31 16:45:59 +00:00
Gustavo Sverzut Barbieri
088ab8dd2b
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.
SVN revision: 67635
2012-01-31 15:26:48 +00:00
Tom Hacohen
7dbd7c03e6
Eina test model: Use EINA_VALUE_STRUCT_MEMBER and the new EINA_C_ARRAY_LENGTH.
...
SVN revision: 67590
2012-01-29 15:38:04 +00:00
Tom Hacohen
92d70212c5
Eina: Added EINA_C_ARRAY_LENGTH.
...
This macro returns the length of a standard C array.
SVN revision: 67589
2012-01-29 15:38:01 +00:00
Tom Hacohen
73830721ce
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.
SVN revision: 67584
2012-01-29 12:57:36 +00:00
Vincent Torri
16b49b02f5
Eina: fix previous commit
...
SVN revision: 67564
2012-01-27 07:52:30 +00:00
Tom Hacohen
a45dd94b03
Eina model: fix a memory leak in the model's "to_string" function.
...
SVN revision: 67551
2012-01-26 16:42:00 +00:00
Vincent Torri
fcd0b658cf
Eina: fix compilation errors in Eina_RWLock code when building code on Windows > XP
...
SVN revision: 67545
2012-01-26 07:21:27 +00:00
Gustavo Sverzut Barbieri
be80cc08ec
bugfix: reset iterator to head before the second lookup.
...
SVN revision: 67539
2012-01-25 17:06:29 +00:00
Gustavo Sverzut Barbieri
3683b0e719
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.
SVN revision: 67538
2012-01-25 16:58:57 +00:00
Jonas M. Gastal
263d6af353
Small fixes to eina_model documentation.
...
Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>
SVN revision: 67535
2012-01-25 13:48:32 +00:00
Tom Hacohen
4bd08d2ca5
Eina model: Fix the example in the docs to compile.
...
SVN revision: 67534
2012-01-25 12:05:20 +00:00
Gustavo Sverzut Barbieri
73b1d45d15
value got the helper, will be useful in other cases as well.
...
SVN revision: 67518
2012-01-24 22:56:17 +00:00
Gustavo Sverzut Barbieri
73b595df2f
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).
SVN revision: 67517
2012-01-24 22:17:57 +00:00
Gustavo Sverzut Barbieri
19a47340a5
reset log level after it's done testing.
...
SVN revision: 67516
2012-01-24 22:15:06 +00:00
Vincent Torri
78c73ea97a
Eina: fix requirements and a comment message
...
SVN revision: 67515
2012-01-24 22:05:46 +00:00
Vincent Torri
1f27f0b581
Eina: update alloca() declaration from latest autoconf doc.
...
SVN revision: 67483
2012-01-24 07:21:33 +00:00
Vincent Torri
0f16de1de6
Eina: Windows version is managed by Evil, now. I'm not sure I have to update ChangeLog.
...
SVN revision: 67482
2012-01-24 07:08:23 +00:00
Iván Briano
e4178ad8e6
dereference pointer before using
...
SVN revision: 67479
2012-01-23 16:51:02 +00:00
Gustavo Sverzut Barbieri
99b7af6912
beef eina_error tests.
...
SVN revision: 67461
2012-01-23 00:25:12 +00:00
Gustavo Sverzut Barbieri
4e88371068
fix paths to be relative to project build root.
...
"make doc" was doing "cd doc" and paths were relative to it, misleading.
SVN revision: 67459
2012-01-22 22:00:07 +00:00
Gustavo Sverzut Barbieri
1cd6f27baa
help buildbot and user know where the html files are.
...
SVN revision: 67454
2012-01-22 18:07:04 +00:00
Gustavo Sverzut Barbieri
422775911b
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).
SVN revision: 67449
2012-01-22 15:09:51 +00:00
Vincent Torri
7bc418f30f
Eina: remove warning when compiling with mingw-w64
...
SVN revision: 67447
2012-01-22 12:08:06 +00:00
Vincent Torri
f4baf62a91
Eina: DOS2UNIX eina_file_win32.c
...
SVN revision: 67445
2012-01-22 08:57:50 +00:00
Vincent Torri
54b589cfe9
Eina: remove unused variable
...
SVN revision: 67444
2012-01-22 08:56:13 +00:00
Vincent Torri
37ccabf61c
Eina "Fix" printf conversion format on Windows. printf family on Windows is just plain weirdness
...
SVN revision: 67443
2012-01-22 08:55:02 +00:00
Vincent Torri
2b932abc9c
Eina: formatting
...
eina_file_init() and eina_file_shutdown() are global symbols, not local ones
SVN revision: 67423
2012-01-21 08:23:23 +00:00
Vincent Torri
9f844d5699
Eina: Windows fixes
...
add eina_file_path_sanitize() which was missing in the windows port
add locks
synchronize a bit with the linux version
SVN revision: 67422
2012-01-21 08:21:32 +00:00
Vincent Torri
92b7c85e37
alphabetical order
...
SVN revision: 67421
2012-01-21 08:19:46 +00:00
Vincent Torri
b2e1adaaa6
Eina: put m4 files in their own subdir
...
Warning: you must relaunch autogen.sh for these changes to
be taken into account
SVN revision: 67420
2012-01-21 08:02:54 +00:00
Vincent Torri
0b96df92ee
Eina: include stdlib.h instead of alloca.h (alloca() is not used while malloc() is)
...
SVN revision: 67419
2012-01-21 07:44:05 +00:00
Gustavo Sverzut Barbieri
adf2dcfed9
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.
SVN revision: 67418
2012-01-21 07:21:23 +00:00