summaryrefslogtreecommitdiffstats
path: root/lib/efl/ecore.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/efl/ecore.rb')
-rw-r--r--lib/efl/ecore.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/efl/ecore.rb b/lib/efl/ecore.rb
index 4e6a4e9..0e7d88b 100644
--- a/lib/efl/ecore.rb
+++ b/lib/efl/ecore.rb
@@ -17,13 +17,13 @@ module Efl
#
class EcorePipe
def initialize cb, data
- @ptr = Efl::API.ecore_pipe_add cb, data
+ @ptr = Efl::FFI.ecore_pipe_add cb, data
end
- def del; Efl::API.ecore_pipe_del @ptr; end
- def read_close; Efl::API.ecore_pipe_read_close @ptr; end
- def write_close; Efl::API.ecore_pipe_write_close @ptr; end
+ def del; Efl::FFI.ecore_pipe_del @ptr; end
+ def read_close; Efl::FFI.ecore_pipe_read_close @ptr; end
+ def write_close; Efl::FFI.ecore_pipe_write_close @ptr; end
def write data
- Efl::API.ecore_pipe_write @ptr, FFI::MemoryPointer.from_string(data.to_s), data.to_s.length+1
+ Efl::FFI.ecore_pipe_write @ptr, ::FFI::MemoryPointer.from_string(data.to_s), data.to_s.length+1
end
#
end