platform/shared/ruby/ext/camera/camera.i in rhodes-3.0.2 vs platform/shared/ruby/ext/camera/camera.i in rhodes-3.1.0.beta.1
- old
+ new
@@ -1,9 +1,29 @@
/* system.i */
%module Camera
%{
-extern void take_picture(char* callback_url);
+#include "ext/rho/rhoruby.h"
+
+extern void take_picture(char* callback_url, rho_param *options_hash);
extern void choose_picture(char* callback_url);
+
+extern VALUE get_camera_info(const char* camera_type);
+
%}
-extern void take_picture(char* callback_url);
+%typemap(default) (rho_param *options_hash) {
+ $1 = NULL;
+}
+
+%typemap(in) (rho_param *options_hash) {
+ $1 = rho_param_fromvalue($input);
+}
+
+%typemap(freearg) (rho_param *options_hash) {
+ rho_param_free($1);
+}
+
+
+extern void take_picture(char* callback_url, rho_param *options_hash );
extern void choose_picture(char* callback_url);
+
+extern VALUE get_camera_info(const char* camera_type);