summaryrefslogtreecommitdiffstats
path: root/lib/efl/evas.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-12 21:23:29 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-12 21:23:29 +0200
commit3a2eecb5bcf35120fcf3a9dcf1637459c99a6abe (patch)
tree591d46a4a6f0bcfbc200e9c4a92508ee26974eb8 /lib/efl/evas.rb
parent131839bfb26fadebc32ce86c10784e2ca2647bbc (diff)
downloadffi-efl-3a2eecb5bcf35120fcf3a9dcf1637459c99a6abe.zip
ffi-efl-3a2eecb5bcf35120fcf3a9dcf1637459c99a6abe.tar.gz
rename to ffi-e17
Diffstat (limited to 'lib/efl/evas.rb')
-rw-r--r--lib/efl/evas.rb46
1 files changed, 0 insertions, 46 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb
deleted file mode 100644
index 7f386b9..0000000
--- a/lib/efl/evas.rb
+++ /dev/null
@@ -1,46 +0,0 @@
-#! /usr/bin/env ruby
-# -*- coding: UTF-8 -*-
-#
-require 'ffi'
-#
-module EFL
- module EVAS
- #
- extend FFI::Library
- #
- callback :evas_async_events_put_cb, [:pointer, :int, :pointer], :void
- #
- ffi_lib 'evas'
- [
- # http://docs.enlightenment.org/auto/evas/group__Evas__Group.html
- [ :evas_init, [], :int],
- [ :evas_shutdown, [], :int],
- [ :evas_alloc_error, [], :int],
- [ :evas_async_events_fd_get, [], :int],
- [ :evas_async_events_process, [], :int],
- [ :evas_async_events_put, [:pointer, :int, :pointer, :evas_async_events_put_cb], :bool],
- ].each do |func|
- begin
- attach_function *func
- rescue Object => e
- puts "Could not attach #{func} #{e.message}"
- end
- end
- #
- ALLOC_ERROR_NONE = 0
- ALLOC_ERROR_FATAL = 1
- ALLOC_ERROR_RECOVERED = 2
- #
- class << self
- alias init evas_init
- alias shutdown evas_shutdown
- alias alloc_error evas_alloc_error
- alias async_events_fd_get evas_async_events_fd_get
- alias async_events_process evas_async_events_process
- alias async_events_put evas_async_events_put
- end
- #
- end
-end
-#
-# EOF