summaryrefslogtreecommitdiffstats
path: root/lib/e17/edje.rb
blob: 1e5ff87c5b5bc77fb8a09ae1d43af72d22cd3a09 (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
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'e17/ffi_helper'
#
module E17
    module EDJE
        #
        extend FFIHelper
        extend FFI::Library
        #
        ffi_lib 'edje'
        #
        fcts = [
            # TODO
            # http://docs.enlightenment.org/auto/edje/Edje_8h.html
            [ :edje_init, [], :int],
            [ :edje_shutdown, [], :int],
        ]
        #
        attach_fcts fcts
        #
        create_aliases 'edje_'.length, fcts
        #
    end
end
#
# EOF