diff options
Diffstat (limited to 'bindings/ruby')
-rw-r--r-- | bindings/ruby/Libproxy.i | 21 | ||||
-rw-r--r-- | bindings/ruby/extconf.rb | 3 | ||||
-rw-r--r-- | bindings/ruby/test.rb | 7 |
3 files changed, 0 insertions, 31 deletions
diff --git a/bindings/ruby/Libproxy.i b/bindings/ruby/Libproxy.i deleted file mode 100644 index 183acba..0000000 --- a/bindings/ruby/Libproxy.i +++ /dev/null @@ -1,21 +0,0 @@ -/* libproxy.i */ -%module Libproxy -%{ -#include "../../libproxy/proxy.h" -%} - -%typemap(out) char ** { - VALUE arr = rb_ary_new2(255); - int i; - for (i=0; $1[i]; i++) { - rb_ary_push(arr, rb_str_new2($1[i])); - } - $result = arr; -} - -%typemap(freearg) char ** { - free($source); -} - -%include "../../libproxy/proxy.h" - diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb deleted file mode 100644 index efd13eb..0000000 --- a/bindings/ruby/extconf.rb +++ /dev/null @@ -1,3 +0,0 @@ -require 'mkmf' -$libs = append_library($libs, "proxy") -create_makefile('Libproxy') diff --git a/bindings/ruby/test.rb b/bindings/ruby/test.rb deleted file mode 100644 index 5730a32..0000000 --- a/bindings/ruby/test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'Libproxy' - -pf = Libproxy.px_proxy_factory_new -proxies = Libproxy.px_proxy_factory_get_proxies(pf, "http://www.google.com") - -proxies.each { |proxy| print proxy + " " } -print "\n" |