diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-11 10:07:14 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-11 10:07:14 +0200 |
commit | 533f8327d0a3f1eae95aedadd48d0f1640766f28 (patch) | |
tree | 985b29d9f744d14c8c2ab930fb15d7099c02c181 /lib/efl/ffi.rb | |
parent | 0c30e8a8efcc32de3216a8f49b84793e51ff31cc (diff) | |
download | ffi-efl-533f8327d0a3f1eae95aedadd48d0f1640766f28.zip ffi-efl-533f8327d0a3f1eae95aedadd48d0f1640766f28.tar.gz |
add missing sed-variables, fix EinaLog module generation, add self.version for all modules and use them in spec describe
Diffstat (limited to 'lib/efl/ffi.rb')
-rw-r--r-- | lib/efl/ffi.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb index e7eea39..c9f78d7 100644 --- a/lib/efl/ffi.rb +++ b/lib/efl/ffi.rb @@ -5,6 +5,19 @@ require 'ffi' # module Efl # + module Native + class VersionStruct < FFI::Struct + layout :major, :int, + :minor, :int, + :micro, :int, + :revision, :int + + def full + [:major,:minor,:micro,:revision].collect { |e| self[e].to_s }.join '.' + end + end + end + # module FFIHelper # def attach_fcts fcts |