summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_engine.rb
blob: 5690d7b600b60a2078f5a7a892ae7e3270ba1a31 (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
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
require 'efl/native/elementary'
#
module Efl
    #
    module ElmEngine
        #
        FCT_PREFIX = 'elm_engine_' unless const_defined? :FCT_PREFIX
        #
        def self.method_missing meth, *args, &block
            sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
            self.send sym, *args, &block
        end
        #
    end
    #
    module Native
        #
        ffi_lib 'elementary-ver-pre-svn-09.so.0'
        #
        # FUNCTIONS
        fcts = [
        # EAPI const char *elm_engine_get(void);
        [ :elm_engine_get, [  ], :string ],
        # EAPI void elm_engine_set(const char *engine);
        [ :elm_engine_set, [ :string ], :void ],
        # EAPI const char *elm_preferred_engine_get(void);
        [ :elm_preferred_engine_get, [  ], :string ],
        # EAPI void elm_preferred_engine_set(const char *engine);
        [ :elm_preferred_engine_set, [ :string ], :void ],
        ]
        #
        attach_fcts fcts
        #
    end
end
#
# EOF