summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/efreet_uri.rb
blob: d30529934aa76b40a5a7d39139cd0a64fece3c73 (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
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
#
module Efl
    #
    module EfreetUri
        #
        FCT_PREFIX = 'efreet_uri_' 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'
        #
        # TYPEDEFS
        # typedef struct Efreet_Uri Efreet_Uri;
        typedef :pointer, :efreet_uri
        #
        # FUNCTIONS
        fcts = [
        # EAPI const char *efreet_uri_encode(Efreet_Uri *uri);
        [ :efreet_uri_encode, [ :efreet_uri ], :string ],
        # EAPI Efreet_Uri *efreet_uri_decode(const char *val);
        [ :efreet_uri_decode, [ :string ], :efreet_uri ],
        # EAPI void efreet_uri_free(Efreet_Uri *uri);
        [ :efreet_uri_free, [ :efreet_uri ], :void ],
        ]
        #
        attach_fcts fcts
        #
    end
end
#
# EOF