summaryrefslogtreecommitdiff
path: root/src/tests/eolian_cxx/callback.eo
blob: c05f64e293ea9765cdcbc9b2843a1a58192610e3 (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
import ecore_types;

class Callback (Eo.Base)
{
   data: Callback_Data;
   methods {
      onecallback {
         params {
           @in cb: Ecore_Cb;
           @in data: void_ptr;
         }
      }
      twocallback {
         params {
           @in cb: Ecore_Cb;
           @in data: void_ptr;
           @in cb2: Ecore_Cb;
         }
      }
      test_global_callbacks @class {
         params {
           @in cb: Ecore_Cb;
           @in data: void_ptr;
         }
      }
   }
   implements {
      Eo.Base.constructor;
   }
   events {
     call_on_add;
   }
}