summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/efreet_trash.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:36:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:36:53 +0100
commit6b6401d08d3fd71fa09b59aa9a2f6ca7d1421e44 (patch)
tree60d7a695e9d7c2ddb718b3efec9fad27ab299328 /lib/efl/native/efreet_trash.rb
parent22470ad1d2c5b19526ef9d685dd413aa445cd241 (diff)
downloadffi-efl-6b6401d08d3fd71fa09b59aa9a2f6ca7d1421e44.zip
ffi-efl-6b6401d08d3fd71fa09b59aa9a2f6ca7d1421e44.tar.gz
generate efreet_trash native binding
Diffstat (limited to 'lib/efl/native/efreet_trash.rb')
-rw-r--r--lib/efl/native/efreet_trash.rb48
1 files changed, 48 insertions, 0 deletions
diff --git a/lib/efl/native/efreet_trash.rb b/lib/efl/native/efreet_trash.rb
new file mode 100644
index 0000000..c933037
--- /dev/null
+++ b/lib/efl/native/efreet_trash.rb
@@ -0,0 +1,48 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/eina_list'
+require 'efl/native/efreet_uri'
+#
+module Efl
+ #
+ module EfreetTrash
+ #
+ FCT_PREFIX = 'efreet_trash_' 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_trash'
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI int efreet_trash_init(void);
+ [ :efreet_trash_init, [ ], :int ],
+ # EAPI int efreet_trash_shutdown(void);
+ [ :efreet_trash_shutdown, [ ], :int ],
+ # EAPI const char *efreet_trash_dir_get(const char *for_file);
+ [ :efreet_trash_dir_get, [ :string ], :string ],
+ # EAPI int efreet_trash_delete_uri(Efreet_Uri *uri, int force_delete);
+ [ :efreet_trash_delete_uri, [ :efreet_uri, :int ], :int ],
+ # EAPI Eina_List *efreet_trash_ls(void);
+ [ :efreet_trash_ls, [ ], :eina_list ],
+ # EAPI int efreet_trash_is_empty(void);
+ [ :efreet_trash_is_empty, [ ], :int ],
+ # EAPI int efreet_trash_empty_trash(void);
+ [ :efreet_trash_empty_trash, [ ], :int ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF