summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/struct_ref.h
blob: ec7ea5267165d76ffc8639fcd7816251940c63ed (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
37
38
39
40
41
42
43
44
45
#ifndef _EOLIAN_TYPEDEF_EO_H_
#define _EOLIAN_TYPEDEF_EO_H_

#ifndef _STRUCT_EO_CLASS_TYPE
#define _STRUCT_EO_CLASS_TYPE

typedef Eo Struct;

#endif

#ifndef _STRUCT_EO_TYPES
#define _STRUCT_EO_TYPES

typedef struct _Named
{
  int *field;
  const char *something;
} Named;

typedef struct _Another
{
  Named field;
} Another;

typedef struct _Opaque Opaque;


#endif
#define STRUCT_CLASS struct_class_get()

EWAPI const Efl_Class *struct_class_get(void);

/**
 * @brief Foo docs. This is @c monospace. This is alone-standing $.
 *
 * @param[in] obj The object.
 * @param[in] idx
 *
 * @ingroup Struct
 */
EOAPI char *struct_foo(Eo *obj, int idx) EFL_TRANSFER_OWNERSHIP EINA_WARN_UNUSED_RESULT;

EOAPI Named *struct_bar(Eo *obj);

#endif