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 CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.2
2
+
3
+ * fixed bug where event "file added" was not changing file path
4
+
1
5
  == 0.2.1
2
6
 
3
7
  * fixed bug where several cameras could not be initialized
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, &(c->path), c->context));
201
- strcpy(c->virtFolder, c->path.folder);
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.name);
249
- strcpy(cFolderName, c->path.folder);
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.name);
376
- strcpy(cFolderName, c->path.folder);
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
- ce->path = (CameraFilePath*)evtData;
926
- strcpy(c->virtFolder, ce->path->folder);
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:
@@ -34,7 +34,7 @@ typedef struct {
34
34
  CameraWidget *config;
35
35
  CameraWidget *childConfig;
36
36
  CameraList *list;
37
- CameraFilePath path;
37
+ CameraFilePath *path;
38
38
  CameraFile *file;
39
39
  GPContext *context;
40
40
 
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.1
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-22 00:00:00 +04:00
13
+ date: 2008-09-29 00:00:00 +04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16