ffi-efl 0.0.16 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1214,7 +1214,7 @@ module Efl
1214
1214
  # EAPI const Evas_Object_Box_Api *evas_object_box_smart_class_get(void);
1215
1215
  [ :evas_object_box_smart_class_get, [ ], :evas_object_box_api ],
1216
1216
  # EAPI void evas_object_box_layout_set(Evas_Object *o, Evas_Object_Box_Layout cb, const void *data, void (*free_data)(void *data));
1217
- # FIXME
1217
+ [ :evas_object_box_layout_set, [ :evas_object, :evas_object_box_layout_cb, :pointer, (callback [:pointer], :void) ], :void ],
1218
1218
  # EAPI Evas_Object *evas_object_box_add(Evas *evas);
1219
1219
  [ :evas_object_box_add, [ :evas ], :evas_object ],
1220
1220
  # EAPI Evas_Object *evas_object_box_add_to(Evas_Object *parent);
data/tools/extract-api.sh CHANGED
@@ -56,6 +56,18 @@ for header in \
56
56
  "${INCLUDE}/efreet-1/efreet_utils.h" \
57
57
  "${INCLUDE}/efreet-1/Efreet_Mime.h" \
58
58
  "${INCLUDE}/efreet-1/Efreet_Trash.h" \
59
+ "${INCLUDE}/e_dbus-1/E_DBus.h" \
60
+ "${INCLUDE}/e_dbus-1/E_Notify.h" \
61
+ "${INCLUDE}/e_dbus-1/E_Notification_Daemon.h" \
62
+ "${INCLUDE}/e_dbus-1/E_Bluez.h" \
63
+ "${INCLUDE}/e_dbus-1/E_Hal.h" \
64
+ "${INCLUDE}/e_dbus-1/E_Ofono.h" \
65
+ "${INCLUDE}/e_dbus-1/E_Ukit.h" \
66
+ "${INCLUDE}/e_dbus-1/connman0_7x/E_Connman.h" \
67
+ "${INCLUDE}/eeze-1/Eeze.h" \
68
+ "${INCLUDE}/eeze-1/Eeze_Disk.h" \
69
+ "${INCLUDE}/eeze-1/Eeze_Net.h" \
70
+ "${INCLUDE}/emotion-1/Emotion.h" \
59
71
  "${INCLUDE}/ethumb-1/Ethumb.h" \
60
72
  "${INCLUDE}/ethumb-1/Ethumb_Client.h" \
61
73
  "${INCLUDE}/ethumb-1/Ethumb_Plugin.h" \
data/tools/genruby.rb CHANGED
@@ -14,8 +14,8 @@ def set_type t, sym
14
14
  printf "\033[0;35m%40s\033[0m => \033[0;36m%s\033[0m\n",t,v
15
15
  return v
16
16
  else
17
- printf "\033[0;31mERROR type #{t} => #{sym} alredy exists!\033[0m\n"
18
- exit 1
17
+ printf "\033[0;31mERROR type #{t} => #{sym} already exists!\033[0m\n"
18
+ # exit 1
19
19
  end
20
20
  end
21
21
  #
@@ -42,11 +42,9 @@ def get_type_from_arg arg, l
42
42
  if arg =~ /\.\.\./
43
43
  return ':varargs'
44
44
  end
45
- k = arg.gsub(/const/,'').gsub(/\s{2,}/,' ').strip
46
- if k=~/(.*?)(\w+)$/
47
- return get_type $1.strip
48
- end
49
- # try with unchanged argument string
45
+ k = arg.gsub(/const/,'').sub(/^\s+/,'').gsub(/\s{2,}/,' ').strip
46
+ k=~/(.*?)(\w+)$/ # remove var name if any
47
+ k = $1.strip if not $1.nil? and $1.length > 0
50
48
  t = get_type k
51
49
  if t.nil?
52
50
  printf "\033[0;31mwrong arg >#{k}< #{arg} (#{l})\033[0m\n"
@@ -140,7 +138,7 @@ def gen_callbacks path, indent
140
138
  r = []
141
139
  open(path+'-callbacks','r').readlines.each do |l|
