summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/efreet_trash.rb
blob: 2b93dc11425ff0d441b9364d79c5defe32053f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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.so.1'
        #
        # 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