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
|
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'e17/ffi_helper'
#
module E17
module EVAS
#
extend FFIHelper
extend FFI::Library
#
ffi_lib 'evas'
#
enum :evas_alloc_error, [:none,0,:fatal,:recovered]
#
callback :evas_async_events_put_cb, [:pointer, :int, :pointer], :void
#
@fcts = [
# http://docs.enlightenment.org/auto/evas/group__Evas__Group.html
[ :evas_init, [], :int],
[ :evas_shutdown, [], :int],
[ :evas_alloc_error, [], :evas_alloc_error],
[ :evas_async_events_fd_get, [], :int],
[ :evas_async_events_process, [], :int],
[ :evas_async_events_put, [:pointer, :int, :pointer, :evas_async_events_put_cb], :bool],
]
#
attach_fcts
#
create_aliases 'evas_'.length
#
end
end
#
# EOF
|