142
140
  l.strip!
143
- if not l=~/^\s*typedef\s+(.*)((?:\(\*?\w+\)| \*?\w+))\s*\((.*)\);/
141
+ if not l=~/^\s*typedef\s+(.*)((?:\(\*\s*?\w+\)| \*?\w+))\s*\((.*)\);/
144
142
  printf "\033[0;31m# #{l}\n#{indent}# FIXME\033[0m\n"
145
143
  r << indent+"# #{l}\n#{indent}# FIXME"
146
144
  next
@@ -148,7 +146,7 @@ def gen_callbacks path, indent
148
146
  ret = $1.strip
149
147
  name = $2.strip
150
148
  args = $3.split(',').collect { |arg| get_type_from_arg arg, l }.join ', '
151
- t = name.sub(/\(/,'').sub(/\)/,'').sub(/\*/,'')
149
+ t = name.sub(/^\(\* */,'').sub(/\)$/,'')
152
150
  sym = ( t.downcase=~/_cb$/ ? t : t+'_cb' )
153
151
  tsym = set_type t, sym
154
152
  r << indent+"# #{l}"
@@ -244,8 +242,12 @@ TYPES = {
244
242
  'unsigned int' => ':uint',
245
243
  'unsigned char' => ':uchar',
246
244
  'unsigned short' => ':ushort',
245
+ 'unsigned long' => ':ulong',
247
246
  'unsigned long int' => ':ulong',
248
247
  'unsigned long long' => ':ulong_long',
248
+ 'uint32_t' => ':uint',
249
+ 'int64_t' => ':long_long',
250
+ 'uint64_t' => ':ulong_long',
249
251
  'char *' => ':string', # FIXME ?!?!
250
252
  'fd_set *' => ':pointer',
251
253
  'FILE *' => ':pointer',
@@ -253,6 +255,8 @@ TYPES = {
253
255
  'struct tm *' => ':pointer',
254
256
  'struct timeval *' => ':pointer',
255
257
  'struct sockaddr *' => ':pointer',
258
+ 'DBusBusType' => ':int',
259
+ 'E_Notification_Closed_Reason' => ':e_notification_closed_reason', # cheating
256
260
  }
257
261
  ETYPES = {
258
262
  'Eina_Bool' => ':bool'
@@ -303,6 +307,18 @@ libs << efl_h('efreet','efreet_ini.h','EfreetIni','efreet_ini')
303
307
  libs << efl_h('efreet','efreet_utils.h','EfreetUtils','efreet_utils',nil,["#{NATIVE}/efreet_desktop"])
304
308
  libs << efl_h('efreet_mime','Efreet_Mime.h','EfreetMime')
305
309
  libs << efl_h('efreet_trash','Efreet_Trash.h','EfreetTrash',nil,nil,["#{NATIVE}/eina_list","#{NATIVE}/efreet_uri"])
310
+ libs << efl_h('edbus','E_DBus.h','Edbus',nil,'edbus.rb',["#{NATIVE}/eina_list"])
311
+ libs << efl_h('enotify','E_Notify.h','Enotify','e_notification','enotify.rb',["#{NATIVE}/evas","#{NATIVE}/edbus"])
312
+ libs << efl_h('enotify','E_Notification_Daemon.h','EnotificationDaemon','e_notification_daemon','enotification_daemon.rb',["#{NATIVE}/enotify"])
313
+ libs << efl_h('ebluez','E_Bluez.h','Ebluez','e_bluez','ebluez.rb',["#{NATIVE}/edbus"])
314
+ libs << efl_h('eofono','E_Ofono.h','Eofono','e_ofono','eofono.rb',["#{NATIVE}/edbus"])
315
+ libs << efl_h('eukit','E_Ukit.h','Eukit','e_ukit','eukit.rb',["#{NATIVE}/edbus"])
316
+ libs << efl_h('ehal','E_Hal.h','Ehal','e_hal','ehal.rb',["#{NATIVE}/edbus"])
317
+ libs << efl_h('econnman0_7x','E_Connman.h','EConnman','e_connman','econnman.rb',["#{NATIVE}/edbus"])
318
+ libs << efl_h('eeze','Eeze.h','Eeze',nil,nil,["#{NATIVE}/eina_list"])
319
+ libs << efl_h('eeze','Eeze_Disk.h','EezeDisk')
320
+ libs << efl_h('eeze','Eeze_Net.h','EezeNet',nil,nil,["#{NATIVE}/eina_list"])
321
+ libs << efl_h('emotion','Emotion.h','Emotion',nil,nil,["#{NATIVE}/evas"])
306
322
  libs << efl_h('ethumb','Ethumb.h','Ethumb')
307
323
  libs << efl_h('ethumb_client','Ethumb_Client.h','EthumbClient',nil,nil,["#{NATIVE}/ethumb"])
308
324
  libs << efl_h('ethumb','Ethumb_Plugin.h','EthumbPlugin',nil,nil,["#{NATIVE}/evas","#{NATIVE}/ecore_evas","#{NATIVE}/ethumb"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-efl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-21 00:00:00.000000000 Z
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- requirement: &17504240 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17504240
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rspec
27
- requirement: &17503400 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '2.6'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *17503400
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '2.6'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rake
38
- requirement: &17502560 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,7 +53,12 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *17502560
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  description: ! "It covers most of eina, eet, evas, ecore, emap, elementary.\n Prototypes
48
63
  are extracted from C headers with sed scripts. FFI calls are generated with a ruby
49
64
  script."
@@ -150,12 +165,18 @@ files:
150
165
  - lib/efl/elm/elm_win.rb
151
166
  - lib/efl/evas.rb
152
167
  - lib/efl/native.rb
168
+ - lib/efl/native/ebluez.rb
169
+ - lib/efl/native/econnman.rb
153
170
  - lib/efl/native/ecore.rb
154
171
  - lib/efl/native/ecore_evas.rb
155
172
  - lib/efl/native/ecore_getopt.rb
156
173
  - lib/efl/native/ecore_input.rb
174
+ - lib/efl/native/edbus.rb
157
175
  - lib/efl/native/edje.rb
158
176
  - lib/efl/native/eet.rb
177
+ - lib/efl/native/eeze.rb
178
+ - lib/efl/native/eeze_disk.rb
179
+ - lib/efl/native/eeze_net.rb
159
180
  - lib/efl/native/efreet.rb
160
181
  - lib/efl/native/efreet_base.rb
161
182
  - lib/efl/native/efreet_desktop.rb
@@ -166,6 +187,7 @@ files:
166
187
  - lib/efl/native/efreet_trash.rb
167
188
  - lib/efl/native/efreet_uri.rb
168
189
  - lib/efl/native/efreet_utils.rb
190
+ - lib/efl/native/ehal.rb
169
191
  - lib/efl/native/eina.rb
170
192
  - lib/efl/native/eina_file.rb
171
193
  - lib/efl/native/eina_hash.rb
@@ -256,9 +278,14 @@ files:
256
278
  - lib/efl/native/elm/elm_web.rb
257
279
  - lib/efl/native/elm/elm_win.rb
258
280
  - lib/efl/native/embryo.rb
281
+ - lib/efl/native/emotion.rb
282
+ - lib/efl/native/enotification_daemon.rb
283
+ - lib/efl/native/enotify.rb
284
+ - lib/efl/native/eofono.rb
259
285
  - lib/efl/native/ethumb.rb
260
286
  - lib/efl/native/ethumb_client.rb
261
287
  - lib/efl/native/ethumb_plugin.rb
288
+ - lib/efl/native/eukit.rb
262
289
  - lib/efl/native/evas.rb
263
290
  - spec/ecore_evas_spec.rb
264
291
  - spec/ecore_getopt_spec.rb
@@ -307,7 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
334
  version: '0'
308
335
  requirements: []
309
336
  rubyforge_project:
310
- rubygems_version: 1.8.11
337
+ rubygems_version: 1.8.23
311
338
  signing_key:
312
339
  specification_version: 3
313
340
  summary: A ruby-ffi binding to efl libraries (Enlightenment Foundation Libraries).