summaryrefslogtreecommitdiff
path: root/src/tests/eolian_cxx/simple.c
blob: 718e5c35499e77ba387f6e7580e8ffaf5c8ee04b (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
29
30
31
32
33
34
35
36
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include <stdlib.h>

#include <Eo.h>
#include <Ecore.h>

#include "simple.eo.h"

#define MY_CLASS SIMPLE_CLASS

static Eo *_simple_efl_object_constructor(Eo *obj, void *pd EINA_UNUSED)
{
   return efl_constructor(efl_super(obj, MY_CLASS));
}

static Eina_Bool _simple_simple_get(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED)
{
   printf("calling %s\n", __FUNCTION__);

   return EINA_TRUE;
}

static Eina_Bool _simple_name_get(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, const char** name)
{
   static const char* _name= "simple_class";

   printf("calling %s= simples class\n", __FUNCTION__);
   *name = _name;

   return EINA_TRUE;
}

#include "simple.eo.c"