Eo: Implement eo_override() to enable overriding functions of objects.
authorTom Hacohen <tom@stosb.com>
Thu, 19 May 2016 10:33:17 +0000 (11:33 +0100)
committerTom Hacohen <tom@stosb.com>
Fri, 20 May 2016 09:25:00 +0000 (10:25 +0100)
commit06f65ab2b1ad4b6963de4193aeea2f4274ced1fa
tree971c0676f8088ef4d471346969a17aee34e8ed23
parentc450efdcde1c11b60c9567c70a349134fa9534fc
Eo: Implement eo_override() to enable overriding functions of objects.

This change lets you override the functions of objects so that those
functions will be called instead of the functions of the class. This
lets you change objects on the fly and makes using the delegate pattern
easier (no need to create a class every time anymore).
You can see the newly added tests (in this commit) for usage examples.

@feature
src/Makefile_Eo.am
src/lib/eo/Eo.h
src/lib/eo/eo.c
src/lib/eo/eo_override.eo [new file with mode: 0644]
src/lib/eo/eo_private.h
src/tests/eo/suite/eo_test_general.c