2012-09-07 14:56:44 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
#include "Eo.h"
|
2012-09-25 23:56:52 -07:00
|
|
|
#include "access_simple.h"
|
|
|
|
#include "access_inherit.h"
|
2012-04-05 08:31:15 -07:00
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
(void) argc;
|
|
|
|
(void) argv;
|
2016-08-15 06:44:41 -07:00
|
|
|
efl_object_init();
|
2012-04-05 08:31:15 -07:00
|
|
|
|
2018-03-15 09:50:20 -07:00
|
|
|
Eo *obj = efl_add_ref(INHERIT_CLASS, NULL);
|
2012-04-05 08:31:15 -07:00
|
|
|
|
2016-03-01 10:06:28 -08:00
|
|
|
simple_a_set(obj, 1);
|
|
|
|
inherit_prot_print(obj);
|
2012-04-05 08:31:15 -07:00
|
|
|
|
2016-08-15 06:44:41 -07:00
|
|
|
Simple_Public_Data *pd = efl_data_scope_get(obj, SIMPLE_CLASS);
|
2012-04-05 08:31:15 -07:00
|
|
|
printf("Pub: %d\n", pd->public_x2);
|
|
|
|
|
2016-08-15 06:44:41 -07:00
|
|
|
efl_unref(obj);
|
|
|
|
efl_object_shutdown();
|
2012-04-05 08:31:15 -07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|