gphoto4ruby 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/ext/gphoto2camera.c +9 -8
- data/ext/gphoto2camera_utilities.h +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/ext/gphoto2camera.c
CHANGED
@@ -197,8 +197,8 @@ VALUE camera_capture(int argc, VALUE *argv, VALUE self) {
|
|
197
197
|
return Qnil;
|
198
198
|
}
|
199
199
|
|
200
|
-
gp_result_check(gp_camera_capture(c->camera, GP_CAPTURE_IMAGE,
|
201
|
-
strcpy(c->virtFolder, c->path
|
200
|
+
gp_result_check(gp_camera_capture(c->camera, GP_CAPTURE_IMAGE, c->path, c->context));
|
201
|
+
strcpy(c->virtFolder, c->path->folder);
|
202
202
|
// printf("captured: %s/%s\n", c->path.folder, c->path.name);
|
203
203
|
return self;
|
204
204
|
}
|
@@ -245,8 +245,8 @@ VALUE camera_save(int argc, VALUE *argv, VALUE self) {
|
|
245
245
|
Data_Get_Struct(self, GPhoto2Camera, c);
|
246
246
|
|
247
247
|
strcpy(fName, "");
|
248
|
-
strcpy(cFileName, c->path
|
249
|
-
strcpy(cFolderName, c->path
|
248
|
+
strcpy(cFileName, c->path->name);
|
249
|
+
strcpy(cFolderName, c->path->folder);
|
250
250
|
|
251
251
|
gp_result_check(gp_filesystem_reset(c->camera->fs));
|
252
252
|
|
@@ -372,8 +372,8 @@ VALUE camera_delete(int argc, VALUE *argv, VALUE self) {
|
|
372
372
|
|
373
373
|
Data_Get_Struct(self, GPhoto2Camera, c);
|
374
374
|
|
375
|
-
strcpy(cFileName, c->path
|
376
|
-
strcpy(cFolderName, c->path
|
375
|
+
strcpy(cFileName, c->path->name);
|
376
|
+
strcpy(cFolderName, c->path->folder);
|
377
377
|
|
378
378
|
switch(argc) {
|
379
379
|
case 0:
|
@@ -922,8 +922,9 @@ VALUE camera_wait(int argc, VALUE *argv, VALUE self) {
|
|
922
922
|
switch (ce->type) {
|
923
923
|
case GP_EVENT_FILE_ADDED:
|
924
924
|
case GP_EVENT_FOLDER_ADDED:
|
925
|
-
|
926
|
-
|
925
|
+
c->path = (CameraFilePath*)evtData;
|
926
|
+
ce->path = c->path;
|
927
|
+
strcpy(c->virtFolder, c->path->folder);
|
927
928
|
gp_result_check(gp_camera_wait_for_event(c->camera, 100, &fakeType, &fakeData, c->context));
|
928
929
|
break;
|
929
930
|
default:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gphoto4ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- heq4 company
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2008-09-
|
13
|
+
date: 2008-09-29 00:00:00 +04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|