summaryrefslogtreecommitdiffstats
path: root/lib/efl
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:28:33 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:28:33 +0100
commit2bf52a07329e08fcbba938cc614321fa64fe6f78 (patch)
tree3f381c5d6909069cdd25b37e27c7c90f391f8f61 /lib/efl
parent287bf3a1cb5aeb1356a154aac3b4f86e26eaf1f8 (diff)
downloadffi-efl-2bf52a07329e08fcbba938cc614321fa64fe6f78.zip
ffi-efl-2bf52a07329e08fcbba938cc614321fa64fe6f78.tar.gz
generate efreet_mime native binding
Diffstat (limited to 'lib/efl')
-rw-r--r--lib/efl/native/efreet_mime.rb52
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/efl/native/efreet_mime.rb b/lib/efl/native/efreet_mime.rb
new file mode 100644
index 0000000..f312ac8
--- /dev/null
+++ b/lib/efl/native/efreet_mime.rb
@@ -0,0 +1,52 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+#
+module Efl
+ #
+ module EfreetMime
+ #
+ FCT_PREFIX = 'efreet_mime_' 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_mime'
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI int efreet_mime_init(void);
+ [ :efreet_mime_init, [ ], :int ],
+ # EAPI int efreet_mime_shutdown(void);
+ [ :efreet_mime_shutdown, [ ], :int ],
+ # EAPI const char *efreet_mime_type_get(const char *file);
+ [ :efreet_mime_type_get, [ :string ], :string ],
+ # EAPI const char *efreet_mime_magic_type_get(const char *file);
+ [ :efreet_mime_magic_type_get, [ :string ], :string ],
+ # EAPI const char *efreet_mime_globs_type_get(const char *file);
+ [ :efreet_mime_globs_type_get, [ :string ], :string ],
+ # EAPI const char *efreet_mime_special_type_get(const char *file);
+ [ :efreet_mime_special_type_get, [ :string ], :string ],
+ # EAPI const char *efreet_mime_fallback_type_get(const char *file);
+ [ :efreet_mime_fallback_type_get, [ :string ], :string ],
+ # EAPI const char *efreet_mime_type_icon_get(const char *mime, const char *theme, unsigned int size);
+ [ :efreet_mime_type_icon_get, [ :string, :string, :uint ], :string ],
+ # EAPI void efreet_mime_type_cache_clear(void);
+ [ :efreet_mime_type_cache_clear, [ ], :void ],
+ # EAPI void efreet_mime_type_cache_flush(void);
+ [ :efreet_mime_type_cache_flush, [ ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF