summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi/eina.rb
blob: 6d09164e46585f94a3d902e0519bf8b590aaa175 (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
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/ffi'
#
module Efl
    #
    module Eina
        def self.method_missing m, *args, &block
            return Efl::FFI.send 'eina_'+m.to_s, *args, &block
        end
    end
    #
    module FFI
        #
        #
        ffi_lib 'eina'
        #
        # ENUMS
        #
        # TYPEDEFS
        # typedef struct _Eina_Version Eina_Version;
        typedef :pointer, :eina_version
        #
        # CALLBACKS
        #
        # FUNCTIONS
        fcts = [
        # EAPI extern Eina_Version *eina_version;
        # FIXME
        # EAPI int eina_init(void);
        [ :eina_init, [  ], :int ],
        # EAPI int eina_shutdown(void);
        [ :eina_shutdown, [  ], :int ],
        # EAPI int eina_threads_init(void);
        [ :eina_threads_init, [  ], :int ],
        # EAPI int eina_threads_shutdown(void);
        [ :eina_threads_shutdown, [  ], :int ],
        ]
        #
        attach_fcts fcts
    end
end
#
# EOF