ffi-gphoto2 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/ffi/gphoto2.rb +3 -3
- data/lib/ffi/gphoto2_port.rb +1 -1
- data/lib/gphoto2/camera.rb +1 -1
- data/lib/gphoto2/camera/configuration.rb +1 -1
- data/lib/gphoto2/camera_abilities_list.rb +1 -1
- data/lib/gphoto2/camera_file.rb +1 -1
- data/lib/gphoto2/camera_list.rb +1 -1
- data/lib/gphoto2/camera_widgets/camera_widget.rb +1 -1
- data/lib/gphoto2/port_info_list.rb +1 -1
- data/lib/gphoto2/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47eba00fa220e5731024fb274417962e94dd3f9d
|
4
|
+
data.tar.gz: 7dc8ef9e1df14a714b959b0155d229aa4bced308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4c3d6e6eeaf9ccb3579405b3410214a299c0b5ef9a94b0f3c1462963d5012a82585354411d4803609526191477f495374e5668c1f190812471ac6ec31d9bd9b
|
7
|
+
data.tar.gz: c8323dd877ff8d23fb5e9c3aca348be5cd6683f5643cc46e7b498da246f5e08b4b7b30aec248e85220cb55dbe90d48cc97a52fc9a3b65ad29e56d9d2d1206b57
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,11 @@
|
|
2
2
|
|
3
3
|
## HEAD
|
4
4
|
|
5
|
-
|
5
|
+
* [FIX] `ManagedStruct.release` actually calls `*_free` functions. Autorelease
|
6
|
+
invocations were silently failing with a `TypeError` because the functions
|
7
|
+
expected structs, not pointers.
|
8
|
+
|
9
|
+
## 0.6.0 (2016-07-11)
|
6
10
|
|
7
11
|
* [FIX] Use the correct default filename when a `CameraFile` is a preview.
|
8
12
|
* [ADD] Add `CameraFileInfo` and related operations. `CameraFile#info` only
|
data/lib/ffi/gphoto2.rb
CHANGED
@@ -38,7 +38,7 @@ module FFI
|
|
38
38
|
|
39
39
|
# gphoto2/gphoto2-abilities-list.h
|
40
40
|
attach_function :gp_abilities_list_new, [:pointer], :int
|
41
|
-
attach_function :gp_abilities_list_free, [
|
41
|
+
attach_function :gp_abilities_list_free, [:pointer], :int
|
42
42
|
attach_function :gp_abilities_list_load, [CameraAbilitiesList.by_ref, GPContext.by_ref], :int
|
43
43
|
attach_function :gp_abilities_list_detect, [CameraAbilitiesList.by_ref, GPhoto2Port::GPPortInfoList.by_ref, CameraList.by_ref, GPContext.by_ref], :int
|
44
44
|
attach_function :gp_abilities_list_lookup_model, [CameraAbilitiesList.by_ref, :string], :int
|
@@ -70,12 +70,12 @@ module FFI
|
|
70
70
|
|
71
71
|
# gphoto2/gphoto2-file.h
|
72
72
|
attach_function :gp_file_new, [:pointer], :int
|
73
|
-
attach_function :gp_file_free, [
|
73
|
+
attach_function :gp_file_free, [:pointer], :int
|
74
74
|
attach_function :gp_file_get_data_and_size, [CameraFile.by_ref, :pointer, :pointer], :int
|
75
75
|
|
76
76
|
# gphoto2/gphoto2-list.h
|
77
77
|
attach_function :gp_list_new, [:pointer], :int
|
78
|
-
attach_function :gp_list_free, [
|
78
|
+
attach_function :gp_list_free, [:pointer], :int
|
79
79
|
attach_function :gp_list_count, [CameraList.by_ref], :int
|
80
80
|
attach_function :gp_list_get_name, [CameraList.by_ref, :int, :pointer], :int
|
81
81
|
attach_function :gp_list_get_value, [CameraList.by_ref, :int, :pointer], :int
|
data/lib/ffi/gphoto2_port.rb
CHANGED
@@ -20,7 +20,7 @@ module FFI
|
|
20
20
|
attach_function :gp_port_info_get_type, [GPPortInfo, :pointer], :int
|
21
21
|
|
22
22
|
attach_function :gp_port_info_list_new, [:pointer], :int
|
23
|
-
attach_function :gp_port_info_list_free, [
|
23
|
+
attach_function :gp_port_info_list_free, [:pointer], :int
|
24
24
|
attach_function :gp_port_info_list_load, [GPPortInfoList.by_ref], :int
|
25
25
|
attach_function :gp_port_info_list_lookup_path, [GPPortInfoList.by_ref, :string], :int
|
26
26
|
attach_function :gp_port_info_list_get_info, [GPPortInfoList.by_ref, :int, :pointer], :int
|
data/lib/gphoto2/camera.rb
CHANGED
@@ -138,7 +138,7 @@ module GPhoto2
|
|
138
138
|
end
|
139
139
|
|
140
140
|
def get_config
|
141
|
-
widget_ptr = FFI::MemoryPointer.new(
|
141
|
+
widget_ptr = FFI::MemoryPointer.new(:pointer)
|
142
142
|
rc = gp_camera_get_config(ptr, widget_ptr, context.ptr)
|
143
143
|
GPhoto2.check!(rc)
|
144
144
|
widget = FFI::GPhoto2::CameraWidget.new(widget_ptr.read_pointer)
|
@@ -32,7 +32,7 @@ module GPhoto2
|
|
32
32
|
private
|
33
33
|
|
34
34
|
def new
|
35
|
-
ptr = FFI::MemoryPointer.new(
|
35
|
+
ptr = FFI::MemoryPointer.new(:pointer)
|
36
36
|
rc = gp_abilities_list_new(ptr)
|
37
37
|
GPhoto2.check!(rc)
|
38
38
|
@ptr = FFI::GPhoto2::CameraAbilitiesList.new(ptr.read_pointer)
|
data/lib/gphoto2/camera_file.rb
CHANGED
data/lib/gphoto2/camera_list.rb
CHANGED
@@ -127,7 +127,7 @@ module GPhoto2
|
|
127
127
|
end
|
128
128
|
|
129
129
|
def get_child(index)
|
130
|
-
widget_ptr = FFI::MemoryPointer.new(
|
130
|
+
widget_ptr = FFI::MemoryPointer.new(:pointer)
|
131
131
|
rc = gp_widget_get_child(ptr, index, widget_ptr)
|
132
132
|
GPhoto2.check!(rc)
|
133
133
|
widget = FFI::GPhoto2::CameraWidget.new(widget_ptr.read_pointer)
|
data/lib/gphoto2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-gphoto2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Macias
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -243,4 +243,3 @@ test_files:
|
|
243
243
|
- spec/support/shared_examples/camera/filesystem_examples.rb
|
244
244
|
- spec/support/shared_examples/camera_file_info_examples.rb
|
245
245
|
- spec/support/shared_examples/camera_widget_examples.rb
|
246
|
-
has_rdoc:
|