summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/efreet_uri.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/efl/native/efreet_uri.rb')
-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