ffi-tellduscore 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/tellduscore.rb +14 -0
  2. metadata +65 -0
@@ -0,0 +1,14 @@
1
+ require 'ffi'
2
+
3
+ module TelldusCore
4
+ extend FFI::Library
5
+ ffi_lib "telldus-core"
6
+
7
+ callback :TDSensorEvent, [:string, :string, :int, :int, :string, :int, :int, :pointer], :void
8
+
9
+ attach_function :tdInit, [], :void
10
+ attach_function :tdRegisterSensorEvent, [:TDSensorEvent, :pointer], :int
11
+
12
+ attach_function :tdClose, [], :void
13
+ attach_function :tdUnregisterCallback, [:int], :void
14
+ end
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ffi-tellduscore
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Hallvar Helleseth
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-08-11 00:00:00 Z
19
+ dependencies: []
20
+
21
+ description: Bindings to tellduscore library for interfacing for wireless temperature and humidity sensors
22
+ email: hallvar@gmail.com
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files: []
28
+
29
+ files:
30
+ - lib/tellduscore.rb
31
+ homepage: http://github.com/hallvar/ffi-tellduscore
32
+ licenses: []
33
+
34
+ post_install_message:
35
+ rdoc_options: []
36
+
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ hash: 3
54
+ segments:
55
+ - 0
56
+ version: "0"
57
+ requirements: []
58
+
59
+ rubyforge_project:
60
+ rubygems_version: 1.8.15
61
+ signing_key:
62
+ specification_version: 3
63
+ summary: Bindings to tellduscore library
64
+ test_files: []
65
+