canonball 2.2.0 → 2.3.0
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/lib/canonball.rb +1 -4
- data/lib/canonball/canonball.so +0 -0
- data/lib/canonball/version.rb +1 -1
- data/src/canonball.cpp +7 -0
- data/src/headers/canonball.h +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7069f513fa9be84c5b4e7f4f999943825fc05747
|
4
|
+
data.tar.gz: 423e312e031e3d521768e2e3cb4aae638a91ef47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 047cdc0a45e89b4da515c1b2d5c92d5717868d5077b413a433a89e9a9f4a660bdcd306b082ca62a455af9ba6b4bac067de201b98f48bc610ddec82800eb56138
|
7
|
+
data.tar.gz: bb44f685376f58945d1a8dd71ccef2a42e6ccdff61eb613bbcaceeab9bc2c26077b012108e8660fc2d15b6b11dbdde8bb299770eb691de45e0fb2b30d62c4258
|
data/lib/canonball.rb
CHANGED
@@ -11,12 +11,9 @@ module Canonball
|
|
11
11
|
attach_function :open_camera_session, [ :int ], :int
|
12
12
|
attach_function :close_camera_session, [], :int
|
13
13
|
attach_function :take_picture, [], :int
|
14
|
+
attach_function :set_drive_mode, [], :int
|
14
15
|
attach_function :press_shutter_button, [], :int
|
15
16
|
attach_function :press_shutter_button_non_af, [], :int
|
16
17
|
attach_function :download_files, [ :int, :string], :int
|
17
18
|
|
18
|
-
def self.open_mirror
|
19
|
-
press_shutter_button_non_af
|
20
|
-
end
|
21
|
-
|
22
19
|
end
|
data/lib/canonball/canonball.so
CHANGED
Binary file
|
data/lib/canonball/version.rb
CHANGED
data/src/canonball.cpp
CHANGED
@@ -40,6 +40,13 @@ int take_picture() {
|
|
40
40
|
return error;
|
41
41
|
}
|
42
42
|
|
43
|
+
int set_drive_mode() {
|
44
|
+
EdsError error = EDS_ERR_OK;
|
45
|
+
EdsUInt32 driveMode = 0x00000014;
|
46
|
+
if (error == EDS_ERR_OK) error = EdsSetPropertyData(camera, kEdsPropID_DriveMode, 0, sizeof(driveMode), &driveMode);
|
47
|
+
return error;
|
48
|
+
}
|
49
|
+
|
43
50
|
int press_shutter_button() {
|
44
51
|
EdsError error = EDS_ERR_OK;
|
45
52
|
if (error == EDS_ERR_OK) error = EdsSendCommand(camera , kEdsCameraCommand_PressShutterButton, kEdsCameraCommand_ShutterButton_Completely);
|
data/src/headers/canonball.h
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canonball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Christopher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|