gphoto4ruby 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
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.1.6
4
+ version: 0.2.0
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-05 00:00:00 +04:00
13
+ date: 2008-09-08 00:00:00 +04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -22,6 +22,8 @@ extensions:
22
22
  - ext/extconf.rb
23
23
  extra_rdoc_files:
24
24
  - ext/gphoto4ruby.c
25
+ - ext/gphoto2camera.c
26
+ - ext/gphoto2camera_event.c
25
27
  - README.rdoc
26
28
  - LICENSE
27
29
  - CHANGELOG.rdoc
@@ -39,7 +41,12 @@ files:
39
41
  - ext
40
42
  - ext/extconf.rb
41
43
  - ext/gphoto4ruby.c
42
- - ext/gphoto4ruby.h
44
+ - ext/gphoto2camera.c
45
+ - ext/gphoto2camera.h
46
+ - ext/gphoto2camera_event.c
47
+ - ext/gphoto2camera_event.h
48
+ - ext/gphoto2camera_utilities.c
49
+ - ext/gphoto2camera_utilities.h
43
50
  has_rdoc: true
44
51
  homepage: http://github.com/lonelyelk/gphoto4ruby
45
52
  post_install_message:
data/ext/gphoto4ruby.h DELETED
@@ -1,86 +0,0 @@
1
- /**
2
- *
3
- * Copyright 2008 neq4 company <http://neq4.com>
4
- * Author: Sergey Kruk <sergey.kruk@gmail.com>
5
- *
6
- * This file is part of GPhoto4Ruby.
7
- *
8
- * GPhoto4Ruby is free software: you can redistribute it and/or
9
- * modify it under the terms of the GNU Lesser General Public
10
- * License as published by the Free Software Foundation, either
11
- * version 3 of the License, or (at your option) any later version.
12
- *
13
- * GPhoto4Ruby is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with GPhoto4Ruby. If not, see <http://www.gnu.org/licenses/>.
20
- *
21
- */
22
-
23
- typedef struct {
24
- Camera *camera;
25
- CameraWidget *config;
26
- CameraWidget *childConfig;
27
- CameraList *list;
28
- CameraFilePath path;
29
- CameraFile *file;
30
- GPContext *context;
31
-
32
- char *virtFolder;
33
- } GPhoto2Camera;
34
-
35
- typedef struct {
36
- CameraEventType type;
37
- CameraFilePath *path;
38
- } GPhoto2CameraEvent;
39
-
40
- #define EVENT_UNKNOWN rb_str_new2("unknown")
41
- #define EVENT_TIMEOUT rb_str_new2("timeout")
42
- #define EVENT_FILE_ADDED rb_str_new2("file added")
43
- #define EVENT_FOLDER_ADDED rb_str_new2("folder added")
44
-
45
- static VALUE rb_mGPhoto2;
46
- static VALUE rb_cGPhoto2Camera;
47
- static VALUE rb_cGPhoto2CameraEvent;
48
-
49
- static VALUE rb_cGPhoto2Exception;
50
- static VALUE rb_cGPhoto2ConfigurationError;
51
-
52
- static void rb_raise_gp_result(int retval);
53
- static void rb_raise_programmer_error(const char* fName);
54
-
55
- static VALUE getRadio(CameraWidget *cc);
56
- static VALUE listRadio(CameraWidget *cc);
57
- static VALUE setRadio(VALUE self, GPhoto2Camera *c, VALUE newVal, int save);
58
- static VALUE getRange(CameraWidget *cc);
59
- static VALUE listRange(CameraWidget *cc);
60
- static VALUE setRange(VALUE self, GPhoto2Camera *c, VALUE newNum, int save);
61
- static void saveConfigs(VALUE self, GPhoto2Camera *c);
62
-
63
- static void populateWithConfigs(CameraWidget *cc, VALUE arr);
64
-
65
- static void camera_mark(GPhoto2Camera *c);
66
- static void camera_free(GPhoto2Camera *c);
67
- static VALUE camera_allocate(VALUE klass);
68
-
69
- static VALUE camera_initialize(int argc, VALUE *argv, VALUE self);
70
- static VALUE camera_class_ports(VALUE klass);
71
-
72
- static VALUE camera_capture(int argc, VALUE *argv, VALUE self);
73
-
74
- static VALUE camera_save(int argc, VALUE *argv, VALUE self);
75
-
76
- static VALUE camera_get_config(VALUE self);
77
- static VALUE camera_config_merge(VALUE self, VALUE hash);
78
-
79
- static VALUE camera_get_value(int argc, VALUE *argv, VALUE self);
80
- static VALUE camera_set_value(VALUE self, VALUE str, VALUE newVal);
81
-
82
- static VALUE camera_folder(VALUE self);
83
- static VALUE camera_subfolders(VALUE self);
84
- static VALUE camera_files(VALUE self);
85
- static VALUE camera_folder_up(VALUE self);
86
- static VALUE camera_folder_down(VALUE self, VALUE folder);