summaryrefslogtreecommitdiffstats
path: root/lib/efl/native
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-28 16:01:03 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-28 16:01:03 +0100
commit1fa282ad253be5eb8c7149ccb2f107d34b3b3c5b (patch)
tree24cc83ee54855f93540356da8607ec493827f9e8 /lib/efl/native
parent2ad7f52482cdb8f268ec1e3b5558853cf0d790ef (diff)
downloadffi-efl-1fa282ad253be5eb8c7149ccb2f107d34b3b3c5b.zip
ffi-efl-1fa282ad253be5eb8c7149ccb2f107d34b3b3c5b.tar.gz
parse elm_cache.h, generate elm_cache.rb
Diffstat (limited to 'lib/efl/native')
-rw-r--r--lib/efl/native/elm/elm_cache.rb59
1 files changed, 59 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_cache.rb b/lib/efl/native/elm/elm_cache.rb
new file mode 100644
index 0000000..b3d51de
--- /dev/null
+++ b/lib/efl/native/elm/elm_cache.rb
@@ -0,0 +1,59 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmCache
+ #
+ FCT_PREFIX = 'elm_cache_' 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 'elementary-ver-pre-svn-09.so.0'
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI void elm_cache_all_flush(void);
+ [ :elm_cache_all_flush, [ ], :void ],
+ # EAPI int elm_cache_flush_interval_get(void);
+ [ :elm_cache_flush_interval_get, [ ], :int ],
+ # EAPI void elm_cache_flush_interval_set(int size);
+ [ :elm_cache_flush_interval_set, [ :int ], :void ],
+ # EAPI Eina_Bool elm_cache_flush_enabled_get(void);
+ [ :elm_cache_flush_enabled_get, [ ], :bool ],
+ # EAPI void elm_cache_flush_enabled_set(Eina_Bool enabled);
+ [ :elm_cache_flush_enabled_set, [ :bool ], :void ],
+ # EAPI int elm_font_cache_get(void);
+ [ :elm_font_cache_get, [ ], :int ],
+ # EAPI void elm_font_cache_set(int size);
+ [ :elm_font_cache_set, [ :int ], :void ],
+ # EAPI int elm_image_cache_get(void);
+ [ :elm_image_cache_get, [ ], :int ],
+ # EAPI void elm_image_cache_set(int size);
+ [ :elm_image_cache_set, [ :int ], :void ],
+ # EAPI int elm_edje_file_cache_get(void);
+ [ :elm_edje_file_cache_get, [ ], :int ],
+ # EAPI void elm_edje_file_cache_set(int size);
+ [ :elm_edje_file_cache_set, [ :int ], :void ],
+ # EAPI int elm_edje_collection_cache_get(void);
+ [ :elm_edje_collection_cache_get, [ ], :int ],
+ # EAPI void elm_edje_collection_cache_set(int size);
+ [ :elm_edje_collection_cache_set, [ :int ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF