summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/efreet_base.rb
blob: d5169cd6fabded4d802eb343c3f633d7b7faa833 (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
49
50
51
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
require 'efl/native/eina_list'
#
module Efl
    #
    module EfreetBase
        #
        FCT_PREFIX = 'efreet_base_' 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.so.1'
        #
        # TYPEDEFS
        # typedef struct _Efreet_Event_Cache_Update Efreet_Event_Cache_Update;
        typedef :pointer, :efreet_event_cache_update
        #
        # FUNCTIONS
        fcts = [
        # EAPI const char *efreet_data_home_get(void);
        [ :efreet_data_home_get, [  ], :string ],
        # EAPI Eina_List *efreet_data_dirs_get(void);
        [ :efreet_data_dirs_get, [  ], :eina_list ],
        # EAPI const char *efreet_config_home_get(void);
        [ :efreet_config_home_get, [  ], :string ],
        # EAPI const char *efreet_desktop_dir_get(void);
        [ :efreet_desktop_dir_get, [  ], :string ],
        # EAPI Eina_List *efreet_config_dirs_get(void);
        [ :efreet_config_dirs_get, [  ], :eina_list ],
        # EAPI const char *efreet_cache_home_get(void);
        [ :efreet_cache_home_get, [  ], :string ],
        # EAPI const char *efreet_hostname_get(void);
        [ :efreet_hostname_get, [  ], :string ],
        ]
        #
        attach_fcts fcts
        #
    end
end
#
# EOF