summaryrefslogtreecommitdiff
path: root/src/tests/eo/access/access_main.c
blob: 4bc3db5bb2eb5f5f81fc28e8632e569e781f1703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include "Eo.h"
#include "access_simple.h"
#include "access_inherit.h"

int
main(int argc, char *argv[])
{
   (void) argc;
   (void) argv;
   efl_object_init();

   Eo *obj = efl_add_ref(INHERIT_CLASS, NULL);

   simple_a_set(obj, 1);
   inherit_prot_print(obj);

   Simple_Public_Data *pd = efl_data_scope_get(obj, SIMPLE_CLASS);
   printf("Pub: %d\n", pd->public_x2);

   efl_unref(obj);
   efl_object_shutdown();
   return 0;
}