summaryrefslogtreecommitdiff
path: root/unsorted
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-09 17:17:18 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-08-09 17:39:17 -0400
commitfabab68024619b066d79bdaff0c85d2aeeedb83a (patch)
tree203ef5e031e427542b3a7122b46c9ba25e956021 /unsorted
parent779e0a2cb8586b575272d8921cf51b5312b01793 (diff)
parentd9bc92888a11c400320c2058b3500a248e220363 (diff)
merge all files from efl.git/src/examples
Diffstat (limited to 'unsorted')
-rw-r--r--unsorted/Makefile.am287
-rw-r--r--unsorted/ecore.mk478
-rw-r--r--unsorted/ecore/.gitignore73
-rw-r--r--unsorted/ecore/Makefile.examples60
-rw-r--r--unsorted/ecore/ecore_animator_example.c117
-rw-r--r--unsorted/ecore/ecore_audio_custom.c87
-rw-r--r--unsorted/ecore/ecore_audio_playback.c339
-rw-r--r--unsorted/ecore/ecore_audio_to_ogg.c87
-rw-r--r--unsorted/ecore/ecore_buffer_consumer_example.c192
-rw-r--r--unsorted/ecore/ecore_buffer_example.c128
-rw-r--r--unsorted/ecore/ecore_buffer_provider_example.c274
-rw-r--r--unsorted/ecore/ecore_client_bench.c82
-rw-r--r--unsorted/ecore/ecore_compose_get_example.c202
-rw-r--r--unsorted/ecore/ecore_con_client_example.c362
-rw-r--r--unsorted/ecore/ecore_con_client_simple_example.c123
-rw-r--r--unsorted/ecore/ecore_con_eet_client_example.c97
-rw-r--r--unsorted/ecore/ecore_con_eet_descriptor_example.c42
-rw-r--r--unsorted/ecore/ecore_con_eet_descriptor_example.h20
-rw-r--r--unsorted/ecore/ecore_con_eet_server_example.c115
-rw-r--r--unsorted/ecore/ecore_con_lookup_example.c41
-rw-r--r--unsorted/ecore/ecore_con_server_example.c312
-rw-r--r--unsorted/ecore/ecore_con_server_http_example.c134
-rw-r--r--unsorted/ecore/ecore_con_server_simple_example.c131
-rw-r--r--unsorted/ecore/ecore_con_url_cookies_example.c120
-rw-r--r--unsorted/ecore/ecore_con_url_download_example.c124
-rw-r--r--unsorted/ecore/ecore_con_url_ftp_example.c83
-rw-r--r--unsorted/ecore/ecore_con_url_headers_example.c111
-rw-r--r--unsorted/ecore/ecore_evas_basics_example.c91
-rw-r--r--unsorted/ecore/ecore_evas_buffer_example_01.c121
-rw-r--r--unsorted/ecore/ecore_evas_buffer_example_02.c132
-rw-r--r--unsorted/ecore/ecore_evas_callbacks.c134
-rw-r--r--unsorted/ecore/ecore_evas_cursor_example.c220
-rw-r--r--unsorted/ecore/ecore_evas_ews_example.c269
-rw-r--r--unsorted/ecore/ecore_evas_extn_plug_example.c224
-rw-r--r--unsorted/ecore/ecore_evas_extn_socket_example.c204
-rw-r--r--unsorted/ecore/ecore_evas_object_example.c72
-rw-r--r--unsorted/ecore/ecore_evas_vnc_example.c322
-rw-r--r--unsorted/ecore/ecore_evas_wayland_multiseat_example.c229
-rw-r--r--unsorted/ecore/ecore_evas_window_sizes_example.c213
-rw-r--r--unsorted/ecore/ecore_event_example_01.c24
-rw-r--r--unsorted/ecore/ecore_event_example_02.c92
-rw-r--r--unsorted/ecore/ecore_exe_example.c100
-rw-r--r--unsorted/ecore/ecore_exe_example_child.c74
-rw-r--r--unsorted/ecore/ecore_fd_handler_example.c93
-rw-r--r--unsorted/ecore/ecore_fd_handler_gnutls_example.c223
-rw-r--r--unsorted/ecore/ecore_file_download_example.c113
-rw-r--r--unsorted/ecore/ecore_getopt_example.c415
-rw-r--r--unsorted/ecore/ecore_idler_example.c124
-rw-r--r--unsorted/ecore/ecore_imf_example.c662
-rw-r--r--unsorted/ecore/ecore_input_joystick_example.c67
-rw-r--r--unsorted/ecore/ecore_ipc_client_example.c246
-rw-r--r--unsorted/ecore/ecore_ipc_server_example.c220
-rw-r--r--unsorted/ecore/ecore_job_example.c60
-rw-r--r--unsorted/ecore/ecore_pipe_gstreamer_example.c205
-rw-r--r--unsorted/ecore/ecore_pipe_simple_example.c67
-rw-r--r--unsorted/ecore/ecore_poller_example.c73
-rw-r--r--unsorted/ecore/ecore_promise2_example.c360
-rw-r--r--unsorted/ecore/ecore_server_bench.c66
-rw-r--r--unsorted/ecore/ecore_thread_example.c406
-rw-r--r--unsorted/ecore/ecore_time_functions_example.c37
-rw-r--r--unsorted/ecore/ecore_timer_example.c190
-rw-r--r--unsorted/ecore/efl_io_buffered_stream_example.c302
-rw-r--r--unsorted/ecore/efl_io_copier_example.c1006
-rw-r--r--unsorted/ecore/efl_io_copier_simple_example.c69
-rw-r--r--unsorted/ecore/efl_io_queue_example.c375
-rw-r--r--unsorted/ecore/efl_loop_callback_add_event.cs43
-rw-r--r--unsorted/ecore/efl_loop_timer_example.cs52
-rw-r--r--unsorted/ecore/efl_net_control_example.c1467
-rw-r--r--unsorted/ecore/efl_net_dialer_http_example.c438
-rw-r--r--unsorted/ecore/efl_net_dialer_simple_example.c466
-rw-r--r--unsorted/ecore/efl_net_dialer_udp_example.c320
-rw-r--r--unsorted/ecore/efl_net_dialer_unix_example.c232
-rw-r--r--unsorted/ecore/efl_net_dialer_websocket_autobahntestee.c709
-rw-r--r--unsorted/ecore/efl_net_dialer_websocket_example.c397
-rw-r--r--unsorted/ecore/efl_net_dialer_windows_example.c234
-rw-r--r--unsorted/ecore/efl_net_ip_address_example.c147
-rw-r--r--unsorted/ecore/efl_net_server_example.c765
-rw-r--r--unsorted/ecore/efl_net_server_simple_example.c573
-rw-r--r--unsorted/ecore/efl_net_session_example.c197
-rw-r--r--unsorted/ecore/efl_net_socket_ssl_dialer_example.c543
-rw-r--r--unsorted/ecore/efl_net_socket_ssl_server_example.c374
-rw-r--r--unsorted/ecore/red.pngbin0 -> 225 bytes
-rw-r--r--unsorted/ecore_avahi.mk19
-rw-r--r--unsorted/ecore_avahi/.gitignore2
-rw-r--r--unsorted/ecore_avahi/ecore_avahi_browse_example.c216
-rw-r--r--unsorted/ecore_avahi/ecore_avahi_example.c187
-rw-r--r--unsorted/edje.mk226
-rw-r--r--unsorted/edje/.gitignore30
-rw-r--r--unsorted/edje/Makefile.examples82
-rw-r--r--unsorted/edje/Vera.ttfbin0 -> 65932 bytes
-rw-r--r--unsorted/edje/animations.edc93
-rw-r--r--unsorted/edje/animations2.c91
-rw-r--r--unsorted/edje/animations2.edc48
-rw-r--r--unsorted/edje/atom.svg14
-rw-r--r--unsorted/edje/basic.edc39
-rw-r--r--unsorted/edje/basic2.edc24
-rw-r--r--unsorted/edje/batman1.svg3
-rw-r--r--unsorted/edje/batman2.svg3
-rw-r--r--unsorted/edje/bezier-transition-example.edc52
-rw-r--r--unsorted/edje/bojo.svg15
-rw-r--r--unsorted/edje/box.edc142
-rw-r--r--unsorted/edje/box_example.edc109
-rw-r--r--unsorted/edje/bubble-blue.pngbin0 -> 4505 bytes
-rw-r--r--unsorted/edje/bubble.pngbin0 -> 4737 bytes
-rw-r--r--unsorted/edje/bzrfeed.svg23
-rw-r--r--unsorted/edje/cartman.svg11
-rw-r--r--unsorted/edje/codegen.edc84
-rw-r--r--unsorted/edje/color-class.edc88
-rw-r--r--unsorted/edje/drag.edc90
-rw-r--r--unsorted/edje/dst.svg15
-rw-r--r--unsorted/edje/duck.wavbin0 -> 22982 bytes
-rw-r--r--unsorted/edje/duke.svg25
-rw-r--r--unsorted/edje/dynamic_multiseat.edc280
-rw-r--r--unsorted/edje/edje-anchors.c58
-rw-r--r--unsorted/edje/edje-anchors.edc58
-rw-r--r--unsorted/edje/edje-animations.c212
-rw-r--r--unsorted/edje/edje-basic.c238
-rw-r--r--unsorted/edje/edje-basic2.c150
-rw-r--r--unsorted/edje/edje-box.c237
-rw-r--r--unsorted/edje/edje-box2.c232
-rw-r--r--unsorted/edje/edje-codegen-example.c184
-rw-r--r--unsorted/edje/edje-color-class.c280
-rw-r--r--unsorted/edje/edje-drag.c192
-rw-r--r--unsorted/edje/edje-dynamic-multiseat.c136
-rw-r--r--unsorted/edje/edje-edit-part-box.c379
-rw-r--r--unsorted/edje/edje-entry.c117
-rw-r--r--unsorted/edje/edje-focus.c157
-rw-r--r--unsorted/edje/edje-group.edc72
-rw-r--r--unsorted/edje/edje-map-color.edc89
-rw-r--r--unsorted/edje/edje-multiseat-custom-names.c150
-rw-r--r--unsorted/edje/edje-multiseat-filter.c130
-rw-r--r--unsorted/edje/edje-multiseat.c287
-rw-r--r--unsorted/edje/edje-multisense.c85
-rw-r--r--unsorted/edje/edje-nested.edc39
-rw-r--r--unsorted/edje/edje-perspective.c238
-rw-r--r--unsorted/edje/edje-signals-messages.c236
-rw-r--r--unsorted/edje/edje-swallow.c115
-rw-r--r--unsorted/edje/edje-swallow2.c116
-rw-r--r--unsorted/edje/edje-table.c195
-rw-r--r--unsorted/edje/edje-text.c182
-rw-r--r--unsorted/edje/edje-textblock-hyphenation.c114
-rw-r--r--unsorted/edje/edje-threshold.edc87
-rw-r--r--unsorted/edje/edje_example.c89
-rw-r--r--unsorted/edje/edje_example.edc101
-rw-r--r--unsorted/edje/eee.svg4
-rw-r--r--unsorted/edje/embryo_custom_state.edc184
-rw-r--r--unsorted/edje/embryo_pong.edc270
-rw-r--r--unsorted/edje/embryo_run_program.edc66
-rw-r--r--unsorted/edje/embryo_set_state.edc46
-rw-r--r--unsorted/edje/embryo_set_state_anim.edc52
-rw-r--r--unsorted/edje/embryo_set_text.edc39
-rw-r--r--unsorted/edje/embryo_timer.edc90
-rw-r--r--unsorted/edje/embryo_tween_anim.edc169
-rw-r--r--unsorted/edje/en_IN/domain_name.po11
-rw-r--r--unsorted/edje/entry.edc149
-rw-r--r--unsorted/edje/external_elm_anchorblock.edc160
-rw-r--r--unsorted/edje/external_elm_button.edc270
-rw-r--r--unsorted/edje/external_elm_check.edc211
-rw-r--r--unsorted/edje/external_elm_panes.edc140
-rw-r--r--unsorted/edje/external_emotion_elm.edc239
-rw-r--r--unsorted/edje/favorite_off.svg13
-rw-r--r--unsorted/edje/favorite_on.svg11
-rw-r--r--unsorted/edje/focus.edc330
-rw-r--r--unsorted/edje/fsm.svg20
-rw-r--r--unsorted/edje/google.svg4
-rw-r--r--unsorted/edje/hg0.svg10
-rw-r--r--unsorted/edje/hi_IN/domain_name.po11
-rw-r--r--unsorted/edje/ibm.svg44
-rw-r--r--unsorted/edje/lineargrad1.svg20
-rw-r--r--unsorted/edje/lua_script.edc417
-rw-r--r--unsorted/edje/messages_echo.edc97
-rw-r--r--unsorted/edje/multiseat.edc792
-rw-r--r--unsorted/edje/multiseat_custom_names.edc175
-rw-r--r--unsorted/edje/multiseat_filter.edc821
-rw-r--r--unsorted/edje/multisense.edc91
-rw-r--r--unsorted/edje/osa.svg19
-rw-r--r--unsorted/edje/perspective.edc140
-rw-r--r--unsorted/edje/physics_3d.edc271
-rw-r--r--unsorted/edje/physics_actions.edc573
-rw-r--r--unsorted/edje/physics_backcull.edc228
-rw-r--r--unsorted/edje/physics_basic.edc86
-rw-r--r--unsorted/edje/physics_complex.edc142
-rw-r--r--unsorted/edje/physics_soft_bodies.edc197
-rw-r--r--unsorted/edje/radialgrad1.svg19
-rw-r--r--unsorted/edje/red.pngbin0 -> 225 bytes
-rw-r--r--unsorted/edje/scion.svg9
-rw-r--r--unsorted/edje/signals-messages.edc174
-rw-r--r--unsorted/edje/signals2.c127
-rw-r--r--unsorted/edje/signalsBubble.edc22
-rw-r--r--unsorted/edje/sigtest.c326
-rw-r--r--unsorted/edje/sigtest.edc303
-rw-r--r--unsorted/edje/svg-test.c111
-rw-r--r--unsorted/edje/svg.edc135
-rw-r--r--unsorted/edje/swallow.edc21
-rw-r--r--unsorted/edje/ta_IN/domain_name.mobin0 -> 281 bytes
-rw-r--r--unsorted/edje/table.edc19
-rw-r--r--unsorted/edje/test.pngbin0 -> 22869 bytes
-rw-r--r--unsorted/edje/text.edc509
-rw-r--r--unsorted/edje/textblock-hyphen.edc29
-rw-r--r--unsorted/edje/tiger.svg829
-rw-r--r--unsorted/edje/toggle_using_filter.edc66
-rw-r--r--unsorted/edje/ubuntu.svg26
-rw-r--r--unsorted/edje/venus.svg5
-rw-r--r--unsorted/edje/wikimedia.svg5
-rw-r--r--unsorted/edje/yadis.svg16
-rw-r--r--unsorted/edje/yinyang.svg6
-rw-r--r--unsorted/eet.mk32
-rw-r--r--unsorted/eet/.gitignore7
-rw-r--r--unsorted/eet/Makefile.examples20
-rw-r--r--unsorted/eet/eet-basic.c43
-rw-r--r--unsorted/eet/eet-data-cipher_decipher.c121
-rw-r--r--unsorted/eet/eet-data-file_descriptor_01.c525
-rw-r--r--unsorted/eet/eet-data-file_descriptor_02.c1033
-rw-r--r--unsorted/eet/eet-data-nested.c272
-rw-r--r--unsorted/eet/eet-data-simple.c224
-rw-r--r--unsorted/eet/eet-file.c127
-rw-r--r--unsorted/efl_mono.mk102
-rw-r--r--unsorted/efl_mono/.gitignore1
-rw-r--r--unsorted/efl_mono/EoInherit01.cs64
-rw-r--r--unsorted/efl_mono/FunctionPointer01.cs45
-rw-r--r--unsorted/efl_mono/example_numberwrapper.c92
-rw-r--r--unsorted/efl_mono/example_numberwrapper.eo36
-rw-r--r--unsorted/eina.mk151
-rw-r--r--unsorted/eina/.gitignore40
-rw-r--r--unsorted/eina/EinaArray01.cs41
-rw-r--r--unsorted/eina/EinaBinbuf01.cs65
-rw-r--r--unsorted/eina/EinaError01.cs75
-rw-r--r--unsorted/eina/EinaHash01.cs66
-rw-r--r--unsorted/eina/Makefile.examples52
-rw-r--r--unsorted/eina/addr_book.txt7
-rw-r--r--unsorted/eina/chat.xml24
-rw-r--r--unsorted/eina/eina_accessor_01.c55
-rw-r--r--unsorted/eina/eina_array_01.c49
-rw-r--r--unsorted/eina/eina_array_02.c57
-rw-r--r--unsorted/eina/eina_error_01.c81
-rw-r--r--unsorted/eina/eina_file_01.c45
-rw-r--r--unsorted/eina/eina_file_02.c37
-rw-r--r--unsorted/eina/eina_hash_01.c186
-rw-r--r--unsorted/eina/eina_hash_02.c151
-rw-r--r--unsorted/eina/eina_hash_03.c186
-rw-r--r--unsorted/eina/eina_hash_04.c186
-rw-r--r--unsorted/eina/eina_hash_05.c189
-rw-r--r--unsorted/eina/eina_hash_06.c189
-rw-r--r--unsorted/eina/eina_hash_07.c208
-rw-r--r--unsorted/eina/eina_hash_08.c114
-rw-r--r--unsorted/eina/eina_inarray_01.c52
-rw-r--r--unsorted/eina/eina_inarray_02.c33
-rw-r--r--unsorted/eina/eina_inarray_03.c62
-rw-r--r--unsorted/eina/eina_inlist_01.c98
-rw-r--r--unsorted/eina/eina_inlist_02.c66
-rw-r--r--unsorted/eina/eina_inlist_03.c75
-rw-r--r--unsorted/eina/eina_iterator_01.c68
-rw-r--r--unsorted/eina/eina_list_01.c46
-rw-r--r--unsorted/eina/eina_list_02.c57
-rw-r--r--unsorted/eina/eina_list_03.c47
-rw-r--r--unsorted/eina/eina_list_04.c38
-rw-r--r--unsorted/eina/eina_log_01.c29
-rw-r--r--unsorted/eina/eina_log_02.c40
-rw-r--r--unsorted/eina/eina_log_03.c78
-rw-r--r--unsorted/eina/eina_magic_01.c110
-rw-r--r--unsorted/eina/eina_simple_xml_parser_01.c130
-rw-r--r--unsorted/eina/eina_simple_xml_parser_02.c73
-rw-r--r--unsorted/eina/eina_str_01.c74
-rw-r--r--unsorted/eina/eina_strbuf_01.c58
-rw-r--r--unsorted/eina/eina_strbuf_02.c34
-rw-r--r--unsorted/eina/eina_stringshare_01.c45
-rw-r--r--unsorted/eina/eina_tiler_01.c316
-rw-r--r--unsorted/eina/eina_tiler_02.c354
-rw-r--r--unsorted/eina/eina_tmpstr_01.c36
-rw-r--r--unsorted/eina/eina_value_01.c56
-rw-r--r--unsorted/eina/eina_value_02.c102
-rw-r--r--unsorted/eina/eina_value_03.c175
-rw-r--r--unsorted/eina/eina_value_04.c32
-rw-r--r--unsorted/eina/eina_xattr_01.c91
-rw-r--r--unsorted/eina/eina_xattr_02.c24
-rw-r--r--unsorted/eina/exia.xml5
-rw-r--r--unsorted/eina_cxx.mk29
-rw-r--r--unsorted/eina_cxx/.gitignore2
-rw-r--r--unsorted/eina_cxx/eina_cxx_list_01.cc60
-rw-r--r--unsorted/eina_cxx/eina_cxx_thread_01.cc35
-rw-r--r--unsorted/eio.mk38
-rw-r--r--unsorted/eio/.gitignore7
-rw-r--r--unsorted/eio/Makefile.examples15
-rw-r--r--unsorted/eio/efl_io_manager_ls.c80
-rw-r--r--unsorted/eio/efl_io_manager_open.c94
-rw-r--r--unsorted/eio/efl_io_manager_open_multi.c98
-rw-r--r--unsorted/eio/eio_file_copy.c51
-rw-r--r--unsorted/eio/eio_file_ls.c73
-rw-r--r--unsorted/eio/eio_sentry.c55
-rw-r--r--unsorted/eldbus.mk41
-rw-r--r--unsorted/eldbus/.gitignore11
-rw-r--r--unsorted/eldbus/Makefile.examples22
-rw-r--r--unsorted/eldbus/banshee.c241
-rw-r--r--unsorted/eldbus/client.c346
-rw-r--r--unsorted/eldbus/complex-types-client-eina-value.c324
-rw-r--r--unsorted/eldbus/complex-types-server.c393
-rw-r--r--unsorted/eldbus/complex-types.c284
-rw-r--r--unsorted/eldbus/connect-address.c274
-rw-r--r--unsorted/eldbus/connman-list-services.c110
-rw-r--r--unsorted/eldbus/dbusmodel.c245
-rw-r--r--unsorted/eldbus/ofono-dial.c88
-rw-r--r--unsorted/eldbus/server.c247
-rw-r--r--unsorted/eldbus/simple-signal-emit.c86
-rw-r--r--unsorted/elementary.mk570
-rw-r--r--unsorted/elementary/.gitignore163
-rw-r--r--unsorted/elementary/actionslider_example_01.c136
-rw-r--r--unsorted/elementary/bg_cxx_example_01.cc23
-rw-r--r--unsorted/elementary/bg_cxx_example_02.cc39
-rw-r--r--unsorted/elementary/bg_example_01.c27
-rw-r--r--unsorted/elementary/bg_example_01.js16
-rw-r--r--unsorted/elementary/bg_example_02.c36
-rw-r--r--unsorted/elementary/bg_example_02.js19
-rw-r--r--unsorted/elementary/bg_example_03.c156
-rw-r--r--unsorted/elementary/box_cxx_example_02.cc28
-rw-r--r--unsorted/elementary/box_example_02.c163
-rw-r--r--unsorted/elementary/box_js_example_01.js34
-rw-r--r--unsorted/elementary/box_js_example_02.js82
-rw-r--r--unsorted/elementary/bubble_example_01.c63
-rw-r--r--unsorted/elementary/button_cxx_example_00.cc43
-rw-r--r--unsorted/elementary/button_cxx_example_01.cc226
-rw-r--r--unsorted/elementary/button_example_00.c42
-rw-r--r--unsorted/elementary/button_example_00.js20
-rw-r--r--unsorted/elementary/button_example_01.c261
-rw-r--r--unsorted/elementary/button_example_01.js212
-rw-r--r--unsorted/elementary/calendar_cxx_example_01.cc19
-rw-r--r--unsorted/elementary/calendar_cxx_example_02.cc60
-rw-r--r--unsorted/elementary/calendar_cxx_example_03.cc26
-rw-r--r--unsorted/elementary/calendar_cxx_example_04.cc48
-rw-r--r--unsorted/elementary/calendar_cxx_example_05.cc53
-rw-r--r--unsorted/elementary/calendar_example_01.c34
-rw-r--r--unsorted/elementary/calendar_example_01.js14
-rw-r--r--unsorted/elementary/calendar_example_02.c53
-rw-r--r--unsorted/elementary/calendar_example_02.js18
-rw-r--r--unsorted/elementary/calendar_example_03.c37
-rw-r--r--unsorted/elementary/calendar_example_03.js16
-rw-r--r--unsorted/elementary/calendar_example_04.c55
-rw-r--r--unsorted/elementary/calendar_example_04.js31
-rw-r--r--unsorted/elementary/calendar_example_05.c63
-rw-r--r--unsorted/elementary/calendar_example_05.js32
-rw-r--r--unsorted/elementary/calendar_example_06.c98
-rw-r--r--unsorted/elementary/check_example_01.c51
-rw-r--r--unsorted/elementary/clock_cxx_example.cc41
-rw-r--r--unsorted/elementary/clock_example.c72
-rw-r--r--unsorted/elementary/clock_example.js46
-rw-r--r--unsorted/elementary/codegen_example.c141
-rw-r--r--unsorted/elementary/codegen_example.edc109
-rw-r--r--unsorted/elementary/colorselector_example_01.c94
-rw-r--r--unsorted/elementary/combobox_example_01.c135
-rw-r--r--unsorted/elementary/conformant_example_01.c68
-rw-r--r--unsorted/elementary/conformant_example_02.c77
-rw-r--r--unsorted/elementary/ctxpopup_example_01.c138
-rw-r--r--unsorted/elementary/datetime_example.c55
-rw-r--r--unsorted/elementary/dayselector_example.c80
-rw-r--r--unsorted/elementary/dict.txt2913
-rw-r--r--unsorted/elementary/diskselector_example_01.c90
-rw-r--r--unsorted/elementary/diskselector_example_02.c350
-rw-r--r--unsorted/elementary/efl_thread_1.c79
-rw-r--r--unsorted/elementary/efl_thread_2.c95
-rw-r--r--unsorted/elementary/efl_thread_3.c99
-rw-r--r--unsorted/elementary/efl_thread_4.c129
-rw-r--r--unsorted/elementary/efl_thread_5.c112
-rw-r--r--unsorted/elementary/efl_thread_6.c170
-rw-r--r--unsorted/elementary/efl_ui_list_example_1.c327
-rw-r--r--unsorted/elementary/efl_ui_scroller_example.c31
-rw-r--r--unsorted/elementary/efl_ui_slider_mono.cs77
-rw-r--r--unsorted/elementary/efl_ui_unit_converter.cs150
-rw-r--r--unsorted/elementary/efl_ui_view_list_example.edc280
-rw-r--r--unsorted/elementary/efl_ui_view_list_example_1.c111
-rw-r--r--unsorted/elementary/efl_ui_view_list_example_2.c62
-rw-r--r--unsorted/elementary/efl_ui_view_list_example_3.c332
-rw-r--r--unsorted/elementary/entry_example.c582
-rw-r--r--unsorted/elementary/evas3d_map_example.c1210
-rw-r--r--unsorted/elementary/evas3d_map_example.edc966
-rw-r--r--unsorted/elementary/evas3d_object_on_button_example.c289
-rw-r--r--unsorted/elementary/evas3d_scene_on_button_example.c280
-rw-r--r--unsorted/elementary/filemvc.c201
-rw-r--r--unsorted/elementary/fileselector_button_example.c162
-rw-r--r--unsorted/elementary/fileselector_entry_example.c157
-rw-r--r--unsorted/elementary/fileselector_example.c225
-rw-r--r--unsorted/elementary/fileviewlist.c77
-rw-r--r--unsorted/elementary/flip_example_01.c85
-rw-r--r--unsorted/elementary/flipselector_example.c182
-rw-r--r--unsorted/elementary/frame_example_01.c71
-rw-r--r--unsorted/elementary/general_funcs_example.c173
-rw-r--r--unsorted/elementary/gengrid_example.c615
-rw-r--r--unsorted/elementary/genlist_example_01.c79
-rw-r--r--unsorted/elementary/genlist_example_02.c194
-rw-r--r--unsorted/elementary/genlist_example_03.c118
-rw-r--r--unsorted/elementary/genlist_example_04.c353
-rw-r--r--unsorted/elementary/genlist_example_05.c418
-rw-r--r--unsorted/elementary/glview_example_01.c321
-rw-r--r--unsorted/elementary/hover_example_01.c74
-rw-r--r--unsorted/elementary/hoversel_example_01.c128
-rw-r--r--unsorted/elementary/icon_cxx_example_01.cc34
-rw-r--r--unsorted/elementary/icon_example_01.c43
-rw-r--r--unsorted/elementary/icon_example_01.js29
-rw-r--r--unsorted/elementary/image_example_01.c46
-rw-r--r--unsorted/elementary/index_example_01.c177
-rw-r--r--unsorted/elementary/index_example_02.c139
-rw-r--r--unsorted/elementary/inwin_example.c147
-rw-r--r--unsorted/elementary/label_example_01.c75
-rw-r--r--unsorted/elementary/label_example_02.c76
-rw-r--r--unsorted/elementary/label_example_03.c138
-rw-r--r--unsorted/elementary/layout_example.edc180
-rw-r--r--unsorted/elementary/layout_example.js69
-rw-r--r--unsorted/elementary/layout_example_01.c139
-rw-r--r--unsorted/elementary/layout_example_02.c75
-rw-r--r--unsorted/elementary/layout_example_03.c86
-rw-r--r--unsorted/elementary/layout_model_connect.c175
-rw-r--r--unsorted/elementary/list_example_01.c57
-rw-r--r--unsorted/elementary/list_example_02.c66
-rw-r--r--unsorted/elementary/list_example_03.c438
-rw-r--r--unsorted/elementary/location_example_01.c149
-rw-r--r--unsorted/elementary/map_example_01.c110
-rw-r--r--unsorted/elementary/map_example_02.c266
-rw-r--r--unsorted/elementary/map_example_03.c195
-rw-r--r--unsorted/elementary/mapbuf_example.c112
-rw-r--r--unsorted/elementary/menu_cxx_example_01.cc70
-rw-r--r--unsorted/elementary/menu_example_01.c68
-rw-r--r--unsorted/elementary/menu_example_01.js36
-rw-r--r--unsorted/elementary/naviframe_example.c47
-rw-r--r--unsorted/elementary/notify_example_01.c71
-rw-r--r--unsorted/elementary/panel_example_01.c65
-rw-r--r--unsorted/elementary/panes_example.c110
-rw-r--r--unsorted/elementary/performance/HowTo13
-rw-r--r--unsorted/elementary/performance/Tools.h19
-rw-r--r--unsorted/elementary/performance/background.pngbin0 -> 177255 bytes
-rw-r--r--unsorted/elementary/performance/camera_light.c354
-rw-r--r--unsorted/elementary/performance/graphical.c616
-rw-r--r--unsorted/elementary/performance/graphical_struct.h90
-rw-r--r--unsorted/elementary/performance/initial_config.xml11
-rw-r--r--unsorted/elementary/performance/layout.edc170
-rw-r--r--unsorted/elementary/performance/performance.c957
-rw-r--r--unsorted/elementary/performance/target_texture.pngbin0 -> 2123166 bytes
-rw-r--r--unsorted/elementary/performance/tools_private.h50
-rw-r--r--unsorted/elementary/photocam_example_01.c159
-rw-r--r--unsorted/elementary/popup_cxx_example.cc325
-rw-r--r--unsorted/elementary/popup_example_01.c52
-rw-r--r--unsorted/elementary/popup_example_01.js32
-rw-r--r--unsorted/elementary/popup_example_02.c77
-rw-r--r--unsorted/elementary/popup_example_03.c93
-rw-r--r--unsorted/elementary/prefs_data_example.c91
-rw-r--r--unsorted/elementary/prefs_example_01.c109
-rw-r--r--unsorted/elementary/prefs_example_01.epc84
-rw-r--r--unsorted/elementary/prefs_example_02.c110
-rw-r--r--unsorted/elementary/prefs_example_02.epc65
-rw-r--r--unsorted/elementary/prefs_example_03.c112
-rw-r--r--unsorted/elementary/prefs_example_03.edc150
-rw-r--r--unsorted/elementary/prefs_example_03.epc112
-rw-r--r--unsorted/elementary/progressbar_example.c308
-rw-r--r--unsorted/elementary/radio_cxx_example_01.cc62
-rw-r--r--unsorted/elementary/radio_example_01.c87
-rw-r--r--unsorted/elementary/radio_example_01.js65
-rw-r--r--unsorted/elementary/radio_example_02.c94
-rw-r--r--unsorted/elementary/scroller_example_01.c138
-rw-r--r--unsorted/elementary/segment_control_example.c70
-rw-r--r--unsorted/elementary/separator_example_01.c49
-rw-r--r--unsorted/elementary/sky_01.jpgbin0 -> 134813 bytes
-rw-r--r--unsorted/elementary/slider_cxx_example.cc85
-rw-r--r--unsorted/elementary/slider_example.c136
-rw-r--r--unsorted/elementary/slider_example.js104
-rw-r--r--unsorted/elementary/slideshow_example.c276
-rw-r--r--unsorted/elementary/sphere_hunter/EFL_defeat.pngbin0 -> 88373 bytes
-rw-r--r--unsorted/elementary/sphere_hunter/EFL_victory.pngbin0 -> 108064 bytes
-rw-r--r--unsorted/elementary/sphere_hunter/Makefile.am42
-rw-r--r--unsorted/elementary/sphere_hunter/evas_3d_sphere_hunter.c857
-rw-r--r--unsorted/elementary/sphere_hunter/score.jpgbin0 -> 51305 bytes
-rw-r--r--unsorted/elementary/sphere_hunter/sphere_hunter.edc251
-rw-r--r--unsorted/elementary/spinner_cxx_example.cc88
-rw-r--r--unsorted/elementary/spinner_example.c120
-rw-r--r--unsorted/elementary/spinner_example.js90
-rw-r--r--unsorted/elementary/table_cxx_example_01.cc38
-rw-r--r--unsorted/elementary/table_cxx_example_02.cc41
-rw-r--r--unsorted/elementary/table_example_01.c48
-rw-r--r--unsorted/elementary/table_example_01.js34
-rw-r--r--unsorted/elementary/table_example_02.c51
-rw-r--r--unsorted/elementary/table_example_02.js38
-rw-r--r--unsorted/elementary/theme_example.edc194
-rw-r--r--unsorted/elementary/theme_example_01.c89
-rw-r--r--unsorted/elementary/theme_example_02.c80
-rw-r--r--unsorted/elementary/thumb_example_01.c66
-rw-r--r--unsorted/elementary/thumb_example_01.js48
-rw-r--r--unsorted/elementary/toolbar_cxx_example_01.cc138
-rw-r--r--unsorted/elementary/toolbar_example_01.c83
-rw-r--r--unsorted/elementary/toolbar_example_02.c74
-rw-r--r--unsorted/elementary/toolbar_example_03.c67
-rw-r--r--unsorted/elementary/track_example_01.c68
-rw-r--r--unsorted/elementary/transit_example_01.c38
-rw-r--r--unsorted/elementary/transit_example_02.c80
-rw-r--r--unsorted/elementary/transit_example_03.c312
-rw-r--r--unsorted/elementary/transit_example_04.c162
-rw-r--r--unsorted/elementary/twitter_example_01.edc89
-rw-r--r--unsorted/elementary/twitter_example_01.js95
-rw-r--r--unsorted/elementary/web_example_01.c49
-rw-r--r--unsorted/elementary/web_example_02.c618
-rw-r--r--unsorted/elementary/win_example.c328
-rw-r--r--unsorted/elocation.mk25
-rw-r--r--unsorted/elocation/.gitignore1
-rw-r--r--unsorted/elocation/Makefile.examples14
-rw-r--r--unsorted/elocation/elocation.c167
-rw-r--r--unsorted/emile.mk17
-rw-r--r--unsorted/emile/.gitignore1
-rw-r--r--unsorted/emile/Makefile.examples14
-rw-r--r--unsorted/emile/emile_base64.c29
-rw-r--r--unsorted/emotion.mk29
-rw-r--r--unsorted/emotion/.gitignore5
-rw-r--r--unsorted/emotion/Makefile.examples18
-rw-r--r--unsorted/emotion/emotion_basic_example.c88
-rw-r--r--unsorted/emotion/emotion_border_example.c246
-rw-r--r--unsorted/emotion/emotion_generic_example.c233
-rw-r--r--unsorted/emotion/emotion_generic_subtitle_example.c103
-rw-r--r--unsorted/emotion/emotion_signals_example.c169
-rw-r--r--unsorted/eolian_cxx.mk94
-rw-r--r--unsorted/eolian_cxx/.gitignore7
-rw-r--r--unsorted/eolian_cxx/Makefile.examples47
-rw-r--r--unsorted/eolian_cxx/colourable.c127
-rw-r--r--unsorted/eolian_cxx/colourable_cxx.cc109
-rw-r--r--unsorted/eolian_cxx/colourable_stub.c12
-rw-r--r--unsorted/eolian_cxx/colourable_stub.h31
-rw-r--r--unsorted/eolian_cxx/colourablesquare.c59
-rw-r--r--unsorted/eolian_cxx/colourablesquare_cxx.cc48
-rw-r--r--unsorted/eolian_cxx/colourablesquare_stub.c12
-rw-r--r--unsorted/eolian_cxx/colourablesquare_stub.h23
-rw-r--r--unsorted/eolian_cxx/eolian_cxx_callbacks_01.cc66
-rw-r--r--unsorted/eolian_cxx/eolian_cxx_inherit_01.cc89
-rw-r--r--unsorted/eolian_cxx/eolian_cxx_simple_01.cc42
-rw-r--r--unsorted/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc42
-rw-r--r--unsorted/eolian_cxx/ns_colourable.eo56
-rw-r--r--unsorted/eolian_cxx/ns_colourablesquare.eo27
-rw-r--r--unsorted/ephysics.mk60
-rw-r--r--unsorted/ephysics/ephysics_logo.c280
-rw-r--r--unsorted/ephysics/ephysics_test.h81
-rw-r--r--unsorted/ephysics/test.c313
-rw-r--r--unsorted/ephysics/test_bouncing_ball.c112
-rw-r--r--unsorted/ephysics/test_bouncing_text.c67
-rw-r--r--unsorted/ephysics/test_camera.c236
-rw-r--r--unsorted/ephysics/test_camera_track.c248
-rw-r--r--unsorted/ephysics/test_colliding_balls.c90
-rw-r--r--unsorted/ephysics/test_collision_detection.c187
-rw-r--r--unsorted/ephysics/test_collision_filter.c91
-rw-r--r--unsorted/ephysics/test_constraint.c117
-rw-r--r--unsorted/ephysics/test_delete.c193
-rw-r--r--unsorted/ephysics/test_forces.c114
-rw-r--r--unsorted/ephysics/test_growing_balls.c122
-rw-r--r--unsorted/ephysics/test_no_gravity.c133
-rw-r--r--unsorted/ephysics/test_rotating_forever.c206
-rw-r--r--unsorted/ephysics/test_shapes.c110
-rw-r--r--unsorted/ephysics/test_sleeping_threshold.c119
-rw-r--r--unsorted/ephysics/test_slider.c170
-rw-r--r--unsorted/ephysics/test_velocity.c211
-rw-r--r--unsorted/ethumb_client.mk21
-rw-r--r--unsorted/ethumb_client/.gitignore1
-rw-r--r--unsorted/ethumb_client/Makefile.examples14
-rw-r--r--unsorted/ethumb_client/ethumb_dbus.c129
-rw-r--r--unsorted/evas.mk400
-rw-r--r--unsorted/evas/.gitignore70
-rw-r--r--unsorted/evas/Makefile.examples42
-rw-r--r--unsorted/evas/README104
-rw-r--r--unsorted/evas/aspect.edc17
-rw-r--r--unsorted/evas/evas-3d-aabb.c238
-rw-r--r--unsorted/evas/evas-3d-blending.c313
-rw-r--r--unsorted/evas/evas-3d-colorpick.c416
-rw-r--r--unsorted/evas/evas-3d-cube-rotate.c286
-rw-r--r--unsorted/evas/evas-3d-cube.c263
-rw-r--r--unsorted/evas/evas-3d-cube2.c259
-rw-r--r--unsorted/evas/evas-3d-eet.c211
-rw-r--r--unsorted/evas/evas-3d-fog.c239
-rw-r--r--unsorted/evas/evas-3d-frustum.c447
-rw-r--r--unsorted/evas/evas-3d-hull.c466
-rw-r--r--unsorted/evas/evas-3d-md2.c177
-rw-r--r--unsorted/evas/evas-3d-mmap-set.c261
-rw-r--r--unsorted/evas/evas-3d-obj.c240
-rw-r--r--unsorted/evas/evas-3d-parallax-occlusion.c265
-rw-r--r--unsorted/evas/evas-3d-pick.c190
-rw-r--r--unsorted/evas/evas-3d-ply.c236
-rw-r--r--unsorted/evas/evas-3d-proxy.c263
-rw-r--r--unsorted/evas/evas-3d-shadows.c690
-rw-r--r--unsorted/evas/evas-3d-static-lod.c281
-rw-r--r--unsorted/evas/evas-aspect-hints.c251
-rw-r--r--unsorted/evas/evas-box.c386
-rw-r--r--unsorted/evas/evas-buffer-simple.c327
-rw-r--r--unsorted/evas/evas-common.h7
-rw-r--r--unsorted/evas/evas-event-filter.c291
-rw-r--r--unsorted/evas/evas-events.c409
-rw-r--r--unsorted/evas/evas-gl.c502
-rw-r--r--unsorted/evas/evas-hints.c381
-rw-r--r--unsorted/evas/evas-images.c348
-rw-r--r--unsorted/evas/evas-images2.c318
-rw-r--r--unsorted/evas/evas-images3.c189
-rw-r--r--unsorted/evas/evas-images4.c179
-rw-r--r--unsorted/evas/evas-images5.c197
-rw-r--r--unsorted/evas/evas-init-shutdown.c68
-rw-r--r--unsorted/evas/evas-map-aa-eo.c348
-rw-r--r--unsorted/evas/evas-map-aa.c354
-rw-r--r--unsorted/evas/evas-map-utils-eo.c315
-rw-r--r--unsorted/evas/evas-map-utils.c329
-rw-r--r--unsorted/evas/evas-multi-touch.c346
-rw-r--r--unsorted/evas/evas-multiseat-events.c303
-rw-r--r--unsorted/evas/evas-object-manipulation-eo.c256
-rw-r--r--unsorted/evas/evas-object-manipulation.c258
-rw-r--r--unsorted/evas/evas-smart-interface.c786
-rw-r--r--unsorted/evas/evas-smart-object.c730
-rw-r--r--unsorted/evas/evas-stacking.c332
-rw-r--r--unsorted/evas/evas-table.c117
-rw-r--r--unsorted/evas/evas-text.c406
-rw-r--r--unsorted/evas/evas-textblock-obstacles.c314
-rw-r--r--unsorted/evas/evas-transparent.c180
-rw-r--r--unsorted/evas/evas-vg-batman.c183
-rw-r--r--unsorted/evas/evas-vg-simple.c594
-rw-r--r--unsorted/evas/evas_cxx_rectangle.cc63
-rw-r--r--unsorted/evas/evas_mono_box.cs73
-rw-r--r--unsorted/evas/evas_mono_image.cs93
-rw-r--r--unsorted/evas/evas_mono_image2.cs83
-rw-r--r--unsorted/evas/evas_mono_rectangle.cs47
-rw-r--r--unsorted/evas/evas_mono_table.cs77
-rw-r--r--unsorted/evas/evas_mono_text.cs126
-rw-r--r--unsorted/evas/filters/filter_blend.lua1
-rw-r--r--unsorted/evas/filters/filter_blur.lua2
-rw-r--r--unsorted/evas/filters/filter_bump.lua3
-rw-r--r--unsorted/evas/filters/filter_curve.lua4
-rw-r--r--unsorted/evas/filters/filter_example_1.lua5
-rw-r--r--unsorted/evas/filters/filter_grow.lua4
-rw-r--r--unsorted/evas/filters/filter_mask.lua5
-rw-r--r--unsorted/evas/filters/filter_padding.lua7
-rw-r--r--unsorted/evas/filters/filter_transform.lua4
-rw-r--r--unsorted/evas/resources/images/billboard.pngbin0 -> 47720 bytes
-rw-r--r--unsorted/evas/resources/images/cube1.pngbin0 -> 183167 bytes
-rw-r--r--unsorted/evas/resources/images/enlightenment.pngbin0 -> 17541 bytes
-rw-r--r--unsorted/evas/resources/images/four_NM_height.tgabin0 -> 262188 bytes
-rw-r--r--unsorted/evas/resources/images/grid.pngbin0 -> 45870 bytes
-rw-r--r--unsorted/evas/resources/images/grid_n.pngbin0 -> 51868 bytes
-rw-r--r--unsorted/evas/resources/images/im1.pngbin0 -> 467518 bytes
-rw-r--r--unsorted/evas/resources/images/normal_lego.pngbin0 -> 3166 bytes
-rw-r--r--unsorted/evas/resources/images/red.pngbin0 -> 225 bytes
-rw-r--r--unsorted/evas/resources/images/rocks.jpgbin0 -> 26972 bytes
-rw-r--r--unsorted/evas/resources/images/rocks_NM_height.tgabin0 -> 262188 bytes
-rw-r--r--unsorted/evas/resources/images/sonic.pngbin0 -> 57248 bytes
-rw-r--r--unsorted/evas/resources/images/star.jpgbin0 -> 20291 bytes
-rw-r--r--unsorted/evas/resources/images/sweet_home_reversed.pngbin0 -> 61351 bytes
-rw-r--r--unsorted/evas/resources/images/wood.jpgbin0 -> 24192 bytes
-rw-r--r--unsorted/evas/resources/models/NoNormal_NoUVs_Colors.ply67
-rw-r--r--unsorted/evas/resources/models/NoNormal_NoUVs_NoColors.ply60
-rw-r--r--unsorted/evas/resources/models/NoNormal_UVs_Colors.ply143
-rw-r--r--unsorted/evas/resources/models/NoNormal_UVs_NoColors.ply140
-rw-r--r--unsorted/evas/resources/models/Normal_NoUVs_Colors.ply144
-rw-r--r--unsorted/evas/resources/models/Normal_NoUVs_NoColors.ply141
-rw-r--r--unsorted/evas/resources/models/Normal_UVs_Colors.ply146
-rw-r--r--unsorted/evas/resources/models/Normal_UVs_NoColors.ply143
-rw-r--r--unsorted/evas/resources/models/convex_hull/column.ply521
-rw-r--r--unsorted/evas/resources/models/convex_hull/column_blender_ch.ply295
-rw-r--r--unsorted/evas/resources/models/convex_hull/column_blender_ch_test.ply164
-rw-r--r--unsorted/evas/resources/models/convex_hull/cube_blender_ch.ply43
-rw-r--r--unsorted/evas/resources/models/convex_hull/cube_blender_ch_test.ply24
-rw-r--r--unsorted/evas/resources/models/convex_hull/eagle_blender_ch.ply306
-rw-r--r--unsorted/evas/resources/models/convex_hull/eagle_blender_ch_test.ply124
-rw-r--r--unsorted/evas/resources/models/convex_hull/home_blender_ch.obj40
-rw-r--r--unsorted/evas/resources/models/convex_hull/home_blender_ch_test.ply35
-rw-r--r--unsorted/evas/resources/models/convex_hull/plain.ply846
-rw-r--r--unsorted/evas/resources/models/convex_hull/plain_blender_ch.ply18
-rw-r--r--unsorted/evas/resources/models/convex_hull/plain_blender_ch_test.ply15
-rw-r--r--unsorted/evas/resources/models/convex_hull/sonic_blender_ch.ply659
-rw-r--r--unsorted/evas/resources/models/convex_hull/sonic_blender_ch_test.ply260
-rw-r--r--unsorted/evas/resources/models/convex_hull/sphere_blender_ch.ply469
-rw-r--r--unsorted/evas/resources/models/convex_hull/sphere_blender_ch_test.ply194
-rw-r--r--unsorted/evas/resources/models/convex_hull/torus_blender_ch.ply12313
-rw-r--r--unsorted/evas/resources/models/convex_hull/torus_blender_ch_test.ply2556
-rw-r--r--unsorted/evas/resources/models/lod/iso_sphere0.obj3208
-rw-r--r--unsorted/evas/resources/models/lod/iso_sphere1.obj1608
-rw-r--r--unsorted/evas/resources/models/lod/iso_sphere2.obj808
-rw-r--r--unsorted/evas/resources/models/mesh_for_mmap.eetbin0 -> 19495 bytes
-rw-r--r--unsorted/evas/resources/models/mesh_for_mmap.md2bin0 -> 3400 bytes
-rw-r--r--unsorted/evas/resources/models/mesh_for_mmap.obj639
-rw-r--r--unsorted/evas/resources/models/mesh_for_mmap.ply401
-rw-r--r--unsorted/evas/resources/models/sonic.md2bin0 -> 660576 bytes
-rw-r--r--unsorted/evas/resources/models/sweet_home.obj107
-rw-r--r--unsorted/evas/resources/models/sweet_home_only_vertex_coords.obj40
-rw-r--r--unsorted/evas/resources/models/sweet_home_without_normals.obj96
-rw-r--r--unsorted/evas/resources/models/sweet_home_without_tex_coords.obj55
-rw-r--r--unsorted/evas/shooter/assets/images/brick-stone.jpgbin0 -> 30416 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/brick-stone_n.jpgbin0 -> 23490 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/bricks.jpgbin0 -> 90039 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/bricks_n.jpgbin0 -> 34584 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/eagle.pngbin0 -> 35011 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/gazebo.pngbin0 -> 113938 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/gazebo_b_n.pngbin0 -> 148096 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/gazebo_t.pngbin0 -> 119501 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/gazebo_t_n.pngbin0 -> 128640 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/gazebo_t_t.pngbin0 -> 121842 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/snake.pngbin0 -> 76100 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/snake_n.pngbin0 -> 79061 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/soldier.pngbin0 -> 113272 bytes
-rw-r--r--unsorted/evas/shooter/assets/images/warrior.pngbin0 -> 118574 bytes
-rw-r--r--unsorted/evas/shooter/assets/models/eagle.md2bin0 -> 196728 bytes
-rw-r--r--unsorted/evas/shooter/assets/models/gazebo_b.md2bin0 -> 153476 bytes
-rw-r--r--unsorted/evas/shooter/assets/models/gazebo_t.md2bin0 -> 154756 bytes
-rw-r--r--unsorted/evas/shooter/assets/models/snake.md2bin0 -> 270584 bytes
-rw-r--r--unsorted/evas/shooter/assets/models/soldier.md2bin0 -> 591280 bytes
-rw-r--r--unsorted/evas/shooter/assets/models/soldier_jump.md2bin0 -> 518676 bytes
-rw-r--r--unsorted/evas/shooter/assets/models/tommy.ply3558
-rw-r--r--unsorted/evas/shooter/assets/models/warrior.md2bin0 -> 130276 bytes
-rw-r--r--unsorted/evas/shooter/evas-3d-shooter-header.c359
-rw-r--r--unsorted/evas/shooter/evas-3d-shooter-header.h197
-rw-r--r--unsorted/evas/shooter/evas-3d-shooter-macros.h242
-rw-r--r--unsorted/evas/shooter/evas-3d-shooter.c1181
704 files changed, 130758 insertions, 0 deletions
diff --git a/unsorted/Makefile.am b/unsorted/Makefile.am
new file mode 100644
index 00000000..e987a44e
--- /dev/null
+++ b/unsorted/Makefile.am
@@ -0,0 +1,287 @@
1AUTOMAKE_OPTIONS= -Wno-portability
2CLEANFILES =
3DISTCLEANFILES =
4MAINTAINERCLEANFILES = Makefile.in
5EXTRA_PROGRAMS =
6DATA_FILES =
7EXTRA_DIST =
8EDCS =
9PHONIES =
10EOLIAN_FLAGS := \
11 -I$(srcdir) \
12 -I$(top_srcdir)/src/lib/eo \
13 -I$(top_srcdir)/src/lib/evas/canvas \
14 -I$(top_srcdir)/src/lib/evas/gesture \
15 -I$(top_srcdir)/src/lib/edje \
16 -I$(top_srcdir)/src/lib/efl \
17 -I$(top_srcdir)/src/lib/ecore \
18 -I$(top_srcdir)/src/lib/ecore_audio \
19 -I$(top_srcdir)/src/lib/elementary
20
21#defined in Makefile_Edje_Helper.am
22#EDJE_CC_FLAGS =
23
24CLEAN_EXAMPLES =
25INSTALL_EXAMPLES =
26UNINSTALL_EXAMPLES =
27
28include ../Makefile_Edje_Helper.am
29include $(top_srcdir)/src/Makefile_Eolian_Helper.am
30if HAVE_CXX
31include $(top_srcdir)/src/Makefile_Eolian_Cxx_Helper.am
32if ! HAVE_EOLIAN_CXX
33_EOLIAN_CXX_DEP = ../bin/eolian_cxx/eolian_cxx$(EXEEXT)
34bin/eolian_cxx/eolian_cxx$(EXEEXT):
35 false
36endif
37endif
38# Eolian_Files_Helper
39# Thus we need to override it here in order to make its pattern
40# rules work properly.
41if ! HAVE_EOLIAN_GEN
42_EOLIAN_GEN_DEP = ../bin/eolian/eolian_gen$(EXEEXT)
43endif
44
45if HAVE_CSHARP
46include $(top_srcdir)/src/Makefile_Efl_Mono_MSBuild_Gen_Helper.am
47endif
48
49AM_CPPFLAGS = \
50-I. \
51-I$(top_builddir)/src/bindings \
52-I$(top_srcdir)/src/bindings \
53-I$(top_builddir)/src/lib/efl/interfaces \
54-I$(top_builddir)/src/lib/evas/canvas \
55-I$(top_builddir)/src/lib/evas/gesture \
56-I$(top_srcdir)/src/bindings/cxx/eina_cxx \
57-I$(top_builddir)/src/bindings/cxx/eina_cxx \
58-I$(top_srcdir)/src/bindings/cxx/eo_cxx \
59-I$(top_builddir)/src/bindings/cxx/eo_cxx \
60-I$(top_srcdir)/src/bindings/cxx/eldbus_cxx \
61-I$(top_builddir)/src/bindings/cxx/eldbus_cxx \
62-I$(top_srcdir)/src/bindings/cxx/ecore_cxx \
63-I$(top_builddir)/src/bindings/cxx/ecore_cxx \
64-I$(top_builddir)/src/lib/ecore \
65-I$(top_srcdir)/src/lib/ecore \
66-I$(top_builddir)/src/lib/ecore_audio \
67-I$(top_srcdir)/src/lib/ecore_audio \
68-I$(top_builddir)/src/lib/ecore_avahi \
69-I$(top_srcdir)/src/lib/ecore_avahi \
70-I$(top_builddir)/src/lib/ecore_buffer \
71-I$(top_srcdir)/src/lib/ecore_buffer \
72-I$(top_builddir)/src/lib/ecore_cocoa \
73-I$(top_srcdir)/src/lib/ecore_cocoa \
74-I$(top_builddir)/src/lib/ecore_con \
75-I$(top_srcdir)/src/lib/ecore_con \
76-I$(top_builddir)/src/lib/ecore_drm \
77-I$(top_srcdir)/src/lib/ecore_drm \
78-I$(top_builddir)/src/lib/ecore_drm2 \
79-I$(top_srcdir)/src/lib/ecore_drm2 \
80-I$(top_builddir)/src/lib/ecore_evas \
81-I$(top_srcdir)/src/lib/ecore_evas \
82-I$(top_builddir)/src/lib/ecore_fb \
83-I$(top_srcdir)/src/lib/ecore_fb \
84-I$(top_builddir)/src/lib/ecore_file \
85-I$(top_srcdir)/src/lib/ecore_file \
86-I$(top_builddir)/src/lib/ecore_imf \
87-I$(top_srcdir)/src/lib/ecore_imf \
88-I$(top_builddir)/src/lib/ecore_imf_evas \
89-I$(top_srcdir)/src/lib/ecore_imf_evas \
90-I$(top_builddir)/src/lib/ecore_input \
91-I$(top_srcdir)/src/lib/ecore_input \
92-I$(top_builddir)/src/lib/ecore_input_evas \
93-I$(top_srcdir)/src/lib/ecore_input_evas \
94-I$(top_builddir)/src/lib/ecore_ipc \
95-I$(top_srcdir)/src/lib/ecore_ipc \
96-I$(top_builddir)/src/lib/ecore_sdl \
97-I$(top_srcdir)/src/lib/ecore_sdl \
98-I$(top_builddir)/src/lib/ecore_wayland \
99-I$(top_srcdir)/src/lib/ecore_wayland \
100-I$(top_builddir)/src/lib/ecore_win32 \
101-I$(top_srcdir)/src/lib/ecore_win32 \
102-I$(top_builddir)/src/lib/ecore_wl2 \
103-I$(top_srcdir)/src/lib/ecore_wl2 \
104-I$(top_builddir)/src/lib/ecore_x \
105-I$(top_srcdir)/src/lib/ecore_x \
106-I$(top_builddir)/src/lib/ector \
107-I$(top_srcdir)/src/lib/ector \
108-I$(top_builddir)/src/lib/edje \
109-I$(top_srcdir)/src/lib/edje \
110-I$(top_builddir)/src/lib/eet \
111-I$(top_srcdir)/src/lib/eet \
112-I$(top_builddir)/src/lib/eeze \
113-I$(top_srcdir)/src/lib/eeze \
114-I$(top_builddir)/src/lib/efl \
115-I$(top_srcdir)/src/lib/efl \
116-I$(top_builddir)/src/lib/efl_mono \
117-I$(top_srcdir)/src/lib/efl_mono \
118-I$(top_builddir)/src/lib/efl_wl \
119-I$(top_srcdir)/src/lib/efl_wl \
120-I$(top_builddir)/src/lib/efreet \
121-I$(top_srcdir)/src/lib/efreet \
122-I$(top_builddir)/src/lib/eina \
123-I$(top_srcdir)/src/lib/eina \
124-I$(top_builddir)/src/lib/eio \
125-I$(top_srcdir)/src/lib/eio \
126-I$(top_builddir)/src/lib/eldbus \
127-I$(top_srcdir)/src/lib/eldbus \
128-I$(top_builddir)/src/lib/elementary \
129-I$(top_srcdir)/src/lib/elementary \
130-I$(top_builddir)/src/lib/elocation \
131-I$(top_srcdir)/src/lib/elocation \
132-I$(top_builddir)/src/lib/elput \
133-I$(top_srcdir)/src/lib/elput \
134-I$(top_builddir)/src/lib/elua \
135-I$(top_srcdir)/src/lib/elua \
136-I$(top_builddir)/src/lib/embryo \
137-I$(top_srcdir)/src/lib/embryo \
138-I$(top_builddir)/src/lib/emile \
139-I$(top_srcdir)/src/lib/emile \
140-I$(top_builddir)/src/lib/emotion \
141-I$(top_srcdir)/src/lib/emotion \
142-I$(top_builddir)/src/lib/eo \
143-I$(top_srcdir)/src/lib/eo \
144-I$(top_builddir)/src/lib/eolian \
145-I$(top_srcdir)/src/lib/eolian \
146-I$(top_builddir)/src/lib/eolian_cxx \
147-I$(top_srcdir)/src/lib/eolian_cxx \
148-I$(top_builddir)/src/lib/ephysics \
149-I$(top_srcdir)/src/lib/ephysics \
150-I$(top_builddir)/src/lib/escape \
151-I$(top_srcdir)/src/lib/escape \
152-I$(top_builddir)/src/lib/ethumb \
153-I$(top_srcdir)/src/lib/ethumb \
154-I$(top_builddir)/src/lib/ethumb_client \
155-I$(top_srcdir)/src/lib/ethumb_client \
156-I$(top_builddir)/src/lib/evas \
157-I$(top_srcdir)/src/lib/evas \
158-DPACKAGE_BIN_DIR=\"$(bindir)\" \
159-DPACKAGE_LIB_DIR=\"$(libdir)\" \
160@ELEMENTARY_CFLAGS@
161
162if HAVE_WINDOWS
163AM_CPPFLAGS += \
164-I$(top_srcdir)/src/lib/evil \
165-I$(top_builddir)/src/lib/evil \
166@EFL_WINDOWS_VERSION_CFLAGS@
167endif
168
169AM_CXXFLAGS = \
170$(AM_CPPFLAGS) \
171@ELEMENTARY_CXX_CFLAGS@
172
173LDADD = \
174-lm \
175@EFL_PTHREAD_LIBS@ \
176$(top_builddir)/src/lib/ecore_avahi/libecore_avahi.la \
177$(top_builddir)/src/lib/ecore_con/libecore_con.la \
178$(top_builddir)/src/lib/ecore_evas/libecore_evas.la \
179$(top_builddir)/src/lib/ecore_file/libecore_file.la \
180$(top_builddir)/src/lib/ecore_imf_evas/libecore_imf_evas.la \
181$(top_builddir)/src/lib/ecore_imf/libecore_imf.la \
182$(top_builddir)/src/lib/ecore_input_evas/libecore_input_evas.la \
183$(top_builddir)/src/lib/ecore_input/libecore_input.la \
184$(top_builddir)/src/lib/ecore_ipc/libecore_ipc.la \
185$(top_builddir)/src/lib/ecore/libecore.la \
186$(top_builddir)/src/lib/ector/libector.la \
187$(top_builddir)/src/lib/edje/libedje.la \
188$(top_builddir)/src/lib/eet/libeet.la \
189$(top_builddir)/src/lib/efl/libefl.la \
190$(top_builddir)/src/lib/efreet/libefreet.la \
191$(top_builddir)/src/lib/efreet/libefreet_mime.la \
192$(top_builddir)/src/lib/efreet/libefreet_trash.la \
193$(top_builddir)/src/lib/eina/libeina.la \
194$(top_builddir)/src/lib/eio/libeio.la \
195$(top_builddir)/src/lib/eldbus/libeldbus.la \
196$(top_builddir)/src/lib/elementary/libelementary.la \
197$(top_builddir)/src/lib/elocation/libelocation.la \
198$(top_builddir)/src/lib/embryo/libembryo.la \
199$(top_builddir)/src/lib/emile/libemile.la \
200$(top_builddir)/src/lib/emotion/libemotion.la \
201$(top_builddir)/src/lib/eolian/libeolian.la \
202$(top_builddir)/src/lib/eo/libeo.la \
203$(top_builddir)/src/lib/ethumb_client/libethumb_client.la \
204$(top_builddir)/src/lib/ethumb/libethumb.la \
205$(top_builddir)/src/lib/evas/libevas.la
206
207
208AM_LDFLAGS = @ELEMENTARY_LDFLAGS@
209
210if HAVE_ECORE_AUDIO
211LDADD += $(top_builddir)/src/lib/ecore_audio/libecore_audio.la
212endif
213
214if HAVE_EPHYSICS
215LDADD += $(top_builddir)/src/lib/ephysics/libephysics.la
216endif
217
218if HAVE_ECORE_WL2
219LDADD += \
220$(top_builddir)/src/lib/ecore_wl2/libecore_wl2.la \
221$(top_builddir)/src/lib/efl_wl/libefl_wl.la
222endif
223
224if HAVE_EEZE
225LDADD += $(top_builddir)/src/lib/eeze/libeeze.la
226endif
227
228if HAVE_ELPUT
229LDADD += $(top_builddir)/src/lib/elput/libelput.la
230endif
231
232if HAVE_ELUA
233LDADD += $(top_builddir)/src/lib/elua/libelua.la
234endif
235
236if HAVE_ECORE_X
237LDADD += $(top_builddir)/src/lib/ecore_x/libecore_x.la
238endif
239
240include ecore_avahi.mk
241include ecore.mk
242include edje.mk
243include eet.mk
244include efl_mono.mk
245include eina_cxx.mk
246include eina.mk
247include eio.mk
248include eldbus.mk
249include elementary.mk
250include elocation.mk
251include emile.mk
252include emotion.mk
253include eolian_cxx.mk
254include ephysics.mk
255include ethumb_client.mk
256include evas.mk
257
258$(top_builddir)/src/bin/edje_cc$(EXEEXT):
259 @test -f $(top_builddir)/src/bin/edje_cc$(EXEEXT) || $(MAKE) $(AM_MAKEFLAGS) -C ../ bin/edje_cc$(EXEEXT)
260
261# this is a bit hacky
262# currently all options from all directories are passed to all edje_cc cmds
263# so if there are any files with the same name in different dirs it will fail
264.edc.edj: $(top_builddir)/src/bin/edje_cc$(EXEEXT)
265 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $< $(builddir)/$@
266
267EXTRA_DIST += $(EDCS) $(DATA_FILES)
268EDJS = $(EDCS:%.edc=%.edj)
269
270examples: $(EXTRA_PROGRAMS) $(EDJS)
271
272clean-local: $(CLEAN_EXAMPLES)
273 rm -f $(EXTRA_PROGRAMS) $(EDJS)
274
275install-examples: $(INSTALL_EXAMPLES)
276uninstall-local: $(UNINSTALL_EXAMPLES)
277.PHONY: $(PHONIES)
278
279EXTRA_DIST += $(EDCS) $(DATA_FILES)
280
281if ALWAYS_BUILD_EXAMPLES
282noinst_PROGRAMS = $(EXTRA_PROGRAMS)
283nodist_pkgdata_DATA = $(EDJS)
284else
285endif
286
287check: ;
diff --git a/unsorted/ecore.mk b/unsorted/ecore.mk
new file mode 100644
index 00000000..0c1bedf9
--- /dev/null
+++ b/unsorted/ecore.mk
@@ -0,0 +1,478 @@
1ECORE_COMMON_CPPFLAGS = \
2-DPACKAGE_EXAMPLES_DIR=\".\"
3
4if HAVE_ECORE_BUFFER
5ECORE_COMMON_CPPFLAGS += -I$(top_srcdir)/src/lib/ecore_buffer
6LDADD += $(top_builddir)/src/lib/ecore_buffer/libecore_buffer.la
7endif
8
9EXTRA_PROGRAMS += \
10ecore/ecore_animator_example \
11ecore/ecore_client_bench \
12ecore/ecore_compose_get_example \
13ecore/ecore_con_client_example \
14ecore/ecore_con_client_simple_example \
15ecore/ecore_con_lookup_example \
16ecore/ecore_con_server_example \
17ecore/ecore_con_server_http_example \
18ecore/ecore_con_server_simple_example \
19ecore/ecore_con_url_cookies_example \
20ecore/ecore_con_url_download_example \
21ecore/ecore_con_url_headers_example \
22ecore/ecore_con_url_ftp_example \
23ecore/ecore_evas_basics_example \
24ecore/ecore_evas_buffer_example_01 \
25ecore/ecore_evas_buffer_example_02 \
26ecore/ecore_evas_callbacks \
27ecore/ecore_evas_cursor_example \
28ecore/ecore_evas_extn_socket_example \
29ecore/ecore_evas_extn_plug_example \
30ecore/ecore_evas_ews_example \
31ecore/ecore_evas_object_example \
32ecore/ecore_evas_wayland_multiseat_example \
33ecore/ecore_evas_window_sizes_example \
34ecore/ecore_evas_vnc_example \
35ecore/ecore_event_example_01 \
36ecore/ecore_event_example_02 \
37ecore/ecore_exe_example \
38ecore/ecore_exe_example_child \
39ecore/ecore_fd_handler_example \
40ecore/ecore_file_download_example \
41ecore/ecore_idler_example \
42ecore/ecore_imf_example \
43ecore/ecore_job_example \
44ecore/ecore_poller_example \
45ecore/ecore_promise2_example \
46ecore/ecore_server_bench \
47ecore/ecore_thread_example \
48ecore/ecore_time_functions_example \
49ecore/ecore_timer_example \
50ecore/ecore_getopt_example \
51ecore/ecore_con_eet_client_example \
52ecore/ecore_con_eet_server_example \
53ecore/efl_io_copier_example \
54ecore/efl_io_copier_simple_example \
55ecore/efl_io_queue_example \
56ecore/efl_io_buffered_stream_example \
57ecore/efl_net_server_example \
58ecore/efl_net_server_simple_example \
59ecore/efl_net_dialer_http_example \
60ecore/efl_net_dialer_websocket_example \
61ecore/efl_net_dialer_websocket_autobahntestee \
62ecore/efl_net_dialer_udp_example \
63ecore/efl_net_dialer_simple_example \
64ecore/efl_net_socket_ssl_dialer_example \
65ecore/efl_net_socket_ssl_server_example \
66ecore/efl_net_session_example \
67ecore/efl_net_control_example \
68ecore/efl_net_ip_address_example \
69ecore/ecore_ipc_server_example \
70ecore/ecore_ipc_client_example
71
72
73if HAVE_ECORE_AUDIO
74#EXTRA_PROGRAMS += \
75#ecore_audio_playback \
76#ecore_audio_to_ogg \
77#ecore_audio_custom
78#
79#$(top_builddir)/src/lib/ecore_audio/libecore_audio.la \
80#$(LDADD)
81#
82#ecore_audio_custom_SOURCES = ecore/ecore_audio_custom.c
83#ecore_audio_custom_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
84
85#
86#ecore_audio_playback_SOURCES = ecore/ecore_audio_playback.c
87#ecore_audio_playback_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
88
89#
90#ecore_audio_to_ogg_SOURCES = ecore/ecore_audio_to_ogg.c
91#ecore_audio_to_ogg_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
92
93endif
94
95ecore_ecore_animator_example_SOURCES = ecore/ecore_animator_example.c
96ecore_ecore_animator_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
97
98
99if HAVE_ECORE_BUFFER
100EXTRA_PROGRAMS += ecore/ecore_buffer_example \
101ecore/ecore_buffer_consumer_example \
102ecore/ecore_buffer_provider_example
103
104ecore_ecore_buffer_example_SOURCES = ecore/ecore_buffer_example.c
105ecore_ecore_buffer_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
106
107
108ecore_ecore_buffer_consumer_example_SOURCES = ecore/ecore_buffer_consumer_example.c
109ecore_ecore_buffer_consumer_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
110
111
112ecore_ecore_buffer_provider_example_SOURCES = ecore/ecore_buffer_provider_example.c
113ecore_ecore_buffer_provider_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
114
115endif
116
117ecore_ecore_client_bench_SOURCES = ecore/ecore_client_bench.c
118ecore_ecore_client_bench_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
119
120
121ecore_ecore_compose_get_example_SOURCES = ecore/ecore_compose_get_example.c
122ecore_ecore_compose_get_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
123
124
125ecore_ecore_con_client_example_SOURCES = ecore/ecore_con_client_example.c
126ecore_ecore_con_client_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
127
128
129ecore_ecore_con_client_simple_example_SOURCES = ecore/ecore_con_client_simple_example.c
130ecore_ecore_con_client_simple_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
131
132
133ecore_ecore_con_lookup_example_SOURCES = ecore/ecore_con_lookup_example.c
134ecore_ecore_con_lookup_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
135
136
137ecore_ecore_con_server_example_SOURCES = ecore/ecore_con_server_example.c
138ecore_ecore_con_server_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
139
140
141ecore_ecore_con_server_http_example_SOURCES = ecore/ecore_con_server_http_example.c
142ecore_ecore_con_server_http_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
143
144
145ecore_ecore_con_server_simple_example_SOURCES = ecore/ecore_con_server_simple_example.c
146ecore_ecore_con_server_simple_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
147
148
149ecore_ecore_con_url_cookies_example_SOURCES = ecore/ecore_con_url_cookies_example.c
150ecore_ecore_con_url_cookies_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
151
152
153ecore_ecore_con_url_download_example_SOURCES = ecore/ecore_con_url_download_example.c
154ecore_ecore_con_url_download_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
155
156
157ecore_ecore_con_url_headers_example_SOURCES = ecore/ecore_con_url_headers_example.c
158ecore_ecore_con_url_headers_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
159
160
161ecore_ecore_con_url_ftp_example_SOURCES = ecore/ecore_con_url_ftp_example.c
162ecore_ecore_con_url_ftp_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
163
164
165ecore_ecore_evas_basics_example_SOURCES = ecore/ecore_evas_basics_example.c
166ecore_ecore_evas_basics_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
167
168
169ecore_ecore_evas_buffer_example_01_SOURCES = ecore/ecore_evas_buffer_example_01.c
170ecore_ecore_evas_buffer_example_01_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
171
172
173ecore_ecore_evas_buffer_example_02_SOURCES = ecore/ecore_evas_buffer_example_02.c
174ecore_ecore_evas_buffer_example_02_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
175
176
177ecore_ecore_evas_callbacks_SOURCES = ecore/ecore_evas_callbacks.c
178ecore_ecore_evas_callbacks_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
179
180
181ecore_ecore_evas_cursor_example_SOURCES = ecore/ecore_evas_cursor_example.c
182ecore_ecore_evas_cursor_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
183
184
185ecore_ecore_evas_extn_socket_example_SOURCES = ecore/ecore_evas_extn_socket_example.c
186ecore_ecore_evas_extn_socket_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
187
188
189ecore_ecore_evas_extn_plug_example_SOURCES = ecore/ecore_evas_extn_plug_example.c
190ecore_ecore_evas_extn_plug_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
191
192
193ecore_ecore_evas_ews_example_SOURCES = ecore/ecore_evas_ews_example.c
194ecore_ecore_evas_ews_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
195
196
197ecore_ecore_evas_object_example_SOURCES = ecore/ecore_evas_object_example.c
198ecore_ecore_evas_object_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
199
200
201ecore_ecore_evas_wayland_multiseat_example_SOURCES = ecore/ecore_evas_wayland_multiseat_example.c
202ecore_ecore_evas_wayland_multiseat_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
203
204
205ecore_ecore_evas_window_sizes_example_SOURCES = ecore/ecore_evas_window_sizes_example.c
206ecore_ecore_evas_window_sizes_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
207
208
209ecore_ecore_evas_vnc_example_SOURCES = ecore/ecore_evas_vnc_example.c
210ecore_ecore_evas_vnc_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
211
212
213ecore_ecore_event_example_01_SOURCES = ecore/ecore_event_example_01.c
214ecore_ecore_event_example_01_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
215
216
217ecore_ecore_event_example_02_SOURCES = ecore/ecore_event_example_02.c
218ecore_ecore_event_example_02_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
219
220
221ecore_ecore_exe_example_SOURCES = ecore/ecore_exe_example.c
222ecore_ecore_exe_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
223
224
225ecore_ecore_exe_example_child_SOURCES = ecore/ecore_exe_example_child.c
226ecore_ecore_exe_example_child_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
227
228
229ecore_ecore_fd_handler_example_SOURCES = ecore/ecore_fd_handler_example.c
230ecore_ecore_fd_handler_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
231
232
233if HAVE_CRYPTO_GNUTLS
234EXTRA_PROGRAMS += ecore/ecore_fd_handler_gnutls_example
235ecore_ecore_fd_handler_gnutls_example_SOURCES = ecore/ecore_fd_handler_gnutls_example.c
236ecore_ecore_fd_handler_gnutls_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
237
238endif
239
240ecore_ecore_file_download_example_SOURCES = ecore/ecore_file_download_example.c
241ecore_ecore_file_download_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
242
243
244ecore_ecore_idler_example_SOURCES = ecore/ecore_idler_example.c
245ecore_ecore_idler_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
246
247
248ecore_ecore_imf_example_SOURCES = ecore/ecore_imf_example.c
249ecore_ecore_imf_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
250
251
252
253ecore_ecore_job_example_SOURCES = ecore/ecore_job_example.c
254ecore_ecore_job_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
255
256
257if HAVE_GSTREAMER
258EXTRA_PROGRAMS += ecore/ecore_pipe_gstreamer_example
259ecore_ecore_pipe_gstreamer_example_SOURCES = ecore/ecore_pipe_gstreamer_example.c
260ecore_ecore_pipe_gstreamer_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS) @GSTREAMER_CFLAGS@
261ecore_ecore_pipe_gstreamer_example_LDADD = $(LDADD) @GSTREAMER_LIBS@
262endif
263
264if ! HAVE_WINDOWS
265EXTRA_PROGRAMS += ecore/ecore_pipe_simple_example
266ecore_ecore_pipe_simple_example_SOURCES = ecore/ecore_pipe_simple_example.c
267ecore_ecore_pipe_simple_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
268
269endif
270
271ecore_ecore_poller_example_SOURCES = ecore/ecore_poller_example.c
272ecore_ecore_poller_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
273
274
275ecore_ecore_promise2_example_SOURCES = ecore/ecore_promise2_example.c
276ecore_ecore_promise2_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
277
278
279ecore_ecore_server_bench_SOURCES = ecore/ecore_server_bench.c
280ecore_ecore_server_bench_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
281
282
283ecore_ecore_thread_example_SOURCES = ecore/ecore_thread_example.c
284ecore_ecore_thread_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
285
286
287ecore_ecore_time_functions_example_SOURCES = ecore/ecore_time_functions_example.c
288ecore_ecore_time_functions_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
289
290
291ecore_ecore_timer_example_SOURCES = ecore/ecore_timer_example.c
292ecore_ecore_timer_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
293
294
295ecore_ecore_getopt_example_SOURCES = ecore/ecore_getopt_example.c
296ecore_ecore_getopt_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
297
298
299ecore_ecore_con_eet_client_example_SOURCES = ecore/ecore_con_eet_client_example.c \
300 ecore/ecore_con_eet_descriptor_example.c \
301 ecore/ecore_con_eet_descriptor_example.h
302ecore_ecore_con_eet_client_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
303
304ecore_ecore_con_eet_server_example_SOURCES = ecore/ecore_con_eet_server_example.c \
305 ecore/ecore_con_eet_descriptor_example.c \
306 ecore/ecore_con_eet_descriptor_example.h
307ecore_ecore_con_eet_server_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
308
309
310ecore_efl_io_copier_example_SOURCES = ecore/efl_io_copier_example.c
311ecore_efl_io_copier_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
312
313
314ecore_efl_io_copier_simple_example_SOURCES = ecore/efl_io_copier_simple_example.c
315ecore_efl_io_copier_simple_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
316
317
318ecore_efl_io_queue_example_SOURCES = ecore/efl_io_queue_example.c
319ecore_efl_io_queue_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
320
321
322ecore_efl_io_buffered_stream_example_SOURCES = ecore/efl_io_buffered_stream_example.c
323ecore_efl_io_buffered_stream_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
324
325
326ecore_efl_net_server_example_SOURCES = ecore/efl_net_server_example.c
327ecore_efl_net_server_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
328
329
330ecore_efl_net_server_simple_example_SOURCES = ecore/efl_net_server_simple_example.c
331ecore_efl_net_server_simple_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
332
333
334ecore_efl_net_dialer_http_example_SOURCES = ecore/efl_net_dialer_http_example.c
335ecore_efl_net_dialer_http_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
336
337
338ecore_efl_net_dialer_websocket_example_SOURCES = ecore/efl_net_dialer_websocket_example.c
339ecore_efl_net_dialer_websocket_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
340
341
342ecore_efl_net_dialer_websocket_autobahntestee_SOURCES = ecore/efl_net_dialer_websocket_autobahntestee.c
343ecore_efl_net_dialer_websocket_autobahntestee_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
344
345
346ecore_efl_net_dialer_udp_example_SOURCES = ecore/efl_net_dialer_udp_example.c
347ecore_efl_net_dialer_udp_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
348
349
350ecore_efl_net_dialer_simple_example_SOURCES = ecore/efl_net_dialer_simple_example.c
351ecore_efl_net_dialer_simple_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
352
353
354if HAVE_WINDOWS
355EXTRA_PROGRAMS += ecore/efl_net_dialer_windows_example
356ecore_efl_net_dialer_windows_example_SOURCES = ecore/efl_net_dialer_windows_example.c
357ecore_efl_net_dialer_windows_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
358
359else
360EXTRA_PROGRAMS += ecore/efl_net_dialer_unix_example
361ecore_efl_net_dialer_unix_example_SOURCES = ecore/efl_net_dialer_unix_example.c
362ecore_efl_net_dialer_unix_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
363
364endif
365
366ecore_efl_net_socket_ssl_dialer_example_SOURCES = ecore/efl_net_socket_ssl_dialer_example.c
367ecore_efl_net_socket_ssl_dialer_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
368
369
370ecore_efl_net_socket_ssl_server_example_SOURCES = ecore/efl_net_socket_ssl_server_example.c
371ecore_efl_net_socket_ssl_server_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
372
373
374ecore_efl_net_session_example_SOURCES = ecore/efl_net_session_example.c
375ecore_efl_net_session_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
376
377
378ecore_efl_net_control_example_SOURCES = ecore/efl_net_control_example.c
379ecore_efl_net_control_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
380
381
382ecore_efl_net_ip_address_example_SOURCES = ecore/efl_net_ip_address_example.c
383ecore_efl_net_ip_address_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
384
385
386ecore_ecore_ipc_server_example_SOURCES = ecore/ecore_ipc_server_example.c
387ecore_ecore_ipc_server_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
388
389
390ecore_ecore_ipc_client_example_SOURCES = ecore/ecore_ipc_client_example.c
391ecore_ecore_ipc_client_example_CPPFLAGS = $(ECORE_COMMON_CPPFLAGS) $(AM_CPPFLAGS)
392
393
394ECORE_SRCS = \
395ecore/ecore_animator_example.c \
396ecore/ecore_buffer_example.c \
397ecore/ecore_buffer_consumer_example.c \
398ecore/ecore_buffer_provider_example.c \
399ecore/ecore_client_bench.c \
400ecore/ecore_compose_get_example.c \
401ecore/ecore_con_client_example.c \
402ecore/ecore_con_client_simple_example.c \
403ecore/ecore_con_lookup_example.c \
404ecore/ecore_con_server_example.c \
405ecore/ecore_con_server_http_example.c \
406ecore/ecore_con_server_simple_example.c \
407ecore/ecore_con_url_cookies_example.c \
408ecore/ecore_con_url_download_example.c \
409ecore/ecore_con_url_headers_example.c \
410ecore/ecore_con_url_ftp_example.c \
411ecore/ecore_evas_basics_example.c \
412ecore/ecore_evas_buffer_example_01.c \
413ecore/ecore_evas_buffer_example_02.c \
414ecore/ecore_evas_extn_socket_example.c \
415ecore/ecore_evas_extn_plug_example.c \
416ecore/ecore_evas_callbacks.c \
417ecore/ecore_evas_ews_example.c \
418ecore/ecore_evas_object_example.c \
419ecore/ecore_evas_wayland_multiseat_example.c \
420ecore/ecore_evas_window_sizes_example.c \
421ecore/ecore_evas_vnc_example.c \
422ecore/ecore_event_example_01.c \
423ecore/ecore_event_example_02.c \
424ecore/ecore_exe_example.c \
425ecore/ecore_exe_example_child.c \
426ecore/ecore_fd_handler_example.c \
427ecore/ecore_fd_handler_gnutls_example.c \
428ecore/ecore_file_download_example.c \
429ecore/ecore_idler_example.c \
430ecore/ecore_imf_example.c \
431ecore/ecore_job_example.c \
432ecore/ecore_pipe_gstreamer_example.c \
433ecore/ecore_pipe_simple_example.c \
434ecore/ecore_poller_example.c \
435ecore/ecore_promise2_example.c \
436ecore/ecore_server_bench.c \
437ecore/ecore_thread_example.c \
438ecore/ecore_time_functions_example.c \
439ecore/ecore_timer_example.c \
440ecore/ecore_getopt_example.c \
441ecore/ecore_con_eet_client_example.c \
442ecore/ecore_con_eet_server_example.c \
443ecore/ecore_con_eet_descriptor_example.c \
444ecore/efl_io_copier_example.c \
445ecore/efl_io_copier_simple_example.c \
446ecore/efl_io_queue_example.c \
447ecore/efl_io_buffered_stream_example.c \
448ecore/efl_net_server_example.c \
449ecore/efl_net_server_simple_example.c \
450ecore/efl_net_dialer_http_example.c \
451ecore/efl_net_dialer_websocket_example.c \
452ecore/efl_net_dialer_websocket_autobahntestee.c \
453ecore/efl_net_dialer_udp_example.c \
454ecore/efl_net_dialer_simple_example.c \
455ecore/efl_net_socket_ssl_dialer_example.c \
456ecore/efl_net_socket_ssl_server_example.c \
457ecore/efl_net_session_example.c \
458ecore/efl_net_control_example.c \
459ecore/ecore_ipc_server_example.c \
460ecore/ecore_ipc_client_example.c
461
462ECORE_DATA_FILES = \
463ecore/red.png \
464ecore/Makefile.examples
465
466DATA_FILES += $(ECORE_DATA_FILES)
467
468install-examples-ecore:
469 $(MKDIR_P) $(DESTDIR)$(datadir)/ecore/examples
470 cd $(srcdir) && $(install_sh_DATA) -c $(ECORE_SRCS) $(ECORE_DATA_FILES) $(DESTDIR)$(datadir)/ecore/examples
471
472uninstall-local-ecore:
473 for f in $(ECORE_SRCS) $(ECORE_DATA_FILES); do \
474 rm -f $(DESTDIR)$(datadir)/ecore/examples/$$f ; \
475 done
476
477INSTALL_EXAMPLES += install-examples-ecore
478UNINSTALL_EXAMPLES += uninstall-local-ecore
diff --git a/unsorted/ecore/.gitignore b/unsorted/ecore/.gitignore
new file mode 100644
index 00000000..cda3e56d
--- /dev/null
+++ b/unsorted/ecore/.gitignore
@@ -0,0 +1,73 @@
1/ecore_animator_example
2/ecore_audio_custom
3/ecore_audio_playback
4/ecore_audio_to_ogg
5/ecore_client_bench
6/ecore_compose_get_example
7/ecore_con_client_example
8/ecore_con_client_simple_example
9/ecore_con_eet_client_example
10/ecore_con_eet_server_example
11/ecore_con_lookup_example
12/ecore_con_server_example
13/ecore_con_server_http_example
14/ecore_con_server_simple_example
15/ecore_con_url_cookies_example
16/ecore_con_url_download_example
17/ecore_con_url_ftp_example
18/ecore_con_url_headers_example
19/ecore_evas_basics_example
20/ecore_evas_buffer_example_01
21/ecore_evas_buffer_example_02
22/ecore_evas_callbacks
23/ecore_evas_cursor_example
24/ecore_evas_ews_example
25/ecore_evas_extn_plug_example
26/ecore_evas_extn_socket_example
27/ecore_evas_object_example
28/ecore_evas_wayland_multiseat_example
29/ecore_evas_window_sizes_example
30/ecore_evas_vnc_example
31/ecore_event_example_01
32/ecore_event_example_02
33/ecore_exe_example
34/ecore_exe_example_child
35/ecore_fd_handler_example
36/ecore_fd_handler_gnutls_example
37/ecore_file_download_example
38/ecore_getopt_example
39/ecore_idler_example
40/ecore_imf_example
41/ecore_job_example
42/ecore_pipe_gstreamer_example
43/ecore_pipe_simple_example
44/ecore_poller_example
45/ecore_server_bench
46/ecore_thread_example
47/ecore_time_functions_example
48/ecore_timer_example
49/ecore_buffer_example
50/ecore_buffer_consumer_example
51/ecore_buffer_provider_example
52/efl_io_copier_example
53/efl_io_copier_simple_example
54/efl_io_queue_example
55/efl_io_buffered_stream_example
56/efl_net_server_example
57/efl_net_server_simple_example
58/efl_net_dialer_http_example
59/efl_net_dialer_websocket_example
60/efl_net_dialer_websocket_autobahntestee
61/efl_net_dialer_udp_example
62/efl_net_dialer_simple_example
63/efl_net_dialer_unix_example
64/ecore_evas_vnc
65/efl_net_socket_ssl_dialer_example
66/efl_net_socket_ssl_server_example
67/*.pem
68/efl_net_session_example
69/efl_net_control_example
70/efl_net_ip_address_example
71/ecore_ipc_server_example
72/ecore_ipc_client_example
73/ecore_promise2_example
diff --git a/unsorted/ecore/Makefile.examples b/unsorted/ecore/Makefile.examples
new file mode 100644
index 00000000..63e5f6b7
--- /dev/null
+++ b/unsorted/ecore/Makefile.examples
@@ -0,0 +1,60 @@
1CC=gcc
2
3if HAVE_GSTREAMER_1
4 GSTREAMER_DEP="gstreamer-1.0"
5else
6 GSTREAMER_DEP="gstreamer-0.10"
7endif
8
9COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,ecore-audio,ecore-con,ecore-file, \
10 eo,evas-software-buffer,gnutls,ecore-imf,ecore-imf-evas,$(GSTREAMER_DEP)` -lm
11
12EXAMPLES= ecore_animator_example \
13 ecore_audio_custom \
14 ecore_audio_playback \
15 ecore_audio_to_ogg \
16 ecore_client_bench \
17 ecore_con_client_example \
18 ecore_con_client_simple_example \
19 ecore_con_lookup_example \
20 ecore_con_server_example \
21 ecore_con_server_http_example \
22 ecore_con_server_simple_example \
23 ecore_con_url_cookies_example \
24 ecore_con_url_download_example \
25 ecore_con_url_headers_example \
26 ecore_evas_basics_example \
27 ecore_evas_buffer_example_01 \
28 ecore_evas_buffer_example_02 \
29 ecore_evas_callbacks \
30 ecore_evas_ews_example \
31 ecore_evas_object_example \
32 ecore_evas_window_sizes_example \
33 ecore_event_example_01 \
34 ecore_event_example_02 \
35 ecore_exe_example \
36 ecore_exe_example_child \
37 ecore_fd_handler_example \
38 ecore_fd_handler_gnutls_example \
39 ecore_file_download_example \
40 ecore_idler_example \
41 ecore_imf_example \
42 ecore_job_example \
43 ecore_pipe_gstreamer_example \
44 ecore_pipe_simple_example \
45 ecore_poller_example \
46 ecore_server_bench \
47 ecore_thread_example \
48 ecore_time_functions_example \
49 ecore_timer_example \
50 ecore_getopt_example
51
52all: examples
53examples: $(EXAMPLES)
54
55$(EXAMPLES):
56 $(CC) -o $@ $@.c $(COMMON_FLAGS)
57
58clean:
59 @echo "Cleaning up built objects..."
60 @rm -Rf $(EXAMPLES)
diff --git a/unsorted/ecore/ecore_animator_example.c b/unsorted/ecore/ecore_animator_example.c
new file mode 100644
index 00000000..db77dc7c
--- /dev/null
+++ b/unsorted/ecore/ecore_animator_example.c
@@ -0,0 +1,117 @@
1//Compile with:
2//gcc -g -Wall -o ecore_animator_example ecore_animator_example.c `pkg-config --cflags --libs evas ecore-evas ecore`
3
4#include <Ecore.h>
5#include <Ecore_Evas.h>
6
7static Eina_Bool _advance_frame(void *data, double pos);
8static Eina_Bool _advance_frame2(void *data, double pos);
9static Eina_Bool _advance_frame3(void *data);
10static Eina_Bool _start_second_anim(void *data);
11static Eina_Bool _freeze_third_anim(void *data);
12static Eina_Bool _thaw_third_anim(void *data);
13
14int
15main(void)
16{
17 Evas_Object *rect, *bg, *rect2;
18 Ecore_Evas *ee;
19 Evas *evas;
20 Ecore_Animator *anim;
21
22 ecore_evas_init();
23
24 ee = ecore_evas_new(NULL, 0, 0, 300, 400, NULL);
25 ecore_evas_show(ee);
26 evas = ecore_evas_get(ee);
27
28 bg = evas_object_rectangle_add(evas);
29 evas_object_resize(bg, 300, 400);
30 evas_object_show(bg);
31
32 rect = evas_object_rectangle_add(evas);
33 evas_object_color_set(rect, 0, 0, 255, 255);
34 evas_object_resize(rect, 50, 50);
35 evas_object_show(rect);
36
37 rect2 = evas_object_rectangle_add(evas);
38 evas_object_color_set(rect2, 0, 55, 0, 255);
39 evas_object_resize(rect2, 50, 50);
40 evas_object_show(rect2);
41
42 ecore_animator_frametime_set(1. / 50);
43 ecore_animator_timeline_add(5, _advance_frame, rect);
44
45 anim = ecore_animator_add(_advance_frame3, rect2);
46
47 ecore_timer_add(10, _start_second_anim, rect);
48 ecore_timer_add(5, _freeze_third_anim, anim);
49 ecore_timer_add(10, _thaw_third_anim, anim);
50 ecore_main_loop_begin();
51
52 evas_object_del(rect);
53 ecore_evas_free(ee);
54 ecore_animator_del(anim);
55 ecore_evas_shutdown();
56
57 return 0;
58}
59
60static Eina_Bool
61_advance_frame(void *data, double pos)
62{
63 double frame = pos;
64 frame = ecore_animator_pos_map(pos, ECORE_POS_MAP_SPRING, 1.2, 15);
65
66 evas_object_resize(data, 50 * (1 + frame), 50 * (1 + frame));
67 evas_object_move(data, 100 * frame, 100 * frame);
68 evas_object_color_set(data, 255 * frame, 0, 255 * (1 - frame), 255);
69 return ECORE_CALLBACK_RENEW;
70}
71
72static Eina_Bool
73_start_second_anim(void *data)
74{
75 ecore_animator_frametime_set(1. / 10);
76 ecore_animator_timeline_add(20, _advance_frame2, data);
77 return ECORE_CALLBACK_CANCEL;
78}
79
80static Eina_Bool
81_advance_frame2(void *data, double pos)
82{
83 double frame = pos;
84 frame = ecore_animator_pos_map(pos, ECORE_POS_MAP_BOUNCE, 1.2, 50);
85
86 evas_object_resize(data, 100 - (50 * frame), 100 - (50 * frame));
87 evas_object_move(data, 100 * (1 - frame), 100 * (1 - frame));
88 evas_object_color_set(data, 255 * (1 - frame), 0, 255 * frame, 255);
89 return ECORE_CALLBACK_RENEW;
90}
91
92static Eina_Bool
93_advance_frame3(void *data)
94{
95 static int x = 0;
96
97 if (x >= 250)
98 x = 0;
99 evas_object_move(data, ++x, 350);
100
101 return ECORE_CALLBACK_RENEW;
102}
103
104static Eina_Bool
105_freeze_third_anim(void *data)
106{
107 ecore_animator_freeze(data);
108 return ECORE_CALLBACK_CANCEL;
109}
110
111static Eina_Bool
112_thaw_third_anim(void *data)
113{
114 ecore_animator_thaw(data);
115 return ECORE_CALLBACK_CANCEL;
116}
117
diff --git a/unsorted/ecore/ecore_audio_custom.c b/unsorted/ecore/ecore_audio_custom.c
new file mode 100644
index 00000000..b0d26a1e
--- /dev/null
+++ b/unsorted/ecore/ecore_audio_custom.c
@@ -0,0 +1,87 @@
1// Compile with:
2// gcc -o ecore_audio_custom ecore_audio_custom.c `pkg-config --libs --cflags ecore ecore-audio`
3
4#include <stdio.h>
5#include <sys/types.h>
6#include <sys/stat.h>
7#include <termios.h>
8#include <unistd.h>
9#include <fcntl.h>
10#include <Ecore.h>
11#include <Ecore_Audio.h>
12#include <math.h>
13
14Eo *in = NULL;
15Eo *out = NULL;
16unsigned char volume = 255;
17
18
19int read_cb(void *data EINA_UNUSED, Eo *eo_obj, void *buf, int len)
20{
21 static long int phase1 = 0, phase2 = 0;
22 static int modulation = 0;
23
24 double volume;
25 float *val = buf;
26 int i;
27
28 ecore_audio_obj_volume_get(eo_obj, &volume);
29
30 for(i=0; i<len/4; i++, phase1++)
31 {
32 if (phase1 >= 44100/(440+modulation))
33 {
34 phase1 = 0;
35 modulation = sin(2 * M_PI * phase2 / 1000) * 100;
36 phase2++;
37 }
38
39 val[i] = sin(2 * M_PI * (440+modulation) * (phase1) / 44100.0) * volume;
40 }
41
42 return len;
43}
44
45Ecore_Audio_Vio vio = {
46 .read = read_cb,
47};
48
49int
50main(int argc, const char *argv[])
51{
52 Eina_Bool ret;
53
54 ecore_init();
55 ecore_audio_init();
56
57 ecore_app_args_set(argc, argv);
58
59 out = efl_add_ref(ECORE_AUDIO_OBJ_OUT_PULSE_CLASS, NULL);
60
61 in = efl_add_ref(ECORE_AUDIO_OBJ_IN_CLASS, NULL);
62 if (!in)
63 {
64 printf("error when creating ecore audio source.\n");
65 goto end;
66 }
67 efl_name_set(in, "wail");
68 ecore_audio_obj_in_samplerate_set(in, 44100);
69 ecore_audio_obj_in_channels_set(in, 1);
70 ecore_audio_obj_volume_set(in, 0.7);
71 ecore_audio_obj_vio_set(in, &vio, NULL, NULL);
72
73 ret = ecore_audio_obj_out_input_attach(out, in);
74 if (!ret) {
75 printf("Could not attach input");
76 goto end;
77 }
78
79 ecore_main_loop_begin();
80
81end:
82 ecore_audio_shutdown();
83 ecore_shutdown();
84
85 return 0;
86}
87
diff --git a/unsorted/ecore/ecore_audio_playback.c b/unsorted/ecore/ecore_audio_playback.c
new file mode 100644
index 00000000..c659f09d
--- /dev/null
+++ b/unsorted/ecore/ecore_audio_playback.c
@@ -0,0 +1,339 @@
1// Compile with:
2// gcc -o ecore_audio_playback ecore_audio_playback.c `pkg-config --libs --cflags ecore eina ecore-audio`
3
4#include <stdio.h>
5#include <string.h>
6#include <libgen.h>
7#include <sys/types.h>
8#include <sys/stat.h>
9#include <termios.h>
10#include <unistd.h>
11#include <fcntl.h>
12#include <Ecore.h>
13#include <Ecore_Audio.h>
14#include <Eina.h>
15
16Eo *out = NULL;
17double volume = 1;
18Eina_List *inputs = NULL;
19
20void
21handle_cmd(char *cmd, size_t bread)
22{
23 const char *name;
24 Eina_List *out_inputs, *input;
25 Eo *in;
26 Eina_Bool paused, ret;
27 double pos, length;
28 int min;
29
30 if (!out)
31 return;
32
33 ecore_audio_obj_out_inputs_get(out, &out_inputs);
34 EINA_LIST_FOREACH(out_inputs, input, in)
35 {
36 ecore_audio_obj_in_seek(in, 0, SEEK_CUR, &pos);
37 if (!strncmp(cmd, "<", bread))
38 ecore_audio_obj_in_seek(in, -10, SEEK_CUR, &pos);
39 else if (!strncmp(cmd, ">", bread))
40 ecore_audio_obj_in_seek(in, 10, SEEK_CUR, &pos);
41
42 min = pos / 60;
43
44 ecore_audio_obj_name_get(in, &name);
45 ecore_audio_obj_in_length_get(in, &length);
46 printf("Position: %2im %5.02fs (%0.2f%%) - %s\n", min, pos - min * 60, pos/length*100, name);
47
48 }
49
50 if (!strncmp(cmd, "p", bread))
51 {
52 }
53 else if (!strncmp(cmd, "n", bread))
54 {
55 in = eina_list_data_get(out_inputs);
56 ret = ecore_audio_obj_out_input_detach(out, in);
57 if (!ret)
58 printf("Could not detach input\n");
59
60 inputs = eina_list_remove(inputs, in);
61
62 if (eina_list_count(inputs) > 0)
63 {
64 in = (Eo *)eina_list_data_get(inputs);
65
66 ecore_audio_obj_name_get(in, &name);
67 ecore_audio_obj_in_length_get(in, &length);
68
69 printf("Start: %s (%0.2fs)\n", name, length);
70 ret = ecore_audio_obj_out_input_attach(out, in);
71 if (!ret)
72 printf("Could not attach input %s\n", name);
73 }
74 else
75 {
76 printf("Done\n");
77 ecore_main_loop_quit();
78 }
79 }
80 else if (!strncmp(cmd, "m", bread))
81 {
82 inputs = eina_list_remove(inputs, eina_list_data_get(inputs));
83 if (eina_list_count(inputs) > 0)
84 {
85 in = (Eo *)eina_list_data_get(inputs);
86
87 ecore_audio_obj_name_get(in, &name);
88 ecore_audio_obj_in_length_get(in, &length);
89
90 printf("Start: %s (%0.2fs)\n", name, length);
91 ret = ecore_audio_obj_out_input_attach(out, in);
92 if (!ret)
93 printf("Could not attach input %s\n", name);
94 }
95 }
96 else if (!strncmp(cmd, "l", bread))
97 {
98 EINA_LIST_FOREACH(out_inputs, input, in)
99 {
100 Eina_Bool loop;
101 ecore_audio_obj_in_looped_get(in, &loop);
102 ecore_audio_obj_name_get(in, &name);
103
104 printf("%s song %s\n", !loop?"Looping":"Not looping", name);
105 ecore_audio_obj_in_looped_set(in, !loop);
106 }
107 }
108 else if (!strncmp(cmd, "+", bread))
109 {
110 if (volume < 1.5)
111 volume += 0.01;
112 ecore_audio_obj_volume_set(out, volume);
113 printf("Volume: %3.0f%%\n", volume * 100);
114 }
115 else if (!strncmp(cmd, "-", bread))
116 {
117 if (volume > 0)
118 volume -= 0.01;
119 ecore_audio_obj_volume_set(out, volume);
120 printf("Volume: %3.0f%%\n", volume * 100);
121 }
122 else if (!strncmp(cmd, "*", bread))
123 {
124 double speed;
125 EINA_LIST_FOREACH(out_inputs, input, in)
126 {
127 ecore_audio_obj_in_speed_get(in, &speed);
128 if (speed < 2.0)
129 speed += 0.01;
130 ecore_audio_obj_in_speed_set(in, speed);
131 ecore_audio_obj_name_get(in, &name);
132 printf("Speed: %3.0f%% (%s)\n", speed * 100, name);
133 }
134 }
135 else if (!strncmp(cmd, "/", bread))
136 {
137 double speed;
138 EINA_LIST_FOREACH(out_inputs, input, in)
139 {
140 ecore_audio_obj_in_speed_get(in, &speed);
141 if (speed > 0.5)
142 speed -= 0.01;
143 ecore_audio_obj_in_speed_set(in, speed);
144 ecore_audio_obj_name_get(in, &name);
145 printf("Speed: %3.0f%% (%s)\n", speed * 100, name);
146 }
147 }
148 else if (!strncmp(cmd, " ", bread))
149 {
150 EINA_LIST_FOREACH(out_inputs, input, in)
151 {
152 ecore_audio_obj_paused_get(in, &paused);
153 ecore_audio_obj_name_get(in, &name);
154 ecore_audio_obj_in_remaining_get(in, &length);
155 printf("%s %s\n%0.2f remaining\n", !paused ? "Paused" : "Unpaused", name, length);
156 ecore_audio_obj_paused_set(in, !paused);
157 }
158 }
159 else if (!strncmp(cmd, "q", bread))
160 {
161 ecore_main_loop_quit();
162 }
163 else
164 printf("Unhandled cmd '%s'\n", cmd);
165
166}
167
168Eina_Bool
169handle_input(void *data EINA_UNUSED, Ecore_Fd_Handler *handler)
170{
171 size_t bread;
172 char buf[20];
173 int fd;
174
175 if (!ecore_main_fd_handler_active_get(handler, ECORE_FD_READ))
176 return EINA_TRUE;
177
178 fd = ecore_main_fd_handler_fd_get(handler);
179
180 bread = read(fd, buf, sizeof(buf));
181 if (bread == 0)
182 {
183 printf("Ctrl-D?\n");
184 ecore_main_loop_quit();
185
186 return EINA_FALSE;
187 }
188
189 handle_cmd(buf, bread);
190
191 return EINA_TRUE;
192}
193
194static void _play_finished(void *data EINA_UNUSED, const Efl_Event *event)
195{
196 const char *name;
197 Eina_Bool ret;
198
199 ecore_audio_obj_name_get(event->object, &name);
200 printf("Done: %s\n", name);
201
202 inputs = eina_list_remove(inputs, event->object);
203 ret = ecore_audio_obj_out_input_detach(out, event->object);
204 efl_unref(event->object);
205
206 if (!ret)
207 printf("Could not detach input %s\n", name);
208
209
210 if (eina_list_count(inputs) > 0)
211 {
212 const char *name;
213 Eo *in = (Eo *)eina_list_data_get(inputs);
214
215 ecore_audio_obj_name_get(in, &name);
216 printf("Start: %s\n", name);
217 ret = ecore_audio_obj_out_input_attach(out, in);
218 if (!ret)
219 printf("Could not attach input %s\n", name);
220 }
221 else
222 {
223 printf("Stream done\n");
224 ecore_main_loop_quit();
225 }
226
227 return EINA_TRUE;
228}
229
230int
231main(int argc, const char *argv[])
232{
233 int i, freq;
234
235 Eina_Bool ret;
236 struct termios tcorig, tcnew;
237 Eo *in;
238 char *tmp, *tmp2, *val;
239
240 if (argc < 2)
241 {
242 printf("Please provide a filename\n");
243 exit(EXIT_FAILURE);
244 }
245
246 ecore_init();
247 ecore_audio_init();
248
249 ecore_app_args_set(argc, argv);
250
251 for (i=1;i<argc;i++)
252 {
253 if (!strncmp(argv[i], "tone:", 5))
254 {
255 in = efl_add_ref(ECORE_AUDIO_OBJ_IN_TONE_CLASS, NULL);
256 if (!in)
257 {
258 printf("error when creating ecore audio source.\n");
259 goto end;
260 }
261 /* The name has the format "tone:freq=x,duration=y */
262 tmp = strdup(argv[i]);
263 val = strtok_r(tmp, ":", &tmp2);
264
265 while ((val = strtok_r(NULL, ",", &tmp2)) != NULL)
266 {
267 if (!strncmp(val, "freq=", 5)) {
268 freq = atoi(&val[5]);
269 efl_key_data_set(in, ECORE_AUDIO_ATTR_TONE_FREQ, &freq);
270 } else if (!strncmp(val, "duration=", 9)) {
271 ecore_audio_obj_in_length_set(in, atof(&val[9]));
272 }
273 }
274 free(tmp);
275 efl_name_set(in, argv[i]);
276 }
277 else
278 {
279 in = efl_add_ref(ECORE_AUDIO_OBJ_IN_SNDFILE_CLASS, NULL);
280 if (!in)
281 {
282 printf("error when creating ecore audio source.\n");
283 goto end;
284 }
285 tmp = strdup(argv[i]);
286 efl_name_set(in, basename(tmp));
287 free(tmp);
288 ret = ecore_audio_obj_source_set(in, argv[i]);
289 if (!ret) {
290 printf("Could not set %s as input\n", argv[i]);
291 continue;
292 }
293 }
294 efl_event_callback_add(in, ECORE_AUDIO_EV_IN_STOPPED, _play_finished, NULL);
295 inputs = eina_list_append(inputs, in);
296 }
297
298 const char *name;
299 double length;
300 in = (Eo *)eina_list_data_get(inputs);
301
302 if (!in)
303 return 1;
304
305 ecore_audio_obj_name_get(in, &name);
306 ecore_audio_obj_in_length_get(in, &length);
307
308 printf("Start: %s (%0.2fs)\n", name, length);
309
310 out = efl_add_ref(ECORE_AUDIO_OBJ_OUT_PULSE_CLASS, NULL);
311 ret = ecore_audio_obj_out_input_attach(out, in);
312 if (!ret)
313 printf("Could not attach input %s\n", name);
314
315
316 /* Disable canonical mode for stdin */
317 if (tcgetattr(0, &tcorig) == -1)
318 printf("Problem getting termcaps: %s\n", strerror(errno));
319
320 tcnew = tcorig;
321 tcnew.c_lflag &= ~(ICANON | ECHO);
322 if (tcsetattr(0, TCSANOW, &tcnew) == -1)
323 printf("Problem setting termcaps: %s\n", strerror(errno));
324
325 ecore_main_fd_handler_add(0, ECORE_FD_READ, handle_input, NULL, NULL, NULL);
326
327 ecore_main_loop_begin();
328
329end:
330 ecore_audio_shutdown();
331 ecore_shutdown();
332
333 /* Reset stdin */
334 if (tcsetattr(0, TCSANOW, &tcorig) == -1)
335 printf("Problem restoring termcaps: %s\n", strerror(errno));
336
337 return 0;
338}
339
diff --git a/unsorted/ecore/ecore_audio_to_ogg.c b/unsorted/ecore/ecore_audio_to_ogg.c
new file mode 100644
index 00000000..756e69a2
--- /dev/null
+++ b/unsorted/ecore/ecore_audio_to_ogg.c
@@ -0,0 +1,87 @@
1// Compile with:
2// gcc -o ecore_audio_to_ogg ecore_audio_to_ogg.c `pkg-config --libs --cflags ecore eina ecore-audio`
3
4#include <stdio.h>
5#include <libgen.h>
6#include <sys/types.h>
7#include <sys/stat.h>
8#include <unistd.h>
9#include <fcntl.h>
10#include <Eo.h>
11#include <Ecore.h>
12#include <Ecore_Audio.h>
13#include <Eina.h>
14
15double volume = 1;
16Eina_List *inputs = NULL;
17
18static void _play_finished(void *data EINA_UNUSED, const Efl_Event *event)
19{
20 const char *name;
21 Eo *out;
22
23 ecore_audio_obj_name_get(event->object, &name);
24 printf("Done: %s\n", name);
25
26 ecore_audio_obj_in_output_get(event->object, &out);
27 efl_unref(event->object);
28 efl_unref(out);
29
30 ecore_main_loop_quit();
31
32 return EINA_TRUE;
33}
34
35int
36main(int argc, char *argv[])
37{
38 Eo *out;
39 Eo *in;
40 Eina_Bool ret;
41
42 if (argc < 3)
43 {
44 printf("Usage: ./example <infile> <outfile>\n");
45 exit(EXIT_FAILURE);
46 }
47
48 ecore_init();
49 ecore_audio_init();
50
51
52 in = efl_add_ref(ECORE_AUDIO_OBJ_IN_SNDFILE_CLASS, NULL);
53 efl_name_set(in, basename(argv[1]));
54 ret = ecore_audio_obj_source_set(in, argv[1]);
55 if (!ret) {
56 printf("Could not set %s as input\n", argv[1]);
57 efl_unref(in);
58 return 1;
59 }
60
61 efl_event_callback_add(in, ECORE_AUDIO_EV_IN_STOPPED, _play_finished, NULL);
62
63 out = efl_add_ref(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL);
64 ret = ecore_audio_obj_source_set(out, argv[2]);
65 if (!ret) {
66 printf("Could not set %s as output\n", argv[2]);
67 efl_unref(in);
68 efl_unref(out);
69 return 1;
70 }
71
72 ret = ecore_audio_obj_out_input_attach(out, in);
73 if (!ret) {
74 printf("Could not attach input\n");
75 efl_unref(out);
76 efl_unref(in);
77 return 1;
78 }
79
80 ecore_main_loop_begin();
81
82 ecore_audio_shutdown();
83 ecore_shutdown();
84
85 return 0;
86}
87
diff --git a/unsorted/ecore/ecore_buffer_consumer_example.c b/unsorted/ecore/ecore_buffer_consumer_example.c
new file mode 100644
index 00000000..96f18a87
--- /dev/null
+++ b/unsorted/ecore/ecore_buffer_consumer_example.c
@@ -0,0 +1,192 @@
1#include <stdio.h>
2#include <Eina.h>
3#include <Ecore.h>
4#include <Ecore_Evas.h>
5#include <Ecore_Buffer.h>
6#include <Ecore_Buffer_Queue.h>
7#include <Evas.h>
8
9#ifdef DEBUG
10#define LOG(f, x...) printf("[CONSUMER|%30.30s|%04d] " f "\n", __func__, __LINE__, ##x)
11#else
12#define LOG(f, x...)
13#endif
14
15#define WIDTH 720
16#define HEIGHT 960
17
18typedef struct _Consumer_Data
19{
20 Ecore_Buffer_Consumer *consumer;
21 Ecore_Buffer *buffer;
22 Ecore_Job *render_job;
23 struct
24 {
25 Evas *e;
26 Ecore_Evas *ee;
27 Evas_Object *bg, *img;
28 } win;
29} Consumer_Data;
30
31const char *name = "ecore_buffer_queue_test";
32
33static void
34shutdown_all(void)
35{
36 ecore_buffer_queue_shutdown();
37 ecore_buffer_shutdown();
38 ecore_evas_shutdown();
39 ecore_shutdown();
40 eina_shutdown();
41}
42
43static Eina_Bool
44init_all(void)
45{
46 if (!eina_init()) goto err;
47 if (!ecore_init()) goto err;
48 if (!ecore_evas_init()) goto err;
49 if (!ecore_buffer_init()) goto err;
50 if (!ecore_buffer_queue_init()) goto err;
51
52 return EINA_TRUE;
53err:
54 shutdown_all();
55 return EINA_FALSE;
56}
57
58static void
59_cb_render_post(void *data, Evas *e EINA_UNUSED, void *event_info EINA_UNUSED)
60{
61 Consumer_Data *cd = (Consumer_Data *)data;
62
63 if (cd->buffer)
64 {
65 ecore_buffer_consumer_buffer_release(cd->consumer, cd->buffer);
66 cd->buffer = NULL;
67 }
68}
69
70static void
71_consumer_cb_render_job(void *data)
72{
73 Consumer_Data *cd = (Consumer_Data *)data;
74 void *pixel_data;
75 unsigned int w, h;
76
77 LOG("Startup - Render");
78
79 if (!(cd->buffer = ecore_buffer_consumer_buffer_dequeue(cd->consumer)))
80 {
81 LOG("Failed to dequeue buffer");
82 goto end;
83 }
84
85 LOG("Success to get Compositable Buffer, "
86 "Drawing it to Consumer's Canvas now... - buffer:%p", cd->buffer);
87 // Get pixel data and set it to object.
88 pixel_data = ecore_buffer_data_get(cd->buffer);
89 ecore_buffer_size_get(cd->buffer, &w, &h);
90 evas_object_image_data_set(cd->win.img, pixel_data);
91 evas_object_image_data_update_add(cd->win.img, 0, 0, w, h);
92
93 ecore_job_del(cd->render_job);
94 cd->render_job = NULL;
95
96end:
97 LOG("Done - Render");
98}
99
100static void
101_consumer_render_queue(Consumer_Data *cd)
102{
103 if (!cd) return;
104
105 LOG("Render Queue");
106
107 if (!cd->render_job)
108 cd->render_job = ecore_job_add(_consumer_cb_render_job, cd);
109}
110
111static void
112_cb_provider_add(Ecore_Buffer_Consumer *consumer EINA_UNUSED, void *data EINA_UNUSED)
113{
114 LOG("Connected with Provider");
115}
116
117static void
118_cb_provider_del(Ecore_Buffer_Consumer *consumer EINA_UNUSED, void *data EINA_UNUSED)
119{
120 LOG("Disconnected with Provider, Shutdown Consumer now.");
121 ecore_main_loop_quit();
122}
123
124static void
125_cb_buffer_enqueued(Ecore_Buffer_Consumer *consumer EINA_UNUSED, void *data)
126{
127 Consumer_Data *cd = (Consumer_Data *)data;
128
129 LOG("Buffer Enqueued");
130
131 _consumer_render_queue(cd);
132}
133
134int
135main(void)
136{
137 Consumer_Data *cd;
138 Evas_Object *o;
139 const int queue_size = 3;
140
141 if (!init_all())
142 {
143 LOG("Initializing failed");
144 return -1;
145 }
146
147 cd = (Consumer_Data *)calloc(1, sizeof(Consumer_Data));
148
149 if (!cd || !(cd->consumer = ecore_buffer_consumer_new(name, queue_size, WIDTH, HEIGHT)))
150 {
151 LOG("Failed to create consumer");
152 goto shutdown;
153 }
154
155 ecore_buffer_consumer_provider_add_cb_set(cd->consumer, _cb_provider_add, cd);
156 ecore_buffer_consumer_provider_del_cb_set(cd->consumer, _cb_provider_del, cd);
157 ecore_buffer_consumer_buffer_enqueued_cb_set(cd->consumer, _cb_buffer_enqueued, cd);
158
159 cd->win.ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
160 cd->win.e = ecore_evas_get(cd->win.ee);
161
162 o = evas_object_rectangle_add(cd->win.e);
163 evas_object_move(o, 0, 0);
164 evas_object_resize(o, WIDTH, HEIGHT);
165 evas_object_color_set(o, 255, 0, 0, 255);
166 evas_object_show(o);
167 cd->win.bg = o;
168
169 o = evas_object_image_add(cd->win.e);
170 evas_object_image_fill_set(o, 0, 0, WIDTH, HEIGHT);
171 evas_object_image_size_set(o, WIDTH, HEIGHT);
172
173 evas_object_move(o, 0, 0);
174 evas_object_resize(o, WIDTH, HEIGHT);
175 evas_object_show(o);
176 cd->win.img = o;
177
178 ecore_evas_show(cd->win.ee);
179
180 evas_event_callback_add(cd->win.e, EVAS_CALLBACK_RENDER_POST, _cb_render_post, cd);
181
182 ecore_main_loop_begin();
183
184shutdown:
185 if (cd->win.ee) ecore_evas_free(cd->win.ee);
186 if (cd->buffer) ecore_buffer_consumer_buffer_release(cd->consumer, cd->buffer);
187 if (cd->consumer) ecore_buffer_consumer_free(cd->consumer);
188 free(cd);
189
190 shutdown_all();
191 return 0;
192}
diff --git a/unsorted/ecore/ecore_buffer_example.c b/unsorted/ecore/ecore_buffer_example.c
new file mode 100644
index 00000000..7ceeb171
--- /dev/null
+++ b/unsorted/ecore/ecore_buffer_example.c
@@ -0,0 +1,128 @@
1#include <stdio.h>
2#include <Eina.h>
3#include <Ecore.h>
4#include <Ecore_Evas.h>
5#include <Evas.h>
6#include <Ecore_Buffer.h>
7#include <Ecore_Buffer_Queue.h>
8
9#define WIDTH 720
10#define HEIGHT 960
11
12struct _Window
13{
14 Evas *e;
15 Ecore_Evas *ee;
16 Evas_Object *bg, *img;
17 Ecore_Buffer *buffer;
18};
19
20struct _Window win;
21Eina_List *hdls;
22
23static void
24paint_pixels(void *image, int padding, int width, int height, uint32_t time)
25{
26 const int halfh = padding + (height - padding * 2) / 2;
27 const int halfw = padding + (width - padding * 2) / 2;
28 int ir, or;
29 uint32_t *pixel = image;
30 int y;
31
32 /* squared radii thresholds */
33 or = (halfw < halfh ? halfw : halfh) - 8;
34 ir = or - 32;
35 or *= or;
36 ir *= ir;
37
38 pixel += padding * width;
39 for (y = padding; y < height - padding; y++) {
40 int x;
41 int y2 = (y - halfh) * (y - halfh);
42
43 pixel += padding;
44 for (x = padding; x < width - padding; x++) {
45 uint32_t v;
46
47 /* squared distance from center */
48 int r2 = (x - halfw) * (x - halfw) + y2;
49
50 if (r2 < ir)
51 v = (r2 / 32 + time / 64) * 0x0080401;
52 else if (r2 < or)
53 v = (y + time / 32) * 0x0080401;
54 else
55 v = (x + time / 16) * 0x0080401;
56 v &= 0x00ffffff;
57 v |= 0xff000000;
58
59 *pixel++ = v;
60 }
61
62 pixel += padding;
63 }
64}
65
66static void
67_cb_post_render(Ecore_Evas *ee EINA_UNUSED)
68{
69 void *data;
70
71 // Get pixel data and update.
72 data = ecore_buffer_data_get(win.buffer);
73 paint_pixels(data, 0, WIDTH, HEIGHT, ecore_loop_time_get() * 1000);
74 evas_object_image_data_set(win.img, data);
75 evas_object_image_data_update_add(win.img, 0, 0, WIDTH, HEIGHT);
76}
77
78int
79main(void)
80{
81 Evas_Object *o;
82 void *data;
83
84 eina_init();
85 ecore_init();
86 ecore_evas_init();
87 ecore_buffer_init();
88
89 win.ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
90 win.e = ecore_evas_get(win.ee);
91
92 o = evas_object_rectangle_add(win.e);
93 evas_object_move(o, 0, 0);
94 evas_object_resize(o, WIDTH, HEIGHT);
95 evas_object_color_set(o, 255, 0, 0, 255);
96 evas_object_show(o);
97 win.bg = o;
98
99 o = evas_object_image_add(win.e);
100 evas_object_image_fill_set(o, 0, 0, WIDTH, HEIGHT);
101 evas_object_image_size_set(o, WIDTH, HEIGHT);
102
103 evas_object_move(o, 0, 0);
104 evas_object_resize(o, WIDTH, HEIGHT);
105 evas_object_show(o);
106 win.img = o;
107
108 // Create buffer and drawing.
109 win.buffer = ecore_buffer_new("shm", WIDTH, HEIGHT, 0, 0);
110 data = ecore_buffer_data_get(win.buffer);
111 paint_pixels(data, 0, WIDTH, HEIGHT, 0);
112 evas_object_image_data_set(win.img, data);
113 evas_object_image_data_update_add(win.img, 0, 0, WIDTH, HEIGHT);
114
115 ecore_evas_show(win.ee);
116
117 ecore_evas_callback_post_render_set(win.ee, _cb_post_render);
118
119 ecore_main_loop_begin();
120
121 ecore_buffer_free(win.buffer);
122 ecore_buffer_shutdown();
123 ecore_evas_shutdown();
124 ecore_shutdown();
125 eina_shutdown();
126
127 return 0;
128}
diff --git a/unsorted/ecore/ecore_buffer_provider_example.c b/unsorted/ecore/ecore_buffer_provider_example.c
new file mode 100644
index 00000000..7b1d4333
--- /dev/null
+++ b/unsorted/ecore/ecore_buffer_provider_example.c
@@ -0,0 +1,274 @@
1#include <stdio.h>
2#include <Eina.h>
3#include <Ecore.h>
4#include <Ecore_Evas.h>
5#include <Ecore_Buffer.h>
6#include <Ecore_Buffer_Queue.h>
7#include <Evas.h>
8
9#ifdef DEBUG
10#define LOG(f, x...) printf("[PROVIDER|%30.30s|%04d] " f "\n", __func__, __LINE__, ##x)
11#else
12#define LOG(f, x...)
13#endif
14
15typedef struct _Provider_Data
16{
17 Ecore_Buffer_Provider *provider;
18 Ecore_Buffer *buffer;
19 Eina_List *buffer_list;
20 Ecore_Job *render_job;
21 Ecore_Idle_Enterer *post_render;
22 unsigned int w, h;
23} Provider_Data;
24
25const char *name = "ecore_buffer_queue_test";
26
27static void _provider_render_queue(Provider_Data *pd);
28
29static void
30shutdown_all(void)
31{
32 ecore_buffer_queue_shutdown();
33 ecore_buffer_shutdown();
34 ecore_evas_shutdown();
35 ecore_shutdown();
36 eina_shutdown();
37}
38
39static Eina_Bool
40init_all(void)
41{
42 if (!eina_init()) goto err;
43 if (!ecore_init()) goto err;
44 if (!ecore_evas_init()) goto err;
45 if (!ecore_buffer_init()) goto err;
46 if (!ecore_buffer_queue_init()) goto err;
47
48 return EINA_TRUE;
49err:
50 shutdown_all();
51 return EINA_FALSE;
52}
53
54Ecore_Buffer *
55_provider_buffer_get(Provider_Data *pd, unsigned int w, unsigned int h, unsigned int format)
56{
57 Ecore_Buffer *buffer = NULL;
58 Ecore_Buffer_Return ret;
59 unsigned int res_w, res_h, res_format;
60
61 LOG("Dequeue");
62 ret = ecore_buffer_provider_buffer_acquire(pd->provider, &buffer);
63
64 if (ret == ECORE_BUFFER_RETURN_NEED_ALLOC)
65 {
66 buffer = ecore_buffer_new("shm", w, h, format, 0);
67 pd->buffer_list = eina_list_append(pd->buffer_list, buffer);
68 LOG("No buffer in Queue, Create Buffer");
69 }
70 else if (ret == ECORE_BUFFER_RETURN_SUCCESS)
71 {
72 ecore_buffer_size_get(buffer, &res_w, &res_h);
73 res_format = ecore_buffer_format_get(buffer);
74 if ((res_w != w) || (res_h != h) || (res_format != format))
75 {
76 LOG("Need to Reallocate Buffer, Free it First: %p", buffer);
77 pd->buffer_list = eina_list_remove(pd->buffer_list, buffer);
78 ecore_buffer_free(buffer);
79
80 buffer = ecore_buffer_new("shm", w, h, format, 0);
81 pd->buffer_list = eina_list_append(pd->buffer_list, buffer);
82 LOG("Create Buffer: %p", buffer);
83 }
84 }
85
86 return buffer;
87}
88
89static void
90paint_pixels(void *image, int padding, int width, int height, uint32_t time)
91{
92 const int halfh = padding + (height - padding * 2) / 2;
93 const int halfw = padding + (width - padding * 2) / 2;
94 int ir, or;
95 uint32_t *pixel = image;
96 int y;
97
98 /* squared radii thresholds */
99 or = (halfw < halfh ? halfw : halfh) - 8;
100 ir = or - 32;
101 or *= or;
102 ir *= ir;
103
104 pixel += padding * width;
105 for (y = padding; y < height - padding; y++) {
106 int x;
107 int y2 = (y - halfh) * (y - halfh);
108
109 pixel += padding;
110 for (x = padding; x < width - padding; x++) {
111 uint32_t v;
112
113 /* squared distance from center */
114 int r2 = (x - halfw) * (x - halfw) + y2;
115
116 if (r2 < ir)
117 v = (r2 / 32 + time / 64) * 0x0080401;
118 else if (r2 < or)
119 v = (y + time / 32) * 0x0080401;
120 else
121 v = (x + time / 16) * 0x0080401;
122 v &= 0x00ffffff;
123 v |= 0xff000000;
124
125 *pixel++ = v;
126 }
127
128 pixel += padding;
129 }
130}
131
132static Eina_Bool
133_cb_render_post(void *data)
134{
135 Provider_Data *pd = (Provider_Data *)data;
136 Ecore_Buffer *next_buffer = NULL;
137
138 LOG("Startup - Post Render");
139
140 LOG("Submit Buffer - buffer: %p", pd->buffer);
141 ecore_buffer_provider_buffer_enqueue(pd->provider, pd->buffer);
142 pd->buffer = NULL;
143
144 next_buffer = _provider_buffer_get(pd, pd->w, pd->h, ECORE_BUFFER_FORMAT_XRGB8888);
145 if (next_buffer)
146 {
147 LOG("Drawable Buffer is Existed, ADD Render job again - buffer:%p", next_buffer);
148 pd->buffer = next_buffer;
149 _provider_render_queue(pd);
150 }
151
152 ecore_idle_enterer_del(pd->post_render);
153 pd->post_render = NULL;
154
155 LOG("Done - Post Render");
156
157 return ECORE_CALLBACK_RENEW;
158}
159
160static void
161_provider_cb_render_job(void *data)
162{
163 Provider_Data *pd = (Provider_Data *)data;
164
165 LOG("Startup - Render");
166
167 if (!pd->buffer)
168 {
169 pd->buffer = _provider_buffer_get(pd,
170 pd->w, pd->h, ECORE_BUFFER_FORMAT_XRGB8888);
171 }
172
173 if (pd->buffer)
174 {
175 void *data;
176
177 LOG("Success to get Drawable Buffer, Drawing now... - buffer:%p", pd->buffer);
178 // Drawing...
179 data = ecore_buffer_data_get(pd->buffer);
180 paint_pixels(data, 0, pd->w, pd->h, ecore_loop_time_get() * 1000);
181
182 if (!pd->post_render)
183 {
184 pd->post_render =
185 ecore_idle_enterer_before_add(_cb_render_post, pd);
186 }
187 }
188
189 ecore_job_del(pd->render_job);
190 pd->render_job = NULL;
191}
192
193static void
194_provider_render_queue(Provider_Data *pd)
195{
196 if (!pd) return;
197
198 LOG("Render Queue");
199
200 if (!pd->render_job)
201 pd->render_job = ecore_job_add(_provider_cb_render_job, pd);
202}
203
204static void
205_cb_consumer_add(Ecore_Buffer_Provider *provider EINA_UNUSED, int queue_size EINA_UNUSED, int w, int h, void *data)
206{
207 Provider_Data *pd = (Provider_Data *)data;
208
209 LOG("Connected with Consumer, Now We can use Ecore_Buffer_Queue - queue_size:%d, geo(%dx%d)",
210 queue_size, w, h);
211
212 pd->w = w;
213 pd->h = h;
214
215 _provider_render_queue(pd);
216}
217
218static void
219_cb_consumer_del(Ecore_Buffer_Provider *provider EINA_UNUSED, void *data EINA_UNUSED)
220{
221 LOG("Disconnected with Consumer, Shutdown Provider now.");
222
223 ecore_main_loop_quit();
224}
225
226static void
227_cb_buffer_released(Ecore_Buffer_Provider *provider EINA_UNUSED, void *data)
228{
229 Provider_Data *pd = (Provider_Data *)data;
230
231 LOG("Buffer Enqueued");
232
233 _provider_render_queue(pd);
234}
235
236int
237main(void)
238{
239 Provider_Data *pd;
240
241 if (!init_all())
242 {
243 LOG("Initializing failed");
244 return -1;
245 }
246
247 pd = (Provider_Data *)calloc(1, sizeof(Provider_Data));
248
249 if (!pd || !(pd->provider = ecore_buffer_provider_new(name)))
250 {
251 LOG("Failed to create provider");
252 goto shutdown;
253 }
254
255 ecore_buffer_provider_consumer_add_cb_set(pd->provider, _cb_consumer_add, pd);
256 ecore_buffer_provider_consumer_del_cb_set(pd->provider, _cb_consumer_del, pd);
257 ecore_buffer_provider_buffer_released_cb_set(pd->provider, _cb_buffer_released, pd);
258
259 ecore_main_loop_begin();
260
261shutdown:
262 if (pd->buffer_list)
263 {
264 Ecore_Buffer *b;
265
266 EINA_LIST_FREE(pd->buffer_list, b)
267 ecore_buffer_free(b);
268 }
269 if (pd->provider) ecore_buffer_provider_free(pd->provider);
270 free(pd);
271
272 shutdown_all();
273 return 0;
274}
diff --git a/unsorted/ecore/ecore_client_bench.c b/unsorted/ecore/ecore_client_bench.c
new file mode 100644
index 00000000..3350aaea
--- /dev/null
+++ b/unsorted/ecore/ecore_client_bench.c
@@ -0,0 +1,82 @@
1//Compile with:
2// gcc -o ecore_client_bench ecore_client_bench.c `pkg-config --libs --cflags ecore ecore-con eina`
3
4#include <stdio.h>
5#include <Ecore.h>
6#include <Ecore_Con.h>
7
8/* Ecore_Con client example
9 * 2010 Mike Blumenkrantz
10 */
11
12#define NUM_CLIENTS 30000
13
14static Eina_Counter *counter;
15static int add = 0;
16static int del = 0;
17
18Eina_Bool
19_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Add *ev EINA_UNUSED)
20{
21 ++add;
22 printf("Connection #%i!\n", add);
23 if (add == NUM_CLIENTS)
24 ecore_main_loop_quit();
25
26 return ECORE_CALLBACK_RENEW;
27}
28
29Eina_Bool
30_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Add *ev EINA_UNUSED)
31{
32 ++del;
33 printf("Connection lost! #%i!\n", del);
34
35 return ECORE_CALLBACK_RENEW;
36}
37
38static void
39_spawn(void *data EINA_UNUSED)
40{
41 int x;
42
43 for (x = 0; x < NUM_CLIENTS; x++)
44 {
45// printf("Creating connection %i\n", x);
46 if (!ecore_con_server_connect(ECORE_CON_REMOTE_NODELAY, "127.0.0.1", 8080, NULL))
47 {
48 printf("CRITICAL ERROR!\n"
49 "Could not create connection #%i!\n", x);
50 exit(1);
51 }
52 }
53 printf("***Job done***\n");
54}
55
56int
57main(void)
58{
59 double done;
60 eina_init();
61 ecore_init();
62 ecore_con_init();
63
64 eina_log_domain_level_set("ecore_con", EINA_LOG_LEVEL_ERR);
65 eina_log_domain_level_set("eina", EINA_LOG_LEVEL_ERR);
66 counter = eina_counter_new("client");
67 eina_counter_start(counter);
68 done = ecore_time_get();
69
70 ecore_job_add(_spawn, NULL);
71
72/* set event handler for server connect */
73 ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, (Ecore_Event_Handler_Cb)_add, NULL);
74 ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, (Ecore_Event_Handler_Cb)_del, NULL);
75
76/* start client */
77 ecore_main_loop_begin();
78 eina_counter_stop(counter, 1);
79 printf("\nTime elapsed for %i connections: %f seconds\n%s", NUM_CLIENTS, ecore_time_get() - done, eina_counter_dump(counter));
80 return 0;
81}
82
diff --git a/unsorted/ecore/ecore_compose_get_example.c b/unsorted/ecore/ecore_compose_get_example.c
new file mode 100644
index 00000000..b36fd018
--- /dev/null
+++ b/unsorted/ecore/ecore_compose_get_example.c
@@ -0,0 +1,202 @@
1/* gcc -g -Wall -o ecore_compose_get_example ecore_compose_get_example.c `pkg-config --cflags --libs ecore-input ecore-evas ecore evas eina` */
2
3#include <stdio.h>
4
5#include <Eina.h>
6#include <Evas.h>
7#include <Ecore.h>
8#include <Ecore_Evas.h>
9
10/******* begin 1 : Ecore compose stuff *******/
11
12#include <Ecore_Input.h>
13
14typedef struct
15{
16 Eina_List *seq;
17 Eina_Bool composing;
18} Data;
19
20static void
21_data_reset(Data *d)
22{
23 char *str;
24
25 EINA_LIST_FREE(d->seq, str) eina_stringshare_del(str);
26 d->composing = EINA_FALSE;
27}
28
29static Eina_Bool
30_is_modifier(const char *key)
31{
32 if ((!strncmp(key, "Shift", 5)) ||
33 (!strncmp(key, "Control", 7)) ||
34 (!strncmp(key, "Alt", 3)) ||
35 (!strncmp(key, "Meta", 4)) ||
36 (!strncmp(key, "Super", 5)) ||
37 (!strncmp(key, "Hyper", 5)) ||
38 (!strcmp(key, "Scroll_Lock")) ||
39 (!strcmp(key, "Num_Lock")) ||
40 (!strcmp(key, "Caps_Lock")))
41 return EINA_TRUE;
42 return EINA_FALSE;
43}
44
45/******* end 1 : Ecore compose stuff *******/
46
47static void
48_key_down_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
49{
50 Evas_Event_Key_Down *ev = (Evas_Event_Key_Down *)event;
51 int alt;
52 int shift;
53 int ctrl;
54
55 alt = evas_key_modifier_is_set(ev->modifiers, "Alt");
56 shift = evas_key_modifier_is_set(ev->modifiers, "Shift");
57 ctrl = evas_key_modifier_is_set(ev->modifiers, "Control");
58
59 printf("down : keyname: %s key: %s compose: **%s** string: **%s** [%zu] %d (%d:%d:%d)\n",
60 ev->keyname, ev->key, ev->string, ev->compose, (ev->compose) ? strlen(ev->compose) : (size_t)-1, (ev->compose) ? *(ev->compose) : -1,
61 alt, shift, ctrl);
62}
63
64static void
65_key_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
66{
67 Evas_Event_Key_Up *ev;
68 int alt;
69 int shift;
70 int ctrl;
71
72 ev = (Evas_Event_Key_Up *)event;
73
74 alt = evas_key_modifier_is_set(ev->modifiers, "Alt");
75 shift = evas_key_modifier_is_set(ev->modifiers, "Shift");
76 ctrl = evas_key_modifier_is_set(ev->modifiers, "Control");
77
78 printf("up : keyname: %s key: %s string: %s %d (%d:%d:%d)\n",
79 ev->keyname, ev->key, ev->compose, (ev->compose) ? *(ev->compose) : -1,
80 alt, shift, ctrl);
81
82 if (!alt && !shift)
83 {
84 if (!strcmp(ev->key, "q"))
85 ecore_main_loop_quit();
86 }
87
88/******* begin 2 : Ecore compose stuff *******/
89
90 {
91 Data *d;
92 char *compres = NULL;
93 char *string = NULL;
94 Ecore_Compose_State state;
95 Eina_Bool free_string = EINA_FALSE;
96
97 d = (Data *)data;
98 if (!d->composing)
99 {
100 _data_reset(d);
101 d->seq = eina_list_append(d->seq, eina_stringshare_add(ev->key));
102 state = ecore_compose_get(d->seq, &compres);
103 if (state == ECORE_COMPOSE_MIDDLE) d->composing = EINA_TRUE;
104 else d->composing = EINA_FALSE;
105 if (!d->composing) _data_reset(d);
106 else goto end;
107 }
108 else
109 {
110 if (_is_modifier(ev->key)) goto end;
111 d->seq = eina_list_append(d->seq, eina_stringshare_add(ev->key));
112 state = ecore_compose_get(d->seq, &compres);
113 if (state == ECORE_COMPOSE_NONE) _data_reset(d);
114 else if (state == ECORE_COMPOSE_DONE)
115 {
116 _data_reset(d);
117 if (compres)
118 {
119 string = compres;
120 free_string = EINA_TRUE;
121 }
122 }
123 else goto end;
124 }
125
126 if (string)
127 {
128 printf(" ** string : %s %zu 0x%hhx%hhX\n", string, strlen(string), string[1], string[0]);
129 if (free_string)
130 free(string);
131 }
132 }
133
134/******* end 2 : Ecore compose stuff *******/
135
136 end:
137 return;
138}
139
140static void
141_del(Ecore_Evas *ee EINA_UNUSED)
142{
143 ecore_main_loop_quit();
144}
145
146int main()
147{
148 Ecore_Evas *ee;
149 Evas *evas;
150 Evas_Object *o;
151
152/******* begin 3 : Ecore compose stuff *******/
153 Data *d;
154
155 d = calloc(1, sizeof(Data));
156
157 if (!ecore_event_init())
158 goto ecore_event_init_fail;
159
160/******* end 3 : Ecore compose stuff *******/
161
162 if (!ecore_evas_init())
163 goto ecore_evas_init_fail;
164
165 ee = ecore_evas_new(NULL, 10, 10, 0, 0, NULL);
166 if (!ee)
167 {
168 ecore_evas_shutdown();
169 ecore_event_shutdown();
170 free(d);
171 return -1;
172 }
173 ecore_evas_callback_delete_request_set(ee, _del);
174
175 evas = ecore_evas_get(ee);
176
177 o = evas_object_rectangle_add(evas);
178 evas_object_color_set(o, 255, 0, 0, 255);
179 evas_object_move(o, 0, 0);
180 evas_object_resize(o, 480, 480);
181 evas_object_focus_set(o, EINA_TRUE);
182 evas_object_event_callback_add(o, EVAS_CALLBACK_KEY_DOWN,
183 _key_down_cb, d);
184 evas_object_event_callback_add(o, EVAS_CALLBACK_KEY_UP,
185 _key_up_cb, d);
186 evas_object_show(o);
187
188 ecore_evas_resize(ee, 480, 480);
189 ecore_evas_show(ee);
190
191 ecore_main_loop_begin();
192
193 ecore_evas_free(ee);
194 ecore_evas_shutdown();
195
196ecore_evas_init_fail:
197 ecore_event_shutdown();
198
199ecore_event_init_fail:
200 free(d);
201 return 0;
202}
diff --git a/unsorted/ecore/ecore_con_client_example.c b/unsorted/ecore/ecore_con_client_example.c
new file mode 100644
index 00000000..35371ca4
--- /dev/null
+++ b/unsorted/ecore/ecore_con_client_example.c
@@ -0,0 +1,362 @@
1//Compile with:
2// gcc -o ecore_con_client_example ecore_con_client_example.c `pkg-config --libs --cflags ecore ecore-con eina`
3
4#ifdef HAVE_CONFIG_H
5#include "config.h"
6#endif
7
8#include <stdio.h>
9#include <Ecore.h>
10#include <Ecore_Con.h>
11#include <Ecore_Getopt.h>
12
13/* Ecore_Con client example
14 * 2010 Mike Blumenkrantz
15 */
16
17static Ecore_Con_Server *svr;
18static int retval = EXIT_SUCCESS;
19static Eina_Bool do_flush = EINA_FALSE;
20static Eina_Bool single_message = EINA_FALSE;
21static Eina_Bool verify = EINA_TRUE;
22static Eina_Bool hostname_verify = EINA_TRUE;
23static Eina_Bool do_ssl_upgrade = EINA_FALSE;
24static char *starttls_local_command = NULL;
25
26static Eina_Bool
27_setup_ssl(void)
28{
29 Eina_Iterator *it;
30 const char *ca;
31
32 if (!(it = eina_file_ls("/etc/ssl/certs")))
33 {
34 retval = EXIT_FAILURE;
35 return EINA_FALSE;
36 }
37
38 /* add all the CAs */
39 EINA_ITERATOR_FOREACH(it, ca)
40 {
41 if (!ecore_con_ssl_server_cafile_add(svr, ca))
42 fprintf(stderr, "WARNING: could not load CA: %s!\n", ca);
43 eina_stringshare_del(ca);
44 }
45
46 eina_iterator_free(it);
47
48 if (verify)
49 ecore_con_ssl_server_verify(svr);
50
51 if (hostname_verify)
52 ecore_con_ssl_server_verify_basic(svr);
53
54 return EINA_TRUE;
55}
56
57static Eina_Bool
58_on_stdin(void *data EINA_UNUSED, Ecore_Fd_Handler *fdh EINA_UNUSED)
59{
60 char *line = NULL;
61#ifdef _WIN32
62 char lbuf[4096] = "";
63 ssize_t r;
64 if (fgets(lbuf, sizeof(lbuf), stdin) == NULL)
65 r = -1;
66 else
67 {
68 line = strdup(lbuf);
69 r = strlen(line);
70 }
71#else
72 size_t len = 0;
73 ssize_t r = getline(&line, &len, stdin);
74#endif
75
76 if (r < 0)
77 {
78 fprintf(stderr, "ERROR: could not read from stdin: %s\n", strerror(errno));
79 return ECORE_CALLBACK_CANCEL;
80 }
81
82 if (!svr)
83 fputs("WARNING: not connected to server, ignored input.\n", stderr);
84 else
85 {
86 size_t clen = strlen(starttls_local_command);
87 if (do_ssl_upgrade && ((size_t)r > clen) &&
88 (strncmp(line, starttls_local_command, clen) == 0) &&
89 (line[clen] == '\n' || line[clen] == '\r'))
90 {
91 printf("INFO: starting SSL communication...\n");
92
93 if (!ecore_con_ssl_server_upgrade(svr, ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT))
94 {
95 printf("ERROR: failed to upgrade to SSL!\n");
96 retval = EXIT_FAILURE;
97 ecore_con_server_del(svr);
98 ecore_main_loop_quit();
99 }
100
101#if 1
102 /* This just works since EFL v 1.19. Prior to this,
103 * upgrade couldn't get any extra setup, such as
104 * certificate or verification mode as OpenSSL would
105 * complain.
106 */
107 else if (!_setup_ssl())
108 {
109 retval = EXIT_FAILURE;
110 ecore_con_server_del(svr);
111 ecore_main_loop_quit();
112 }
113#endif
114
115 svr = NULL; /* it's considered dead until ECORE_CON_EVENT_SERVER_UPGRADE */
116 goto end;
117 }
118 ecore_con_server_send(svr, line, r);
119 printf("INFO: sent %zd bytes to server.\n", r);
120 if (do_flush) ecore_con_server_flush(svr);
121 if (single_message)
122 {
123 ecore_con_server_del(svr);
124 svr = NULL;
125 ecore_main_loop_quit();
126 }
127 }
128
129 end:
130 free(line);
131
132 return ECORE_CALLBACK_RENEW;
133}
134
135Eina_Bool
136_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Add *ev)
137{
138 printf("Server with ip %s connected!\n", ecore_con_server_ip_get(ev->server));
139 if (do_ssl_upgrade)
140 printf("INFO: Not sending 'hello!' in tcp+ssl mode. Use: %s to upgrade the connection\n", starttls_local_command);
141 else
142 ecore_con_server_send(ev->server, "hello!", strlen("hello!"));
143 if (do_flush) ecore_con_server_flush(ev->server);
144
145 return ECORE_CALLBACK_RENEW;
146}
147
148Eina_Bool
149_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Del *ev)
150{
151 printf("Lost server with ip %s!\n", ecore_con_server_ip_get(ev->server));
152 ecore_con_server_del(svr);
153 svr = NULL;
154 ecore_main_loop_quit();
155 return ECORE_CALLBACK_RENEW;
156}
157
158Eina_Bool
159_data(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Data *ev)
160{
161 printf("Received %i bytes from server:\n"
162 ">>>>>\n"
163 "%.*s\n"
164 ">>>>>\n",
165 ev->size,
166 ev->size, (const char *)ev->data);
167
168 return ECORE_CALLBACK_RENEW;
169}
170
171Eina_Bool
172_write_(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Write *ev)
173{
174 printf("Sent %d bytes to server\n", ev->size);
175 return ECORE_CALLBACK_RENEW;
176}
177
178Eina_Bool
179_error(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Error *ev)
180{
181 printf("Server Error: %s\n", ev->error);
182 return ECORE_CALLBACK_RENEW;
183}
184
185Eina_Bool
186_upgrade(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Upgrade *ev)
187{
188 printf("Server upgraded to SSL %p %s\n", ev->server, ecore_con_server_ip_get(ev->server));
189 svr = ev->server;
190 return ECORE_CALLBACK_RENEW;
191}
192
193static const char *types_strs[] = {
194 "tcp",
195 "udp",
196 "ssl",
197 "tcp+ssl",
198 "local-user",
199 "local-system",
200 NULL
201};
202
203static const Ecore_Getopt options = {
204 "ecore_con_client_example", /* program name */
205 NULL, /* usage line */
206 "1", /* version */
207 "(C) 2016 Enlightenment Project; 2010 Mike Blumenkrantz", /* copyright */
208 "BSD 2-Clause", /* license */
209 /* long description, may be multiline and contain \n */
210 "Example of ecore_con_server_connect()\n",
211 EINA_FALSE,
212 {
213 ECORE_GETOPT_CHOICE('t', "type", "Server type to use, defaults to 'tcp'", types_strs),
214 ECORE_GETOPT_STORE_TRUE('P', "no-proxy", "Do not use SOCKS proxy for remote connections."),
215
216 ECORE_GETOPT_STORE_TRUE('f', "flush", "Force a flush after every send call."),
217 ECORE_GETOPT_STORE_TRUE('m', "single-message", "Send a single message and delete the server."),
218
219 ECORE_GETOPT_STORE_STR('c', "starttls-local-command", "The string to use as a local command (it's NOT sent to remote peer) to upgrade connections when -t/--type=tcp+ssl. Defaults to STARTTLS, however if you need to send that to the server, change the string with this option."),
220
221 ECORE_GETOPT_STORE_FALSE(0, "no-verify", "Do not verify server's certificate"),
222 ECORE_GETOPT_STORE_FALSE(0, "no-hostname-verify", "Do not Verify server's hostname based on its certificate."),
223
224 ECORE_GETOPT_VERSION('V', "version"),
225 ECORE_GETOPT_COPYRIGHT('C', "copyright"),
226 ECORE_GETOPT_LICENSE('L', "license"),
227 ECORE_GETOPT_HELP('h', "help"),
228
229 ECORE_GETOPT_STORE_METAVAR_STR(0, NULL, "The server name.", "name"),
230 ECORE_GETOPT_STORE_METAVAR_INT(0, NULL, "The server port.", "port"),
231
232 ECORE_GETOPT_SENTINEL
233 }
234};
235
236int
237main(int argc, char *argv[])
238{
239 char *name = NULL;
240 char *type_choice = NULL;
241 Ecore_Con_Type type;
242 int port = -1;
243 Eina_Bool no_proxy = EINA_FALSE;
244 Eina_Bool quit_option = EINA_FALSE;
245 Ecore_Getopt_Value values[] = {
246 ECORE_GETOPT_VALUE_STR(type_choice),
247 ECORE_GETOPT_VALUE_BOOL(no_proxy),
248
249 ECORE_GETOPT_VALUE_BOOL(do_flush),
250 ECORE_GETOPT_VALUE_BOOL(single_message),
251
252 ECORE_GETOPT_VALUE_STR(starttls_local_command),
253
254 ECORE_GETOPT_VALUE_BOOL(verify),
255 ECORE_GETOPT_VALUE_BOOL(hostname_verify),
256
257 /* standard block to provide version, copyright, license and help */
258 ECORE_GETOPT_VALUE_BOOL(quit_option), /* -V/--version quits */
259 ECORE_GETOPT_VALUE_BOOL(quit_option), /* -C/--copyright quits */
260 ECORE_GETOPT_VALUE_BOOL(quit_option), /* -L/--license quits */
261 ECORE_GETOPT_VALUE_BOOL(quit_option), /* -h/--help quits */
262
263 /* positional argument */
264 ECORE_GETOPT_VALUE_STR(name),
265 ECORE_GETOPT_VALUE_INT(port),
266
267 ECORE_GETOPT_VALUE_NONE /* sentinel */
268 };
269 int args;
270
271 eina_init();
272 ecore_init();
273 ecore_con_init();
274
275 args = ecore_getopt_parse(&options, values, argc, argv);
276 if (args < 0)
277 {
278 fputs("ERROR: Could not parse command line options.\n", stderr);
279 retval = EXIT_FAILURE;
280 goto end;
281 }
282
283 if (quit_option) goto end;
284
285 args = ecore_getopt_parse_positional(&options, values, argc, argv, args);
286 if (args < 0)
287 {
288 fputs("ERROR: Could not parse positional arguments.\n", stderr);
289 retval = EXIT_FAILURE;
290 goto end;
291 }
292
293 if (!type_choice) type_choice = "tcp";
294
295 if (strcmp(type_choice, "tcp") == 0)
296 type = ECORE_CON_REMOTE_TCP;
297 else if (strcmp(type_choice, "udp") == 0)
298 type = ECORE_CON_REMOTE_UDP;
299 else if (strcmp(type_choice, "ssl") == 0)
300 type = ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT;
301 else if (strcmp(type_choice, "tcp+ssl") == 0)
302 {
303 type = ECORE_CON_REMOTE_TCP;
304 do_ssl_upgrade = EINA_TRUE;
305 }
306 else if (strcmp(type_choice, "local-user") == 0)
307 type = ECORE_CON_LOCAL_USER;
308 else if (strcmp(type_choice, "local-system") == 0)
309 type = ECORE_CON_LOCAL_SYSTEM;
310 else
311 {
312 fprintf(stderr, "ERROR: unsupported --type/-t '%s'\n", type_choice);
313 retval = EXIT_FAILURE;
314 goto end;
315 }
316