summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/typedef.eo
blob: ed6e100044488d0add3291979f424d1a417281cc (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
type Evas.Coord: int; /* Simple type definition */
type List_Objects: own(list<Eo *>*); /* A little more complex */

enum Enum.Bar
{
   legacy: bar;
   first_item  = 0,
   second_item,
   last_item
}

enum Elm.Object.Select_Mode
{
   default = 0,
   always,
   none,
   display_only,
   max
}

class Typedef {
   methods {
      foo {
         params {
            int idx;
         }
         return: own(char*); /*@ comment for method return */
      }
   }
}