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