Method: Efl::EcoreGetopt::REcoreGetopt#choice_meta

Defined in:
lib/efl/ecore_getopt.rb

#choice_meta(short, long, help, meta, choices) ⇒ Object



305
306
307
308
309
310
311
312
313
314
# File 'lib/efl/ecore_getopt.rb', line 305

def choice_meta short, long, help, meta, choices
    p = FFI::MemoryPointer.new(:pointer, choices.length+1)
    @pts << p
    choices.each_with_index do |s, i|
            p[i].put_pointer 0, want_p(s)
    end
    p[choices.length].put_pointer 0, FFI::Pointer::NULL
    set_value short, :choice
    set_option [ short, long, help, meta, :ecore_getopt_action_choice, [:choices,p] ]
end