summaryrefslogtreecommitdiffstats
path: root/lib/e17/ecore.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/e17/ecore.rb')
-rw-r--r--lib/e17/ecore.rb34
1 files changed, 0 insertions, 34 deletions
diff --git a/lib/e17/ecore.rb b/lib/e17/ecore.rb
deleted file mode 100644
index b0be458..0000000
--- a/lib/e17/ecore.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-#! /usr/bin/env ruby
-# -*- coding: UTF-8 -*-
-#
-require 'e17/ecore/ecore-ffi'
-#
-module E17
- module Ecore
- #
- # ecore-1/Ecore.h line 95
- EVENT_NONE = 0
- EVENT_SIGNAL_USER = 1 # User signal event
- EVENT_SIGNAL_HUP = 2 # Hup signal event
- EVENT_SIGNAL_EXIT = 3 # Exit signal event
- EVENT_SIGNAL_POWER = 4 # Power signal event
- EVENT_SIGNAL_REALTIME = 5 # Realtime signal event
- EVENT_COUNT = 6
- #
- class EcorePipe
- def initialize cb, data
- @ptr = E17::API.ecore_pipe_add cb, data
- end
- def del; E17::API.ecore_pipe_del @ptr; end
- def read_close; E17::API.ecore_pipe_read_close @ptr; end
- def write_close; E17::API.ecore_pipe_write_close @ptr; end
- def write data
- E17::API.ecore_pipe_write @ptr, FFI::MemoryPointer.from_string(data.to_s), data.to_s.length+1
- end
- #
- end
- #
- end
-end
-#
-# EOF