summaryrefslogtreecommitdiff
path: root/src/tests/eolian_cxx/simple.c
blob: c78073ce2d15c10c1d75d6ae000aa015e379112a (plain) (blame)
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
37
38

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

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

#include <stdlib.h>

#include "simple.eo.h"

#define MY_CLASS SIMPLE_CLASS

static void _simple_eo_base_constructor(Eo *obj, void *pd EINA_UNUSED)
{
   eo_do_super(obj, MY_CLASS, eo_constructor());
}

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"