summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:25:12 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:25:12 +0100
commit287bf3a1cb5aeb1356a154aac3b4f86e26eaf1f8 (patch)
tree215ec16e86d0c603d1ed2773c7d456f135396705 /lib
parent3e9bfe31e4194fd5d956fcbbab41d29f3fa43382 (diff)
downloadffi-efl-287bf3a1cb5aeb1356a154aac3b4f86e26eaf1f8.zip
ffi-efl-287bf3a1cb5aeb1356a154aac3b4f86e26eaf1f8.tar.gz
generate efreet_uri native binding
Diffstat (limited to 'lib')
-rw-r--r--lib/efl/native/efreet_uri.rb42
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/efl/native/efreet_uri.rb b/lib/efl/native/efreet_uri.rb
new file mode 100644
index 0000000..bc8191f
--- /dev/null
+++ b/lib/efl/native/efreet_uri.rb
@@ -0,0 +1,42 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+#
+module Efl
+ #
+ module Efreet
+ #
+ FCT_PREFIX = 'efreet_uri_' unless const_defined? :FCT_PREFIX
+ #
+ def self.method_missing meth, *args, &block
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
+ self.send sym, *args, &block
+ end
+ #
+ end
+ #
+ module Native
+ #
+ ffi_lib 'efreet'
+ #
+ # TYPEDEFS
+ # typedef struct Efreet_Uri Efreet_Uri;
+ typedef :pointer, :efreet_uri
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI const char *efreet_uri_encode(Efreet_Uri *uri);
+ [ :efreet_uri_encode, [ :efreet_uri ], :string ],
+ # EAPI Efreet_Uri *efreet_uri_decode(const char *val);
+ [ :efreet_uri_decode, [ :string ], :efreet_uri ],
+ # EAPI void efreet_uri_free(Efreet_Uri *uri);
+ [ :efreet_uri_free, [ :efreet_uri ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF