summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore/ecore.c63
-rw-r--r--src/lib/ecore/ecore_main.c2
-rw-r--r--src/lib/ecore/efl_core_proc_env.c2
-rw-r--r--src/lib/ecore/efl_loop.c6
-rw-r--r--src/lib/ecore_audio/Ecore_Audio.h43
-rw-r--r--src/lib/ecore_audio/ecore_audio.c8
-rw-r--r--src/lib/ecore_audio/meson.build3
-rw-r--r--src/lib/ecore_con/Ecore_Con.h261
-rw-r--r--src/lib/ecore_con/Ecore_Con_Eet.h71
-rw-r--r--src/lib/ecore_con/Efl_Net.h139
-rw-r--r--src/lib/ecore_con/ecore_con.c6
-rw-r--r--src/lib/ecore_con/ecore_con_api.h32
-rw-r--r--src/lib/ecore_con/ecore_con_eet.c42
-rw-r--r--src/lib/ecore_con/ecore_con_eet_base_eo.c18
-rw-r--r--src/lib/ecore_con/ecore_con_eet_base_eo.h20
-rw-r--r--src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c2
-rw-r--r--src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h2
-rw-r--r--src/lib/ecore_con/ecore_con_eet_client_obj_eo.h2
-rw-r--r--src/lib/ecore_con/ecore_con_eet_server_obj_eo.h2
-rw-r--r--src/lib/ecore_con/ecore_con_legacy.c108
-rw-r--r--src/lib/ecore_con/ecore_con_local.c2
-rw-r--r--src/lib/ecore_con/ecore_con_local_win32.c2
-rw-r--r--src/lib/ecore_con/ecore_con_socks.c28
-rw-r--r--src/lib/ecore_con/ecore_con_url.c82
-rw-r--r--src/lib/ecore_con/ecore_con_url_curl.c102
-rw-r--r--src/lib/ecore_con/meson.build7
-rw-r--r--src/lib/ecore_evas/ecore_evas.c13
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_kevent.c290
-rw-r--r--src/lib/ecore_file/meson.build2
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_display.c16
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_private.h25
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c69
-rw-r--r--src/lib/ecore_x/Ecore_X.h1
-rw-r--r--src/lib/ecore_x/ecore_x_resource.c4
-rw-r--r--src/lib/ecore_x/ecore_x_vsync.c61
-rw-r--r--src/lib/ector/Ector.h34
-rw-r--r--src/lib/ector/ector_api.h32
-rw-r--r--src/lib/ector/ector_main.c6
-rw-r--r--src/lib/ector/gl/Ector_GL.h29
-rw-r--r--src/lib/ector/gl/meson.build1
-rw-r--r--src/lib/ector/meson.build4
-rw-r--r--src/lib/ector/software/Ector_Software.h29
-rw-r--r--src/lib/ector/software/meson.build1
-rw-r--r--src/lib/edje/edje_data.c2
-rw-r--r--src/lib/edje/edje_entry.c2
-rw-r--r--src/lib/edje/edje_util.c1
-rw-r--r--src/lib/eet/eet_cipher.c15
-rw-r--r--src/lib/eeze/eeze_disk.c9
-rw-r--r--src/lib/eeze/eeze_net.c6
-rw-r--r--src/lib/eeze/eeze_udev_syspath.c15
-rw-r--r--src/lib/eeze/eeze_udev_walk.c9
-rw-r--r--src/lib/efreet/efreet_base.c47
-rw-r--r--src/lib/efreet/efreet_uri.c70
-rw-r--r--src/lib/efreet/meson.build5
-rw-r--r--src/lib/eina/Eina.h2
-rw-r--r--src/lib/eina/eina_abi.c4
-rw-r--r--src/lib/eina/eina_abstract_content.c22
-rw-r--r--src/lib/eina/eina_abstract_content.h26
-rw-r--r--src/lib/eina/eina_accessor.c18
-rw-r--r--src/lib/eina/eina_accessor.h18
-rw-r--r--src/lib/eina/eina_array.c16
-rw-r--r--src/lib/eina/eina_array.h14
-rw-r--r--src/lib/eina/eina_benchmark.c8
-rw-r--r--src/lib/eina/eina_benchmark.h8
-rw-r--r--src/lib/eina/eina_bezier.c18
-rw-r--r--src/lib/eina/eina_bezier.h18
-rw-r--r--src/lib/eina/eina_binbuf.c2
-rw-r--r--src/lib/eina/eina_binbuf.h46
-rw-r--r--src/lib/eina/eina_binbuf_template_c.x44
-rw-r--r--src/lib/eina/eina_binshare.c14
-rw-r--r--src/lib/eina/eina_binshare.h10
-rw-r--r--src/lib/eina/eina_convert.c20
-rw-r--r--src/lib/eina/eina_convert.h20
-rw-r--r--src/lib/eina/eina_counter.c10
-rw-r--r--src/lib/eina/eina_counter.h10
-rw-r--r--src/lib/eina/eina_cow.c16
-rw-r--r--src/lib/eina/eina_cow.h16
-rw-r--r--src/lib/eina/eina_cpu.c8
-rw-r--r--src/lib/eina/eina_cpu.h8
-rw-r--r--src/lib/eina/eina_crc.c2
-rw-r--r--src/lib/eina/eina_debug.c24
-rw-r--r--src/lib/eina/eina_debug.h28
-rw-r--r--src/lib/eina/eina_debug_timer.c4
-rw-r--r--src/lib/eina/eina_error.c16
-rw-r--r--src/lib/eina/eina_error.h16
-rw-r--r--src/lib/eina/eina_evlog.c8
-rw-r--r--src/lib/eina/eina_evlog.h8
-rw-r--r--src/lib/eina/eina_file.h68
-rw-r--r--src/lib/eina/eina_file_common.c30
-rw-r--r--src/lib/eina/eina_file_posix.c38
-rw-r--r--src/lib/eina/eina_file_win32.c36
-rw-r--r--src/lib/eina/eina_fp.c4
-rw-r--r--src/lib/eina/eina_fp.h4
-rw-r--r--src/lib/eina/eina_freeq.c24
-rw-r--r--src/lib/eina/eina_freeq.h24
-rw-r--r--src/lib/eina/eina_hamster.c2
-rw-r--r--src/lib/eina/eina_hamster.h2
-rw-r--r--src/lib/eina/eina_hash.c74
-rw-r--r--src/lib/eina/eina_hash.h74
-rw-r--r--src/lib/eina/eina_inarray.c52
-rw-r--r--src/lib/eina/eina_inarray.h52
-rw-r--r--src/lib/eina/eina_inline_array.x2
-rw-r--r--src/lib/eina/eina_inline_crc.x2
-rw-r--r--src/lib/eina/eina_inline_hash.x2
-rw-r--r--src/lib/eina/eina_inline_lock_posix.x52
-rw-r--r--src/lib/eina/eina_inline_safepointer.x4
-rw-r--r--src/lib/eina/eina_inline_unicode.x2
-rw-r--r--src/lib/eina/eina_inline_value.x10
-rw-r--r--src/lib/eina/eina_inlist.c34
-rw-r--r--src/lib/eina/eina_inlist.h34
-rw-r--r--src/lib/eina/eina_internal.h45
-rw-r--r--src/lib/eina/eina_iterator.c22
-rw-r--r--src/lib/eina/eina_iterator.h22
-rw-r--r--src/lib/eina/eina_lalloc.c8
-rw-r--r--src/lib/eina/eina_lalloc.h8
-rw-r--r--src/lib/eina/eina_list.c70
-rw-r--r--src/lib/eina/eina_list.h70
-rw-r--r--src/lib/eina/eina_lock.c36
-rw-r--r--src/lib/eina/eina_lock.h4
-rw-r--r--src/lib/eina/eina_log.c64
-rw-r--r--src/lib/eina/eina_log.h64
-rw-r--r--src/lib/eina/eina_magic.c10
-rw-r--r--src/lib/eina/eina_magic.h10
-rw-r--r--src/lib/eina/eina_main.c30
-rw-r--r--src/lib/eina/eina_main.h16
-rw-r--r--src/lib/eina/eina_matrix.c120
-rw-r--r--src/lib/eina/eina_matrix.h120
-rw-r--r--src/lib/eina/eina_matrixsparse.c36
-rw-r--r--src/lib/eina/eina_matrixsparse.h36
-rw-r--r--src/lib/eina/eina_mempool.c16
-rw-r--r--src/lib/eina/eina_mempool.h16
-rw-r--r--src/lib/eina/eina_mmap.c4
-rw-r--r--src/lib/eina/eina_mmap.h4
-rw-r--r--src/lib/eina/eina_module.c34
-rw-r--r--src/lib/eina/eina_module.h34
-rw-r--r--src/lib/eina/eina_prefix.c14
-rw-r--r--src/lib/eina/eina_prefix.h14
-rw-r--r--src/lib/eina/eina_promise.c56
-rw-r--r--src/lib/eina/eina_promise.h50
-rw-r--r--src/lib/eina/eina_quad.c8
-rw-r--r--src/lib/eina/eina_quad.h8
-rw-r--r--src/lib/eina/eina_quadtree.c24
-rw-r--r--src/lib/eina/eina_quadtree.h24
-rw-r--r--src/lib/eina/eina_quaternion.c84
-rw-r--r--src/lib/eina/eina_quaternion.h82
-rw-r--r--src/lib/eina/eina_rbtree.c12
-rw-r--r--src/lib/eina/eina_rbtree.h12
-rw-r--r--src/lib/eina/eina_rectangle.c26
-rw-r--r--src/lib/eina/eina_rectangle.h26
-rw-r--r--src/lib/eina/eina_safepointer.c8
-rw-r--r--src/lib/eina/eina_safepointer.h4
-rw-r--r--src/lib/eina/eina_safety_checks.c4
-rw-r--r--src/lib/eina/eina_safety_checks.h4
-rw-r--r--src/lib/eina/eina_sched.c2
-rw-r--r--src/lib/eina/eina_sched.h2
-rw-r--r--src/lib/eina/eina_simple_xml_parser.c46
-rw-r--r--src/lib/eina/eina_simple_xml_parser.h46
-rw-r--r--src/lib/eina/eina_slstr.c22
-rw-r--r--src/lib/eina/eina_slstr.h16
-rw-r--r--src/lib/eina/eina_str.c34
-rw-r--r--src/lib/eina/eina_str.h30
-rw-r--r--src/lib/eina/eina_strbuf.c22
-rw-r--r--src/lib/eina/eina_strbuf.h82
-rw-r--r--src/lib/eina/eina_strbuf_common.c6
-rw-r--r--src/lib/eina/eina_strbuf_template_c.x14
-rw-r--r--src/lib/eina/eina_stringshare.c18
-rw-r--r--src/lib/eina/eina_stringshare.h18
-rw-r--r--src/lib/eina/eina_thread.c20
-rw-r--r--src/lib/eina/eina_thread.h20
-rw-r--r--src/lib/eina/eina_thread_queue.c24
-rw-r--r--src/lib/eina/eina_thread_queue.h24
-rw-r--r--src/lib/eina/eina_tiler.c32
-rw-r--r--src/lib/eina/eina_tiler.h32
-rw-r--r--src/lib/eina/eina_tmpstr.c14
-rw-r--r--src/lib/eina/eina_tmpstr.h14
-rw-r--r--src/lib/eina/eina_types.h36
-rw-r--r--src/lib/eina/eina_unicode.c32
-rw-r--r--src/lib/eina/eina_unicode.h32
-rw-r--r--src/lib/eina/eina_ustrbuf.h50
-rw-r--r--src/lib/eina/eina_ustringshare.c12
-rw-r--r--src/lib/eina/eina_ustringshare.h12
-rw-r--r--src/lib/eina/eina_util.c4
-rw-r--r--src/lib/eina/eina_util.h4
-rw-r--r--src/lib/eina/eina_value.c146
-rw-r--r--src/lib/eina/eina_value.h96
-rw-r--r--src/lib/eina/eina_value_util.c4
-rw-r--r--src/lib/eina/eina_value_util.h4
-rw-r--r--src/lib/eina/eina_vpath.c8
-rw-r--r--src/lib/eina/eina_vpath.h4
-rw-r--r--src/lib/eina/eina_xattr.c36
-rw-r--r--src/lib/eina/eina_xattr.h36
-rw-r--r--src/lib/eina/meson.build2
-rw-r--r--src/lib/eio/Eio.h38
-rw-r--r--src/lib/eio/Eio_Legacy.h130
-rw-r--r--src/lib/eio/eio_dir.c10
-rw-r--r--src/lib/eio/eio_eet.c20
-rw-r--r--src/lib/eio/eio_file.c22
-rw-r--r--src/lib/eio/eio_main.c10
-rw-r--r--src/lib/eio/eio_map.c8
-rw-r--r--src/lib/eio/eio_monitor.c34
-rw-r--r--src/lib/eio/eio_monitor_poll.c4
-rw-r--r--src/lib/eio/eio_single.c12
-rw-r--r--src/lib/eio/eio_xattr.c18
-rw-r--r--src/lib/eio/meson.build3
-rw-r--r--src/lib/eldbus/eldbus_introspection.c1
-rw-r--r--src/lib/elementary/efl_ui_format.c22
-rw-r--r--src/lib/elementary/efl_ui_textpath.c10
-rw-r--r--src/lib/elementary/elc_fileselector.c2
-rw-r--r--src/lib/elementary/elc_fileselector_button.c2
-rw-r--r--src/lib/elementary/elc_fileselector_entry.c2
-rw-r--r--src/lib/elementary/elm_genlist.c2
-rw-r--r--src/lib/elementary/elm_gesture_layer.c2
-rw-r--r--src/lib/elementary/elm_glview.c3
-rw-r--r--src/lib/elementary/elm_interface_fileselector.c2
-rw-r--r--src/lib/elementary/elm_priv.h2
-rw-r--r--src/lib/elementary/elm_slider.c13
-rw-r--r--src/lib/elementary/elm_transit.c6
-rw-r--r--src/lib/emile/emile_cipher_openssl.c8
-rw-r--r--src/lib/emotion/Emotion.h193
-rw-r--r--src/lib/emotion/efl_canvas_video.eo8
-rw-r--r--src/lib/emotion/efl_canvas_video_eo.legacy.c4
-rw-r--r--src/lib/emotion/efl_canvas_video_eo.legacy.h4
-rw-r--r--src/lib/emotion/emotion_api.h32
-rw-r--r--src/lib/emotion/emotion_main.c18
-rw-r--r--src/lib/emotion/emotion_modules.c4
-rw-r--r--src/lib/emotion/emotion_modules.h89
-rw-r--r--src/lib/emotion/emotion_smart.c178
-rw-r--r--src/lib/emotion/emotion_webcam.c14
-rw-r--r--src/lib/emotion/meson.build4
-rw-r--r--src/lib/eo/Eo.h209
-rw-r--r--src/lib/eo/eo.c120
-rw-r--r--src/lib/eo/eo_add_fallback.c2
-rw-r--r--src/lib/eo/eo_base_class.c60
-rw-r--r--src/lib/eo/eo_internal.h37
-rw-r--r--src/lib/eo/meson.build6
-rw-r--r--src/lib/eolian/Eolian.h399
-rw-r--r--src/lib/eolian/Eolian_Aux.h41
-rw-r--r--src/lib/eolian/database_class_api.c38
-rw-r--r--src/lib/eolian/database_constructor_api.c6
-rw-r--r--src/lib/eolian/database_event_api.c16
-rw-r--r--src/lib/eolian/database_expr_api.c24
-rw-r--r--src/lib/eolian/database_function_api.c36
-rw-r--r--src/lib/eolian/database_function_parameter_api.c16
-rw-r--r--src/lib/eolian/database_implement_api.c18
-rw-r--r--src/lib/eolian/database_part_api.c4
-rw-r--r--src/lib/eolian/database_type_api.c66
-rw-r--r--src/lib/eolian/database_var_api.c8
-rw-r--r--src/lib/eolian/eo_parser.h3
-rw-r--r--src/lib/eolian/eolian.c6
-rw-r--r--src/lib/eolian/eolian_api.h34
-rw-r--r--src/lib/eolian/eolian_aux.c12
-rw-r--r--src/lib/eolian/eolian_database.c132
-rw-r--r--src/lib/eolian/eolian_priv.h1
-rw-r--r--src/lib/eolian/meson.build3
-rw-r--r--src/lib/ethumb_client/ethumb_client.c11
-rw-r--r--src/lib/evas/Efl_Canvas.h27
-rw-r--r--src/lib/evas/Evas.h29
-rw-r--r--src/lib/evas/Evas_Common.h150
-rw-r--r--src/lib/evas/Evas_GL.h73
-rw-r--r--src/lib/evas/Evas_Internal.h127
-rw-r--r--src/lib/evas/Evas_Legacy.h826
-rw-r--r--src/lib/evas/Evas_Loader.h35
-rw-r--r--src/lib/evas/cache/evas_cache.h112
-rw-r--r--src/lib/evas/cache/evas_cache_engine_image.c36
-rw-r--r--src/lib/evas/cache/evas_cache_image.c64
-rw-r--r--src/lib/evas/canvas/efl_canvas_event_grabber.c2
-rw-r--r--src/lib/evas/canvas/efl_canvas_event_grabber_eo.legacy.c4
-rw-r--r--src/lib/evas/canvas/efl_canvas_event_grabber_eo.legacy.h4
-rw-r--r--src/lib/evas/canvas/efl_canvas_group_eo.legacy.c10
-rw-r--r--src/lib/evas/canvas/efl_canvas_group_eo.legacy.h10
-rw-r--r--src/lib/evas/canvas/efl_canvas_object_eo.legacy.c38
-rw-r--r--src/lib/evas/canvas/efl_canvas_object_eo.legacy.h40
-rw-r--r--src/lib/evas/canvas/efl_canvas_textblock_eo.legacy.c22
-rw-r--r--src/lib/evas/canvas/efl_canvas_textblock_eo.legacy.h22
-rw-r--r--src/lib/evas/canvas/efl_canvas_textblock_internal.h37
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_container.c2
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_container_eo.legacy.c4
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_container_eo.legacy.h4
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_gradient.c8
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_gradient_linear.c10
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_gradient_radial.c14
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_node.c20
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_node_eo.legacy.c10
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_node_eo.legacy.h10
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_object.c18
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_object_eo.legacy.c12
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_object_eo.legacy.h16
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_shape.c72
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_shape_eo.legacy.c12
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_shape_eo.legacy.h12
-rw-r--r--src/lib/evas/canvas/efl_gfx_vg_value_provider.c14
-rw-r--r--src/lib/evas/canvas/efl_input_device.c14
-rw-r--r--src/lib/evas/canvas/efl_input_event.c2
-rw-r--r--src/lib/evas/canvas/efl_input_focus.c2
-rw-r--r--src/lib/evas/canvas/efl_input_hold.c2
-rw-r--r--src/lib/evas/canvas/efl_input_key.c2
-rw-r--r--src/lib/evas/canvas/efl_input_pointer.c4
-rw-r--r--src/lib/evas/canvas/efl_text_cursor_object.c4
-rw-r--r--src/lib/evas/canvas/evas_async_events.c12
-rw-r--r--src/lib/evas/canvas/evas_box_eo.c82
-rw-r--r--src/lib/evas/canvas/evas_box_eo.h102
-rw-r--r--src/lib/evas/canvas/evas_box_eo.legacy.c54
-rw-r--r--src/lib/evas/canvas/evas_box_eo.legacy.h54
-rw-r--r--src/lib/evas/canvas/evas_callbacks.c22
-rw-r--r--src/lib/evas/canvas/evas_canvas_eo.c134
-rw-r--r--src/lib/evas/canvas/evas_canvas_eo.h136
-rw-r--r--src/lib/evas/canvas/evas_canvas_eo.legacy.c128
-rw-r--r--src/lib/evas/canvas/evas_canvas_eo.legacy.h130
-rw-r--r--src/lib/evas/canvas/evas_clip.c6
-rw-r--r--src/lib/evas/canvas/evas_data.c6
-rw-r--r--src/lib/evas/canvas/evas_device.c44
-rw-r--r--src/lib/evas/canvas/evas_events.c54
-rw-r--r--src/lib/evas/canvas/evas_font_dir.c10
-rw-r--r--src/lib/evas/canvas/evas_gl.c44
-rw-r--r--src/lib/evas/canvas/evas_grid_eo.c20
-rw-r--r--src/lib/evas/canvas/evas_grid_eo.h22
-rw-r--r--src/lib/evas/canvas/evas_grid_eo.legacy.c20
-rw-r--r--src/lib/evas/canvas/evas_grid_eo.legacy.h20
-rw-r--r--src/lib/evas/canvas/evas_image_eo.h2
-rw-r--r--src/lib/evas/canvas/evas_image_legacy.c172
-rw-r--r--src/lib/evas/canvas/evas_key.c14
-rw-r--r--src/lib/evas/canvas/evas_key_grab.c4
-rw-r--r--src/lib/evas/canvas/evas_layer.c4
-rw-r--r--src/lib/evas/canvas/evas_line_eo.c4
-rw-r--r--src/lib/evas/canvas/evas_line_eo.h6
-rw-r--r--src/lib/evas/canvas/evas_line_eo.legacy.c4
-rw-r--r--src/lib/evas/canvas/evas_line_eo.legacy.h4
-rw-r--r--src/lib/evas/canvas/evas_main.c124
-rw-r--r--src/lib/evas/canvas/evas_map.c64
-rw-r--r--src/lib/evas/canvas/evas_name.c6
-rw-r--r--src/lib/evas/canvas/evas_object_box.c16
-rw-r--r--src/lib/evas/canvas/evas_object_grid.c6
-rw-r--r--src/lib/evas/canvas/evas_object_inform.c8
-rw-r--r--src/lib/evas/canvas/evas_object_intercept.c6
-rw-r--r--src/lib/evas/canvas/evas_object_line.c2
-rw-r--r--src/lib/evas/canvas/evas_object_main.c94
-rw-r--r--src/lib/evas/canvas/evas_object_polygon.c6
-rw-r--r--src/lib/evas/canvas/evas_object_rectangle.c2
-rw-r--r--src/lib/evas/canvas/evas_object_smart.c75
-rw-r--r--src/lib/evas/canvas/evas_object_smart_clipped.c6
-rw-r--r--src/lib/evas/canvas/evas_object_table.c6
-rw-r--r--src/lib/evas/canvas/evas_object_text.c24
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c210
-rw-r--r--src/lib/evas/canvas/evas_object_textgrid.c10
-rw-r--r--src/lib/evas/canvas/evas_out.c16
-rw-r--r--src/lib/evas/canvas/evas_render.c6
-rw-r--r--src/lib/evas/canvas/evas_smart.c16
-rw-r--r--src/lib/evas/canvas/evas_stack.x12
-rw-r--r--src/lib/evas/canvas/evas_stats.c16
-rw-r--r--src/lib/evas/canvas/evas_table_eo.c34
-rw-r--r--src/lib/evas/canvas/evas_table_eo.h36
-rw-r--r--src/lib/evas/canvas/evas_table_eo.legacy.c32
-rw-r--r--src/lib/evas/canvas/evas_table_eo.legacy.h32
-rw-r--r--src/lib/evas/canvas/evas_text_eo.c52
-rw-r--r--src/lib/evas/canvas/evas_text_eo.h54
-rw-r--r--src/lib/evas/canvas/evas_text_eo.legacy.c52
-rw-r--r--src/lib/evas/canvas/evas_text_eo.legacy.h52
-rw-r--r--src/lib/evas/canvas/evas_textblock_legacy.h186
-rw-r--r--src/lib/evas/canvas/evas_textgrid_eo.c20
-rw-r--r--src/lib/evas/canvas/evas_textgrid_eo.h22
-rw-r--r--src/lib/evas/canvas/evas_textgrid_eo.legacy.c20
-rw-r--r--src/lib/evas/canvas/evas_textgrid_eo.legacy.h20
-rw-r--r--src/lib/evas/canvas/evas_touch_point.c8
-rw-r--r--src/lib/evas/canvas/meson.build3
-rw-r--r--src/lib/evas/common/evas_blend.h2
-rw-r--r--src/lib/evas/common/evas_blend_main.c2
-rw-r--r--src/lib/evas/common/evas_blit_main.c4
-rw-r--r--src/lib/evas/common/evas_common_generic_cache.c12
-rw-r--r--src/lib/evas/common/evas_convert_color.c20
-rw-r--r--src/lib/evas/common/evas_convert_color.h20
-rw-r--r--src/lib/evas/common/evas_convert_colorspace.c15
-rw-r--r--src/lib/evas/common/evas_convert_colorspace.h12
-rw-r--r--src/lib/evas/common/evas_convert_main.c4
-rw-r--r--src/lib/evas/common/evas_convert_main.h4
-rw-r--r--src/lib/evas/common/evas_convert_yuv.h10
-rw-r--r--src/lib/evas/common/evas_cpu.c8
-rw-r--r--src/lib/evas/common/evas_draw.h48
-rw-r--r--src/lib/evas/common/evas_draw_main.c52
-rw-r--r--src/lib/evas/common/evas_font.h159
-rw-r--r--src/lib/evas/common/evas_font_compress.c4
-rw-r--r--src/lib/evas/common/evas_font_draw.c16
-rw-r--r--src/lib/evas/common/evas_font_draw.h16
-rw-r--r--src/lib/evas/common/evas_font_load.c62
-rw-r--r--src/lib/evas/common/evas_font_main.c40
-rw-r--r--src/lib/evas/common/evas_font_ot.c4
-rw-r--r--src/lib/evas/common/evas_font_ot.h5
-rw-r--r--src/lib/evas/common/evas_font_private.h2
-rw-r--r--src/lib/evas/common/evas_font_query.c22
-rw-r--r--src/lib/evas/common/evas_image.h86
-rw-r--r--src/lib/evas/common/evas_image_load.c15
-rw-r--r--src/lib/evas/common/evas_image_main.c54
-rw-r--r--src/lib/evas/common/evas_image_scalecache.c16
-rw-r--r--src/lib/evas/common/evas_line.h12
-rw-r--r--src/lib/evas/common/evas_line_main.c12
-rw-r--r--src/lib/evas/common/evas_map_image.c14
-rw-r--r--src/lib/evas/common/evas_map_image.h14
-rw-r--r--src/lib/evas/common/evas_op_blend/op_blend_master_sse3.c4
-rw-r--r--src/lib/evas/common/evas_pipe.c24
-rw-r--r--src/lib/evas/common/evas_pipe.h24
-rw-r--r--src/lib/evas/common/evas_polygon.h10
-rw-r--r--src/lib/evas/common/evas_polygon_main.c10
-rw-r--r--src/lib/evas/common/evas_rectangle.h12
-rw-r--r--src/lib/evas/common/evas_rectangle_main.c12
-rw-r--r--src/lib/evas/common/evas_scale_main.c6
-rw-r--r--src/lib/evas/common/evas_scale_main.h24
-rw-r--r--src/lib/evas/common/evas_scale_sample.c10
-rw-r--r--src/lib/evas/common/evas_scale_smooth.c6
-rw-r--r--src/lib/evas/common/evas_scale_smooth.h4
-rw-r--r--src/lib/evas/common/evas_scale_span.c12
-rw-r--r--src/lib/evas/common/evas_scale_span.h12
-rw-r--r--src/lib/evas/common/evas_text_utils.c12
-rw-r--r--src/lib/evas/common/evas_text_utils.h12
-rw-r--r--src/lib/evas/common/evas_thread_render.c6
-rw-r--r--src/lib/evas/common/evas_tiler.c48
-rw-r--r--src/lib/evas/common/language/evas_bidi_utils.c2
-rw-r--r--src/lib/evas/common/language/evas_bidi_utils.h2
-rw-r--r--src/lib/evas/evas_api.h32
-rw-r--r--src/lib/evas/file/evas_module.c16
-rw-r--r--src/lib/evas/filters/evas_filter_parser.c12
-rw-r--r--src/lib/evas/gesture/meson.build2
-rw-r--r--src/lib/evas/include/evas_common_private.h95
-rw-r--r--src/lib/evas/include/evas_filter.h41
-rw-r--r--src/lib/evas/include/evas_private.h58
-rw-r--r--src/lib/evas/include/meson.build1
-rw-r--r--src/lib/evas/main.c4
-rw-r--r--src/lib/evas/meson.build12
-rw-r--r--src/lib/evas/software_generic/meson.build1
-rw-r--r--src/lib/evil/evil_fcntl.c2
-rw-r--r--src/lib/evil/evil_mman.c4
-rw-r--r--src/lib/evil/evil_stdlib.h7
430 files changed, 6817 insertions, 6730 deletions
diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c
index 0d79b621b2..0b4ba4a8fd 100644
--- a/src/lib/ecore/ecore.c
+++ b/src/lib/ecore/ecore.c
@@ -32,8 +32,8 @@
32#include "ecore_private.h" 32#include "ecore_private.h"
33#include "../../static_libs/buildsystem/buildsystem.h" 33#include "../../static_libs/buildsystem/buildsystem.h"
34 34
35#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) 35#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) || defined(HAVE_MALLINFO2)
36#include <malloc.h> 36# include <malloc.h>
37#endif 37#endif
38 38
39#ifndef O_BINARY 39#ifndef O_BINARY
@@ -45,14 +45,19 @@ EAPI Ecore_Version *ecore_version = &_version;
45 45
46EAPI double _efl_startup_time = 0; 46EAPI double _efl_startup_time = 0;
47 47
48#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) 48#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) || defined(HAVE_MALLINFO2)
49#define KEEP_MAX(Global, Local) \ 49# define KEEP_MAX(Global, Local) \
50 if (Global < (Local)) \ 50 if (Global < (Local)) \
51 Global = Local; 51 Global = Local;
52 52
53static Eina_Bool _ecore_memory_statistic(void *data); 53static Eina_Bool _ecore_memory_statistic(void *data);
54# ifdef HAVE_MALLINFO2
55static size_t _ecore_memory_max_total = 0;
56static size_t _ecore_memory_max_free = 0;
57# else
54static int _ecore_memory_max_total = 0; 58static int _ecore_memory_max_total = 0;
55static int _ecore_memory_max_free = 0; 59static int _ecore_memory_max_free = 0;
60# endif
56static pid_t _ecore_memory_pid = 0; 61static pid_t _ecore_memory_pid = 0;
57#ifdef HAVE_MALLOC_INFO 62#ifdef HAVE_MALLOC_INFO
58static FILE *_ecore_memory_statistic_file = NULL; 63static FILE *_ecore_memory_statistic_file = NULL;
@@ -291,7 +296,7 @@ ecore_init(void)
291 if (_ecore_glib_always_integrate) ecore_main_loop_glib_integrate(); 296 if (_ecore_glib_always_integrate) ecore_main_loop_glib_integrate();
292#endif 297#endif
293 298
294#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) 299#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) || defined(HAVE_MALLINFO2)
295 if (getenv("ECORE_MEM_STAT")) 300 if (getenv("ECORE_MEM_STAT"))
296 { 301 {
297#ifdef HAVE_MALLOC_INFO 302#ifdef HAVE_MALLOC_INFO
@@ -432,16 +437,22 @@ ecore_shutdown(void)
432 437
433 _ecore_main_loop_shutdown(); 438 _ecore_main_loop_shutdown();
434 439
435#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) 440#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) || defined(HAVE_MALLINFO2)
436 if (getenv("ECORE_MEM_STAT")) 441 if (getenv("ECORE_MEM_STAT"))
437 { 442 {
438 _ecore_memory_statistic(NULL); 443 _ecore_memory_statistic(NULL);
439 444
445 #ifdef HAVE_MALLINFO2
446 ERR("[%i] Memory MAX total: %lu, free: %lu",
447 _ecore_memory_pid,
448 _ecore_memory_max_total,
449 _ecore_memory_max_free);
450 #else
440 ERR("[%i] Memory MAX total: %i, free: %i", 451 ERR("[%i] Memory MAX total: %i, free: %i",
441 _ecore_memory_pid, 452 _ecore_memory_pid,
442 _ecore_memory_max_total, 453 _ecore_memory_max_total,
443 _ecore_memory_max_free); 454 _ecore_memory_max_free);
444 455 #endif
445 456
446#ifdef HAVE_MALLOC_INFO 457#ifdef HAVE_MALLOC_INFO
447 fclose(_ecore_memory_statistic_file); 458 fclose(_ecore_memory_statistic_file);
@@ -963,20 +974,30 @@ _systemd_watchdog_cb(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED)
963} 974}
964#endif 975#endif
965 976
966#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) 977#if defined(HAVE_MALLINFO) || defined(HAVE_MALLOC_INFO) || defined(HAVE_MALLINFO2)
967static Eina_Bool 978static Eina_Bool
968_ecore_memory_statistic(EINA_UNUSED void *data) 979_ecore_memory_statistic(EINA_UNUSED void *data)
969{ 980{
970#ifdef HAVE_MALLOC_INFO 981#ifdef HAVE_MALLOC_INFO
971 static int frame = 0; 982 static int frame = 0;
972#endif 983#endif
973#ifdef HAVE_MALLINFO 984
985#if defined(HAVE_MALLINFO) || defined(HAVE_MALLINFO2)
986 Eina_Bool changed = EINA_FALSE;
987
988# if defined(HAVE_MALLINFO2)
989 struct mallinfo2 mi;
990 static size_t uordblks = 0;
991 static size_t fordblks = 0;
992
993 mi = mallinfo2();
994# else
974 struct mallinfo mi; 995 struct mallinfo mi;
975 static int uordblks = 0; 996 static int uordblks = 0;
976 static int fordblks = 0; 997 static int fordblks = 0;
977 Eina_Bool changed = EINA_FALSE;
978 998
979 mi = mallinfo(); 999 mi = mallinfo();
1000# endif
980 1001
981#define HAS_CHANGED(Global, Local) \ 1002#define HAS_CHANGED(Global, Local) \
982 if (Global != Local) \ 1003 if (Global != Local) \
@@ -989,14 +1010,24 @@ _ecore_memory_statistic(EINA_UNUSED void *data)
989 HAS_CHANGED(fordblks, mi.fordblks); 1010 HAS_CHANGED(fordblks, mi.fordblks);
990 1011
991 if (changed) 1012 if (changed)
992 ERR("[%i] Memory total: %i, free: %i", 1013 {
993 _ecore_memory_pid, 1014#ifdef HAVE_MALLINFO2
994 mi.uordblks, 1015 ERR("[%i] Memory total: %lu, free: %lu",
995 mi.fordblks); 1016 _ecore_memory_pid,
1017 mi.uordblks,
1018 mi.fordblks);
1019#else
1020 ERR("[%i] Memory total: %i, free: %i",
1021 _ecore_memory_pid,
1022 mi.uordblks,
1023 mi.fordblks);
1024#endif
1025 }
996 1026
997 KEEP_MAX(_ecore_memory_max_total, mi.uordblks); 1027 KEEP_MAX(_ecore_memory_max_total, mi.uordblks);
998 KEEP_MAX(_ecore_memory_max_free, mi.fordblks); 1028 KEEP_MAX(_ecore_memory_max_free, mi.fordblks);
999#endif 1029#endif
1030
1000#ifdef HAVE_MALLOC_INFO 1031#ifdef HAVE_MALLOC_INFO
1001 if (frame) fputs("\n", _ecore_memory_statistic_file); 1032 if (frame) fputs("\n", _ecore_memory_statistic_file);
1002 malloc_info(0, _ecore_memory_statistic_file); 1033 malloc_info(0, _ecore_memory_statistic_file);
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index efd5310029..a037916e3a 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -327,7 +327,7 @@ _ecore_main_pre_idle_exit(void)
327 // even if we never go idle, keep up flushing some of our freeq away 327 // even if we never go idle, keep up flushing some of our freeq away
328 // on every idle exit which may happen if we even never called idlers 328 // on every idle exit which may happen if we even never called idlers
329 // for now an idea but dont enforce 329 // for now an idea but dont enforce
330// eina_freeq_reduce(eina_freeq_main_get(), 128); 330 eina_freeq_reduce(eina_freeq_main_get(), 128);
331} 331}
332 332
333#ifdef HAVE_LIBUV 333#ifdef HAVE_LIBUV
diff --git a/src/lib/ecore/efl_core_proc_env.c b/src/lib/ecore/efl_core_proc_env.c
index f693df25af..9177d822f1 100644
--- a/src/lib/ecore/efl_core_proc_env.c
+++ b/src/lib/ecore/efl_core_proc_env.c
@@ -16,7 +16,7 @@
16#if defined (__FreeBSD__) || defined (__OpenBSD__) 16#if defined (__FreeBSD__) || defined (__OpenBSD__)
17# include <dlfcn.h> 17# include <dlfcn.h>
18static char ***_dl_environ; 18static char ***_dl_environ;
19#else 19#elif !defined(_MSC_VER)
20extern char **environ; 20extern char **environ;
21#endif 21#endif
22 22
diff --git a/src/lib/ecore/efl_loop.c b/src/lib/ecore/efl_loop.c
index 726a4b36a0..d85d5b1661 100644
--- a/src/lib/ecore/efl_loop.c
+++ b/src/lib/ecore/efl_loop.c
@@ -140,7 +140,11 @@ efl_loop_exit_code_process(Eina_Value *value)
140 140
141 eina_value_setup(&v, EINA_VALUE_TYPE_INT); 141 eina_value_setup(&v, EINA_VALUE_TYPE_INT);
142 if (!eina_value_convert(value, &v)) r = -1; 142 if (!eina_value_convert(value, &v)) r = -1;
143 else eina_value_get(&v, &r); 143 else
144 {
145 if (!eina_value_get(&v, &r))
146 r = -1;
147 }
144 } 148 }
145 else 149 else
146 { 150 {
diff --git a/src/lib/ecore_audio/Ecore_Audio.h b/src/lib/ecore_audio/Ecore_Audio.h
index 717c36c3fd..35b59d3c6e 100644
--- a/src/lib/ecore_audio/Ecore_Audio.h
+++ b/src/lib/ecore_audio/Ecore_Audio.h
@@ -4,30 +4,32 @@
4#include <Eina.h> 4#include <Eina.h>
5#include <Eo.h> 5#include <Eo.h>
6 6
7#ifdef EAPI 7#ifdef ECORE_AUDIO_API
8#undef EAPI 8#error ECORE_AUDIO_API should not be already defined
9#endif 9#endif
10 10
11#ifdef _WIN32 11#ifdef _WIN32
12# ifdef EFL_BUILD 12# ifndef ECORE_AUDIO_STATIC
13# ifdef DLL_EXPORT 13# ifdef ECORE_AUDIO_BUILD
14# define EAPI __declspec(dllexport) 14# define ECORE_AUDIO_API __declspec(dllexport)
15# else 15# else
16# define EAPI 16# define ECORE_AUDIO_API __declspec(dllimport)
17# endif 17# endif
18# else 18# else
19# define EAPI __declspec(dllimport) 19# define ECORE_AUDIO_API
20# endif 20# endif
21#else 21# define ECORE_AUDIO_API_WEAK
22# ifdef __GNUC__ 22#elif __GNUC__
23# if __GNUC__ >= 4 23# if __GNUC__ >= 4
24# define EAPI __attribute__ ((visibility("default"))) 24# define ECORE_AUDIO_API __attribute__ ((visibility("default")))
25# else 25# define ECORE_AUDIO_API_WEAK __attribute__ ((weak))
26# define EAPI
27# endif
28# else 26# else
29# define EAPI 27# define ECORE_AUDIO_API
28# define ECORE_AUDIO_API_WEAK
30# endif 29# endif
30#else
31# define ECORE_AUDIO_API
32# define ECORE_AUDIO_API_WEAK
31#endif 33#endif
32 34
33/** 35/**
@@ -176,7 +178,7 @@ typedef struct _Ecore_Audio_Vio Ecore_Audio_Vio;
176 * When Ecore_Audio is not used anymore, call ecore_audio_shutdown() 178 * When Ecore_Audio is not used anymore, call ecore_audio_shutdown()
177 * to shut down the Ecore_Audio library. 179 * to shut down the Ecore_Audio library.
178 */ 180 */
179EAPI int ecore_audio_init(void); 181ECORE_AUDIO_API int ecore_audio_init(void);
180 182
181/** 183/**
182 * @brief Shuts down the Ecore_Audio library. 184 * @brief Shuts down the Ecore_Audio library.
@@ -190,7 +192,7 @@ EAPI int ecore_audio_init(void);
190 * been called the same number of times than ecore_audio_init(). In that case 192 * been called the same number of times than ecore_audio_init(). In that case
191 * it shuts down all the services it uses. 193 * it shuts down all the services it uses.
192 */ 194 */
193EAPI int ecore_audio_shutdown(void); 195ECORE_AUDIO_API int ecore_audio_shutdown(void);
194 196
195//Legacy compatibility code 197//Legacy compatibility code
196 198
@@ -200,14 +202,14 @@ EAPI int ecore_audio_shutdown(void);
200 * @since 1.8 202 * @since 1.8
201 * 203 *
202 */ 204 */
203EAPI const char* ecore_audio_obj_name_get(const Efl_Object* obj); 205ECORE_AUDIO_API const char* ecore_audio_obj_name_get(const Efl_Object* obj);
204/** 206/**
205 * @brief Name of the object 207 * @brief Name of the object
206 * 208 *
207 * @since 1.8 209 * @since 1.8
208 * 210 *
209 */ 211 */
210EAPI void ecore_audio_obj_name_set(Efl_Object* obj, const char *name); 212ECORE_AUDIO_API void ecore_audio_obj_name_set(Efl_Object* obj, const char *name);
211 213
212#include <ecore_audio_obj.h> 214#include <ecore_audio_obj.h>
213#include <ecore_audio_obj_in.h> 215#include <ecore_audio_obj_in.h>
@@ -230,7 +232,4 @@ EAPI void ecore_audio_obj_name_set(Efl_Object* obj, const char *n
230} 232}
231#endif 233#endif
232 234
233#undef EAPI
234#define EAPI
235
236#endif 235#endif
diff --git a/src/lib/ecore_audio/ecore_audio.c b/src/lib/ecore_audio/ecore_audio.c
index be2e40c74c..91bf99b364 100644
--- a/src/lib/ecore_audio/ecore_audio.c
+++ b/src/lib/ecore_audio/ecore_audio.c
@@ -27,7 +27,7 @@ Ecore_Audio_Lib_Sndfile *ecore_audio_sndfile_lib = NULL;
27 27
28/* externally accessible functions */ 28/* externally accessible functions */
29 29
30EAPI int 30ECORE_AUDIO_API int
31ecore_audio_init(void) 31ecore_audio_init(void)
32{ 32{
33 33
@@ -60,7 +60,7 @@ ecore_audio_init(void)
60 return _ecore_audio_init_count; 60 return _ecore_audio_init_count;
61} 61}
62 62
63EAPI int 63ECORE_AUDIO_API int
64ecore_audio_shutdown(void) 64ecore_audio_shutdown(void)
65{ 65{
66 DBG("Ecore_Audio shutdown"); 66 DBG("Ecore_Audio shutdown");
@@ -263,13 +263,13 @@ ecore_audio_sndfile_lib_unload(void)
263#endif /* HAVE_SNDFILE */ 263#endif /* HAVE_SNDFILE */
264 264
265 265
266EAPI const char* 266ECORE_AUDIO_API const char*
267ecore_audio_obj_name_get(const Efl_Object* obj) 267ecore_audio_obj_name_get(const Efl_Object* obj)
268{ 268{
269 return efl_name_get(obj); 269 return efl_name_get(obj);
270} 270}
271 271
272EAPI void 272ECORE_AUDIO_API void
273ecore_audio_obj_name_set(Efl_Object* obj, const char *name) 273ecore_audio_obj_name_set(Efl_Object* obj, const char *name)
274{ 274{
275 efl_name_set(obj, name); 275 efl_name_set(obj, name);
diff --git a/src/lib/ecore_audio/meson.build b/src/lib/ecore_audio/meson.build
index 0376968a4b..95ffddf5b5 100644
--- a/src/lib/ecore_audio/meson.build
+++ b/src/lib/ecore_audio/meson.build
@@ -24,6 +24,7 @@ foreach eo_file : pub_eo_files
24 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'), 24 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
25 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'), 25 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
26 '-o', 'd:' + join_paths(meson.current_build_dir(), eo_file + '.d'), 26 '-o', 'd:' + join_paths(meson.current_build_dir(), eo_file + '.d'),
27 '-e', 'ECORE_AUDIO_API',
27 '-gchd', '@INPUT@']) 28 '-gchd', '@INPUT@'])
28endforeach 29endforeach
29 30
@@ -80,7 +81,7 @@ endif
80 81
81ecore_audio_lib = library('ecore_audio', 82ecore_audio_lib = library('ecore_audio',
82 ecore_audio_src, pub_eo_file_target, 83 ecore_audio_src, pub_eo_file_target,
83 c_args : package_c_args, 84 c_args : [package_c_args, '-DECORE_AUDIO_BUILD'],
84 dependencies: ecore_audio_pub_deps + ecore_audio_deps + ecore_audio_ext_deps, 85 dependencies: ecore_audio_pub_deps + ecore_audio_deps + ecore_audio_ext_deps,
85 include_directories : config_dir, 86 include_directories : config_dir,
86 install: true, 87 install: true,
diff --git a/src/lib/ecore_con/Ecore_Con.h b/src/lib/ecore_con/Ecore_Con.h
index 6155796200..2945b06a8f 100644
--- a/src/lib/ecore_con/Ecore_Con.h
+++ b/src/lib/ecore_con/Ecore_Con.h
@@ -15,31 +15,7 @@
15#include "Efl_Net.h" 15#include "Efl_Net.h"
16#endif 16#endif
17 17
18#ifdef EAPI 18#include <ecore_con_api.h>
19# undef EAPI
20#endif
21
22#ifdef _WIN32
23# ifdef EFL_BUILD
24# ifdef DLL_EXPORT
25# define EAPI __declspec(dllexport)
26# else
27# define EAPI
28# endif
29# else
30# define EAPI __declspec(dllimport)
31# endif
32#else
33# ifdef __GNUC__
34# if __GNUC__ >= 4
35# define EAPI __attribute__ ((visibility("default")))
36# else
37# define EAPI
38# endif
39# else
40# define EAPI
41# endif
42#endif
43 19
44/** 20/**
45 * @defgroup Ecore_Con_Group Ecore_Con - Connection functions 21 * @defgroup Ecore_Con_Group Ecore_Con - Connection functions
@@ -633,51 +609,51 @@ struct _Ecore_Con_Event_Url_Progress
633}; 609};
634 610
635/** A client has connected to the server. */ 611/** A client has connected to the server. */
636EAPI extern int ECORE_CON_EVENT_CLIENT_ADD; 612ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_ADD;
637/** A client has disconnected from the server. */ 613/** A client has disconnected from the server. */
638EAPI extern int ECORE_CON_EVENT_CLIENT_DEL; 614ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_DEL;
639/** A client experienced an error. 615/** A client experienced an error.
640 * @since 1.1 616 * @since 1.1
641 */ 617 */
642EAPI extern int ECORE_CON_EVENT_CLIENT_ERROR; 618ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_ERROR;
643/** A client connection has been upgraded to SSL. 619/** A client connection has been upgraded to SSL.
644 * @since 1.1 620 * @since 1.1
645 */ 621 */
646EAPI extern int ECORE_CON_EVENT_CLIENT_UPGRADE; 622ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_UPGRADE;
647/** A server was created. */ 623/** A server was created. */
648EAPI extern int ECORE_CON_EVENT_SERVER_ADD; 624ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_ADD;
649/** A server connection was lost. */ 625/** A server connection was lost. */
650EAPI extern int ECORE_CON_EVENT_SERVER_DEL; 626ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_DEL;
651/** A server experienced an error. 627/** A server experienced an error.
652 * @since 1.1 628 * @since 1.1
653 */ 629 */
654EAPI extern int ECORE_CON_EVENT_SERVER_ERROR; 630ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_ERROR;
655/** A server connection has been upgraded to SSL. 631/** A server connection has been upgraded to SSL.
656 * @since 1.1 632 * @since 1.1
657 */ 633 */
658EAPI extern int ECORE_CON_EVENT_SERVER_UPGRADE; 634ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_UPGRADE;
659/** A server connection has sent data to its client. 635/** A server connection has sent data to its client.
660 * @since 1.1 636 * @since 1.1
661 */ 637 */
662EAPI extern int ECORE_CON_EVENT_CLIENT_WRITE; 638ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_WRITE;
663/** A server connection object has sent data. 639/** A server connection object has sent data.
664 * @since 1.1 640 * @since 1.1
665 */ 641 */
666EAPI extern int ECORE_CON_EVENT_SERVER_WRITE; 642ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_WRITE;
667/** A client connected to the server has sent data. */ 643/** A client connected to the server has sent data. */
668EAPI extern int ECORE_CON_EVENT_CLIENT_DATA; 644ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_DATA;
669/** A server connection object has data.*/ 645/** A server connection object has data.*/
670EAPI extern int ECORE_CON_EVENT_SERVER_DATA; 646ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_DATA;
671/** A server connection has successfully negotiated an ip:port binding. 647/** A server connection has successfully negotiated an ip:port binding.
672 * @since 1.2 648 * @since 1.2
673 */ 649 */
674EAPI extern int ECORE_CON_EVENT_PROXY_BIND; 650ECORE_CON_API extern int ECORE_CON_EVENT_PROXY_BIND;
675/** A URL object has data. */ 651/** A URL object has data. */
676EAPI extern int ECORE_CON_EVENT_URL_DATA; 652ECORE_CON_API extern int ECORE_CON_EVENT_URL_DATA;
677/** A URL object has completed its transfer to and from the server and can be reused. */ 653/** A URL object has completed its transfer to and from the server and can be reused. */
678EAPI extern int ECORE_CON_EVENT_URL_COMPLETE; 654ECORE_CON_API extern int ECORE_CON_EVENT_URL_COMPLETE;
679/** A URL object has made progress in its transfer. */ 655/** A URL object has made progress in its transfer. */
680EAPI extern int ECORE_CON_EVENT_URL_PROGRESS; 656ECORE_CON_API extern int ECORE_CON_EVENT_URL_PROGRESS;
681 657
682/** 658/**
683 * @} 659 * @}
@@ -698,7 +674,7 @@ EAPI extern int ECORE_CON_EVENT_URL_PROGRESS;
698 * @note This function already calls ecore_init() internally, so you don't need 674 * @note This function already calls ecore_init() internally, so you don't need
699 * to call it explicitly. 675 * to call it explicitly.
700 */ 676 */
701EAPI int ecore_con_init(void); 677ECORE_CON_API int ecore_con_init(void);
702 678
703/** 679/**
704 * @brief Shuts down the Ecore_Con library. 680 * @brief Shuts down the Ecore_Con library.
@@ -707,7 +683,7 @@ EAPI int ecore_con_init(void);
707 * @note This function already calls ecore_shutdown() internally, so you don't 683 * @note This function already calls ecore_shutdown() internally, so you don't
708 * need to call it explicitly unless you called ecore_init() explicitly too. 684 * need to call it explicitly unless you called ecore_init() explicitly too.
709 */ 685 */
710EAPI int ecore_con_shutdown(void); 686ECORE_CON_API int ecore_con_shutdown(void);
711 687
712/** 688/**
713 * @brief Do an asynchronous DNS lookup. 689 * @brief Do an asynchronous DNS lookup.
@@ -727,7 +703,7 @@ EAPI int ecore_con_shutdown(void);
727 * @return @c true if the request did not fail to be set up, @c false 703 * @return @c true if the request did not fail to be set up, @c false
728 * otherwise. 704 * otherwise.
729 */ 705 */
730EAPI Eina_Bool ecore_con_lookup(const char *name, Ecore_Con_Dns_Cb done_cb, const void *data) EINA_ARG_NONNULL(1); 706ECORE_CON_API Eina_Bool ecore_con_lookup(const char *name, Ecore_Con_Dns_Cb done_cb, const void *data) EINA_ARG_NONNULL(1);
731 707
732/** 708/**
733 * @} 709 * @}
@@ -748,7 +724,7 @@ EAPI Eina_Bool ecore_con_lookup(const char *name, Ecore_Con_Dns_Cb done_cb, cons
748 * @c 2 if SSL is available and provided by openssl, 724 * @c 2 if SSL is available and provided by openssl,
749 * @c 0 if it is not available. 725 * @c 0 if it is not available.
750 */ 726 */
751EAPI int ecore_con_ssl_available_get(void); 727ECORE_CON_API int ecore_con_ssl_available_get(void);
752 728
753/** 729/**
754 * @brief Adds an SSL certificate for use in ecore_con functions. 730 * @brief Adds an SSL certificate for use in ecore_con functions.
@@ -760,7 +736,7 @@ EAPI int ecore_con_ssl_available_get(void);
760 * @param cert The path to the certificate. 736 * @param cert The path to the certificate.
761 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE. 737 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE.
762 */ 738 */
763EAPI Eina_Bool ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, const char *cert); 739ECORE_CON_API Eina_Bool ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, const char *cert);
764 740
765/** 741/**
766 * @brief Adds an SSL private key for use in ecore_con functions. 742 * @brief Adds an SSL private key for use in ecore_con functions.
@@ -772,7 +748,7 @@ EAPI Eina_Bool ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, cons
772 * @param key_file The path to the key file. 748 * @param key_file The path to the key file.
773 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE. 749 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE.
774 */ 750 */
775EAPI Eina_Bool ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, const char *key_file); 751ECORE_CON_API Eina_Bool ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, const char *key_file);
776 752
777/** 753/**
778 * @brief Adds an SSL CRL for use in ecore_con functions. 754 * @brief Adds an SSL CRL for use in ecore_con functions.
@@ -784,7 +760,7 @@ EAPI Eina_Bool ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, c
784 * @param crl_file The path to the CRL file. 760 * @param crl_file The path to the CRL file.
785 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE. 761 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE.
786 */ 762 */
787EAPI Eina_Bool ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const char *crl_file); 763ECORE_CON_API Eina_Bool ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const char *crl_file);
788 764
789/** 765/**
790 * @brief Adds an SSL CA file for use in ecore_con functions. 766 * @brief Adds an SSL CA file for use in ecore_con functions.
@@ -797,7 +773,7 @@ EAPI Eina_Bool ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const
797 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE. 773 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE.
798 * @note since 1.2, this function can load directories. 774 * @note since 1.2, this function can load directories.
799 */ 775 */
800EAPI Eina_Bool ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, const char *ca_file); 776ECORE_CON_API Eina_Bool ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, const char *ca_file);
801 777
802/** 778/**
803 * @brief Enables certificate verification on a server object. 779 * @brief Enables certificate verification on a server object.
@@ -806,7 +782,7 @@ EAPI Eina_Bool ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, co
806 * to enable verification of certificates against loaded certificates. 782 * to enable verification of certificates against loaded certificates.
807 * @param svr The server object 783 * @param svr The server object
808 */ 784 */
809EAPI void ecore_con_ssl_server_verify(Ecore_Con_Server *svr); 785ECORE_CON_API void ecore_con_ssl_server_verify(Ecore_Con_Server *svr);
810 786
811/** 787/**
812 * @brief Enables hostname-based certificate verification on a server object. 788 * @brief Enables hostname-based certificate verification on a server object.
@@ -818,7 +794,7 @@ EAPI void ecore_con_ssl_server_verify(Ecore_Con_Server *svr);
818 * ecore_con_server_add. 794 * ecore_con_server_add.
819 * @since 1.1 795 * @since 1.1
820 */ 796 */
821EAPI void ecore_con_ssl_server_verify_basic(Ecore_Con_Server *svr); 797ECORE_CON_API void ecore_con_ssl_server_verify_basic(Ecore_Con_Server *svr);
822 798
823/** 799/**
824 * @brief Sets the hostname to verify against in certificate verification. 800 * @brief Sets the hostname to verify against in certificate verification.
@@ -833,7 +809,7 @@ EAPI void ecore_con_ssl_server_verify_basic(Ecore_Con_Server *svr);
833 * @param name The hostname to verify against 809 * @param name The hostname to verify against
834 * @since 1.2 810 * @since 1.2
835 */ 811 */
836EAPI void ecore_con_ssl_server_verify_name_set(Ecore_Con_Server *svr, const char *name); 812ECORE_CON_API void ecore_con_ssl_server_verify_name_set(Ecore_Con_Server *svr, const char *name);
837 813
838/** 814/**
839 * @brief Gets the hostname to verify against in certificate verification. 815 * @brief Gets the hostname to verify against in certificate verification.
@@ -845,7 +821,7 @@ EAPI void ecore_con_ssl_server_verify_name_set(Ecore_Con_Server *sv
845 * @return The hostname which will be used 821 * @return The hostname which will be used
846 * @since 1.2 822 * @since 1.2
847 */ 823 */
848EAPI const char *ecore_con_ssl_server_verify_name_get(Ecore_Con_Server *svr); 824ECORE_CON_API const char *ecore_con_ssl_server_verify_name_get(Ecore_Con_Server *svr);
849 825
850/** 826/**
851 * @brief Upgrades a connection to a specified level of encryption. 827 * @brief Upgrades a connection to a specified level of encryption.
@@ -860,7 +836,7 @@ EAPI const char *ecore_con_ssl_server_verify_name_get(Ecore_Con_Server *sv
860 * @warning Setting a wrong value for @p ssl_type WILL mess up your program. 836 * @warning Setting a wrong value for @p ssl_type WILL mess up your program.
861 * @since 1.1 837 * @since 1.1
862 */ 838 */
863EAPI Eina_Bool ecore_con_ssl_server_upgrade(Ecore_Con_Server *svr, Ecore_Con_Type ssl_type); 839ECORE_CON_API Eina_Bool ecore_con_ssl_server_upgrade(Ecore_Con_Server *svr, Ecore_Con_Type ssl_type);
864 840
865/** 841/**
866 * @brief Upgrades a connection to a specified level of encryption. 842 * @brief Upgrades a connection to a specified level of encryption.
@@ -874,7 +850,7 @@ EAPI Eina_Bool ecore_con_ssl_server_upgrade(Ecore_Con_Server *svr, Ecore
874 * @warning Setting a wrong value for @p ssl_type WILL mess up your program. 850 * @warning Setting a wrong value for @p ssl_type WILL mess up your program.
875 * @since 1.1 851 * @since 1.1
876 */ 852 */
877EAPI Eina_Bool ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_Con_Type ssl_type); 853ECORE_CON_API Eina_Bool ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_Con_Type ssl_type);
878 854
879/** 855/**
880 * @} 856 * @}
@@ -898,7 +874,7 @@ EAPI Eina_Bool ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_
898 * @note This object NEVER needs to be explicitly freed. 874 * @note This object NEVER needs to be explicitly freed.
899 * @since 1.2 875 * @since 1.2
900 */ 876 */
901EAPI Ecore_Con_Socks *ecore_con_socks4_remote_add(const char *ip, int port, const char *username); 877ECORE_CON_API Ecore_Con_Socks *ecore_con_socks4_remote_add(const char *ip, int port, const char *username);
902 878
903/** 879/**
904 * @brief Finds a SOCKS v4 proxy in the proxy list. 880 * @brief Finds a SOCKS v4 proxy in the proxy list.
@@ -913,7 +889,7 @@ EAPI Ecore_Con_Socks *ecore_con_socks4_remote_add(const char *ip, int port, cons
913 * ecore_con_socks4_remote_add() should be used to return the actual object. 889 * ecore_con_socks4_remote_add() should be used to return the actual object.
914 * @since 1.2 890 * @since 1.2
915 */ 891 */
916EAPI Eina_Bool ecore_con_socks4_remote_exists(const char *ip, int port, const char *username); 892ECORE_CON_API Eina_Bool ecore_con_socks4_remote_exists(const char *ip, int port, const char *username);
917 893
918/** 894/**
919 * @brief Removes a SOCKS v4 proxy from the proxy list and delete it. 895 * @brief Removes a SOCKS v4 proxy from the proxy list and delete it.
@@ -927,7 +903,7 @@ EAPI Eina_Bool ecore_con_socks4_remote_exists(const char *ip, int port, c
927 * @warning Be aware that deleting a proxy which is being used WILL ruin your life. 903 * @warning Be aware that deleting a proxy which is being used WILL ruin your life.
928 * @since 1.2 904 * @since 1.2
929 */ 905 */
930EAPI void ecore_con_socks4_remote_del(const char *ip, int port, const char *username); 906ECORE_CON_API void ecore_con_socks4_remote_del(const char *ip, int port, const char *username);
931 907
932/** 908/**
933 * @brief Adds a SOCKS v5 proxy to the proxy list. 909 * @brief Adds a SOCKS v5 proxy to the proxy list.
@@ -942,7 +918,7 @@ EAPI void ecore_con_socks4_remote_del(const char *ip, int port, cons
942 * @note This object NEVER needs to be explicitly freed. 918 * @note This object NEVER needs to be explicitly freed.
943 * @since 1.2 919 * @since 1.2
944 */ 920 */
945EAPI Ecore_Con_Socks *ecore_con_socks5_remote_add(const char *ip, int port, const char *username, const char *password); 921ECORE_CON_API Ecore_Con_Socks *ecore_con_socks5_remote_add(const char *ip, int port, const char *username, const char *password);
946 922
947/** 923/**
948 * @brief Finds a SOCKS v5 proxy in the proxy list. 924 * @brief Finds a SOCKS v5 proxy in the proxy list.
@@ -958,7 +934,7 @@ EAPI Ecore_Con_Socks *ecore_con_socks5_remote_add(const char *ip, int port, cons
958 * ecore_con_socks5_remote_add() should be used to return the actual object. 934 * ecore_con_socks5_remote_add() should be used to return the actual object.
959 * @since 1.2 935 * @since 1.2
960 */ 936 */
961EAPI Eina_Bool ecore_con_socks5_remote_exists(const char *ip, int port, const char *username, const char *password); 937ECORE_CON_API Eina_Bool ecore_con_socks5_remote_exists(const char *ip, int port, const char *username, const char *password);
962 938
963/** 939/**
964 * @brief Removes a SOCKS v5 proxy from the proxy list and delete it. 940 * @brief Removes a SOCKS v5 proxy from the proxy list and delete it.
@@ -973,7 +949,7 @@ EAPI Eina_Bool ecore_con_socks5_remote_exists(const char *ip, int port, c
973 * @warning Be aware that deleting a proxy which is being used WILL ruin your life. 949 * @warning Be aware that deleting a proxy which is being used WILL ruin your life.
974 * @since 1.2 950 * @since 1.2
975 */ 951 */
976EAPI void ecore_con_socks5_remote_del(const char *ip, int port, const char *username, const char *password); 952ECORE_CON_API void ecore_con_socks5_remote_del(const char *ip, int port, const char *username, const char *password);
977 953
978/** 954/**
979 * @brief Sets DNS lookup mode on an existing SOCKS proxy. 955 * @brief Sets DNS lookup mode on an existing SOCKS proxy.
@@ -988,7 +964,7 @@ EAPI void ecore_con_socks5_remote_del(const char *ip, int port, cons
988 * @note By default, this setting is DISABLED. 964 * @note By default, this setting is DISABLED.
989 * @since 1.2 965 * @since 1.2
990 */ 966 */
991EAPI void ecore_con_socks_lookup_set(Ecore_Con_Socks *ecs, Eina_Bool enable); 967ECORE_CON_API void ecore_con_socks_lookup_set(Ecore_Con_Socks *ecs, Eina_Bool enable);
992 968
993/** 969/**
994 * @brief Gets DNS lookup mode on an existing SOCKS proxy. 970 * @brief Gets DNS lookup mode on an existing SOCKS proxy.
@@ -1002,7 +978,7 @@ EAPI void ecore_con_socks_lookup_set(Ecore_Con_Socks *ecs, Eina_Bool
1002 * @note By default, this setting is DISABLED. 978 * @note By default, this setting is DISABLED.
1003 * @since 1.2 979 * @since 1.2
1004 */ 980 */
1005EAPI Eina_Bool ecore_con_socks_lookup_get(Ecore_Con_Socks *ecs); 981ECORE_CON_API Eina_Bool ecore_con_socks_lookup_get(Ecore_Con_Socks *ecs);
1006 982
1007/** 983/**
1008 * @brief Enables bind mode on a SOCKS proxy. 984 * @brief Enables bind mode on a SOCKS proxy.
@@ -1014,7 +990,7 @@ EAPI Eina_Bool ecore_con_socks_lookup_get(Ecore_Con_Socks *ecs);
1014 * @warning Be aware that changing the operation mode of an active proxy may result in undefined behavior 990 * @warning Be aware that changing the operation mode of an active proxy may result in undefined behavior
1015 * @since 1.2 991 * @since 1.2
1016 */ 992 */
1017EAPI void ecore_con_socks_bind_set(Ecore_Con_Socks *ecs, Eina_Bool is_bind); 993ECORE_CON_API void ecore_con_socks_bind_set(Ecore_Con_Socks *ecs, Eina_Bool is_bind);
1018 994
1019/** 995/**
1020 * @brief Returns bind mode of a SOCKS proxy. 996 * @brief Returns bind mode of a SOCKS proxy.
@@ -1025,7 +1001,7 @@ EAPI void ecore_con_socks_bind_set(Ecore_Con_Socks *ecs, Eina_Bool i
1025 * @return If true, the connection established will be a port binding. 1001 * @return If true, the connection established will be a port binding.
1026 * @since 1.2 1002 * @since 1.2
1027 */ 1003 */
1028EAPI Eina_Bool ecore_con_socks_bind_get(Ecore_Con_Socks *ecs); 1004ECORE_CON_API Eina_Bool ecore_con_socks_bind_get(Ecore_Con_Socks *ecs);
1029 1005
1030/** 1006/**
1031 * @brief Returns SOCKS version of a SOCKS proxy. 1007 * @brief Returns SOCKS version of a SOCKS proxy.
@@ -1035,7 +1011,7 @@ EAPI Eina_Bool ecore_con_socks_bind_get(Ecore_Con_Socks *ecs);
1035 * @return @c 0 on error, else @c 4/5 1011 * @return @c 0 on error, else @c 4/5
1036 * @since 1.2 1012 * @since 1.2
1037 */ 1013 */
1038EAPI unsigned int ecore_con_socks_version_get(Ecore_Con_Socks *ecs); 1014ECORE_CON_API unsigned int ecore_con_socks_version_get(Ecore_Con_Socks *ecs);
1039 1015
1040/** 1016/**
1041 * @brief Removes a SOCKS v4 proxy from the proxy list and delete it. 1017 * @brief Removes a SOCKS v4 proxy from the proxy list and delete it.
@@ -1045,7 +1021,7 @@ EAPI unsigned int ecore_con_socks_version_get(Ecore_Con_Socks *ecs);
1045 * @warning Be aware that deleting a proxy which is being used WILL ruin your life. 1021 * @warning Be aware that deleting a proxy which is being used WILL ruin your life.
1046 * @since 1.2 1022 * @since 1.2
1047 */ 1023 */
1048EAPI void ecore_con_socks_remote_del(Ecore_Con_Socks *ecs); 1024ECORE_CON_API void ecore_con_socks_remote_del(Ecore_Con_Socks *ecs);
1049 1025
1050/** 1026/**
1051 * @brief Sets a proxy object to be used with the next server created with ecore_con_server_connect(). 1027 * @brief Sets a proxy object to be used with the next server created with ecore_con_server_connect().
@@ -1056,7 +1032,7 @@ EAPI void ecore_con_socks_remote_del(Ecore_Con_Socks *ecs);
1056 * @see ecore_con_socks_apply_always() 1032 * @see ecore_con_socks_apply_always()
1057 * @since 1.2 1033 * @since 1.2
1058 */ 1034 */
1059EAPI void ecore_con_socks_apply_once(Ecore_Con_Socks *ecs); 1035ECORE_CON_API void ecore_con_socks_apply_once(Ecore_Con_Socks *ecs);
1060 1036
1061/** 1037/**
1062 * @brief Sets a proxy object to be used with all servers created with ecore_con_server_connect(). 1038 * @brief Sets a proxy object to be used with all servers created with ecore_con_server_connect().
@@ -1073,7 +1049,7 @@ EAPI void ecore_con_socks_apply_once(Ecore_Con_Socks *ecs);
1073 * port is the port to connect to on the proxy server. 1049 * port is the port to connect to on the proxy server.
1074 * lookup is 1 if the proxy should perform all DNS lookups, otherwise 0 or omitted. 1050 * lookup is 1 if the proxy should perform all DNS lookups, otherwise 0 or omitted.
1075 */ 1051 */
1076EAPI void ecore_con_socks_apply_always(Ecore_Con_Socks *ecs); 1052ECORE_CON_API void ecore_con_socks_apply_always(Ecore_Con_Socks *ecs);
1077 1053
1078/** 1054/**
1079 * @} 1055 * @}
@@ -1178,7 +1154,7 @@ EAPI void ecore_con_socks_apply_always(Ecore_Con_Socks *ecs);
1178 * 1154 *
1179 * @since 1.19 1155 * @since 1.19
1180 */ 1156 */
1181EAPI char *ecore_con_local_path_new(Eina_Bool is_system, const char *name, int port) EINA_WARN_UNUSED_RESULT EINA_MALLOC EINA_ARG_NONNULL(2); 1157ECORE_CON_API char *ecore_con_local_path_new(Eina_Bool is_system, const char *name, int port) EINA_WARN_UNUSED_RESULT EINA_MALLOC EINA_ARG_NONNULL(2);
1182 1158
1183/** 1159/**
1184 * @brief Creates a server to listen for connections. 1160 * @brief Creates a server to listen for connections.
@@ -1222,7 +1198,7 @@ EAPI char *ecore_con_local_path_new(Eina_Bool is_system, const char *name, int p
1222 * #EFL_NET_SERVER_SIMPLE_CLASS. 1198 * #EFL_NET_SERVER_SIMPLE_CLASS.
1223 * See @li @ref efl_net_server_simple_example.c 1199 * See @li @ref efl_net_server_simple_example.c
1224 */ 1200 */
1225EAPI Ecore_Con_Server *ecore_con_server_add(Ecore_Con_Type type, 1201ECORE_CON_API Ecore_Con_Server *ecore_con_server_add(Ecore_Con_Type type,
1226 const char *name, int port, 1202 const char *name, int port,
1227 const void *data); 1203 const void *data);
1228 1204
@@ -1278,7 +1254,7 @@ EAPI Ecore_Con_Server *ecore_con_server_add(Ecore_Con_Type type,
1278 * #EFL_NET_DIALER_SIMPLE_CLASS. 1254 * #EFL_NET_DIALER_SIMPLE_CLASS.
1279 * See @li @ref efl_net_dialer_simple_example.c 1255 * See @li @ref efl_net_dialer_simple_example.c
1280 */ 1256 */
1281EAPI Ecore_Con_Server *ecore_con_server_connect(Ecore_Con_Type type, 1257ECORE_CON_API Ecore_Con_Server *ecore_con_server_connect(Ecore_Con_Type type,
1282 const char *name, int port, 1258 const char *name, int port,
1283 const void *data); 1259 const void *data);
1284/** 1260/**
@@ -1291,7 +1267,7 @@ EAPI Ecore_Con_Server *ecore_con_server_connect(Ecore_Con_Type type,
1291 * 1267 *
1292 * @see ecore_con_server_add, ecore_con_server_connect 1268 * @see ecore_con_server_add, ecore_con_server_connect
1293 */ 1269 */
1294EAPI void * ecore_con_server_del(Ecore_Con_Server *svr); 1270ECORE_CON_API void * ecore_con_server_del(Ecore_Con_Server *svr);
1295 1271
1296/** 1272/**
1297 * @brief Retrieves the name of server. 1273 * @brief Retrieves the name of server.
@@ -1303,7 +1279,7 @@ EAPI void * ecore_con_server_del(Ecore_Con_Server *svr);
1303 * 1279 *
1304 * @ingroup Efl_Network_Server 1280 * @ingroup Efl_Network_Server
1305 */ 1281 */
1306EAPI const char *ecore_con_server_name_get(const Ecore_Con_Server *svr); 1282ECORE_CON_API const char *ecore_con_server_name_get(const Ecore_Con_Server *svr);
1307 1283
1308/** 1284/**
1309 * @brief Retrieves the data associated with the given server. 1285 * @brief Retrieves the data associated with the given server.
@@ -1313,7 +1289,7 @@ EAPI const char *ecore_con_server_name_get(const Ecore_Con_Server *svr);
1313 * 1289 *
1314 * @see ecore_con_server_data_set() 1290 * @see ecore_con_server_data_set()
1315 */ 1291 */
1316EAPI void * ecore_con_server_data_get(Ecore_Con_Server *svr); 1292ECORE_CON_API void * ecore_con_server_data_get(Ecore_Con_Server *svr);
1317/** 1293/**
1318 * @brief Sets the data associated with the given server. 1294 * @brief Sets the data associated with the given server.
1319 * 1295 *
@@ -1323,7 +1299,7 @@ EAPI void * ecore_con_server_data_get(Ecore_Con_Server *svr);
1323 * 1299 *
1324 * @see ecore_con_server_data_get() 1300 * @see ecore_con_server_data_get()
1325 */ 1301 */
1326EAPI void * ecore_con_server_data_set(Ecore_Con_Server *svr, 1302ECORE_CON_API void * ecore_con_server_data_set(Ecore_Con_Server *svr,
1327 void *data); 1303 void *data);
1328/** 1304/**
1329 * @brief Retrieves whether the given server is currently connected. 1305 * @brief Retrieves whether the given server is currently connected.
@@ -1331,7 +1307,7 @@ EAPI void * ecore_con_server_data_set(Ecore_Con_Server *svr,
1331 * @param svr The given server. 1307 * @param svr The given server.
1332 * @return @c EINA_TRUE if the server is connected, @c EINA_FALSE otherwise. 1308 * @return @c EINA_TRUE if the server is connected, @c EINA_FALSE otherwise.
1333 */ 1309 */
1334EAPI Eina_Bool ecore_con_server_connected_get(const Ecore_Con_Server *svr); 1310ECORE_CON_API Eina_Bool ecore_con_server_connected_get(const Ecore_Con_Server *svr);
1335 1311
1336/** 1312/**
1337 * @brief Retrieves the server port in use. 1313 * @brief Retrieves the server port in use.
@@ -1341,7 +1317,7 @@ EAPI Eina_Bool ecore_con_server_connected_get(const Ecore_Con_Server *sv
1341 * 1317 *
1342 * The port where the server is listening for connections. 1318 * The port where the server is listening for connections.
1343 */ 1319 */
1344EAPI int ecore_con_server_port_get(const Ecore_Con_Server *svr); 1320ECORE_CON_API int ecore_con_server_port_get(const Ecore_Con_Server *svr);
1345/** 1321/**
1346 * @brief Checks how long a server has been connected. 1322 * @brief Checks how long a server has been connected.
1347 * 1323 *
@@ -1352,7 +1328,7 @@ EAPI int ecore_con_server_port_get(const Ecore_Con_Server *svr);
1352 * This function is used to find out the time that has been elapsed since 1328 * This function is used to find out the time that has been elapsed since
1353 * ecore_con_server_add() succeeded. 1329 * ecore_con_server_add() succeeded.
1354 */ 1330 */
1355EAPI double ecore_con_server_uptime_get(const Ecore_Con_Server *svr); 1331ECORE_CON_API double ecore_con_server_uptime_get(const Ecore_Con_Server *svr);
1356/** 1332/**
1357 * @brief Sends the given data to the given server. 1333 * @brief Sends the given data to the given server.
1358 * 1334 *
@@ -1370,7 +1346,7 @@ EAPI double ecore_con_server_uptime_get(const Ecore_Con_Server *svr);
1370 * @see ecore_con_client_send() 1346 * @see ecore_con_client_send()
1371 * @see ecore_con_server_flush() 1347 * @see ecore_con_server_flush()
1372 */ 1348 */
1373EAPI int ecore_con_server_send(Ecore_Con_Server *svr, 1349ECORE_CON_API int ecore_con_server_send(Ecore_Con_Server *svr,
1374 const void *data, 1350 const void *data,
1375 int size); 1351 int size);
1376/** 1352/**
@@ -1396,7 +1372,7 @@ EAPI int ecore_con_server_send(Ecore_Con_Server *svr,
1396 * clients have already connected and will not be affected by this call. 1372 * clients have already connected and will not be affected by this call.
1397 * Only clients subsequently trying to connect will be affected. 1373 * Only clients subsequently trying to connect will be affected.
1398 */ 1374 */
1399EAPI void ecore_con_server_client_limit_set(Ecore_Con_Server *svr, 1375ECORE_CON_API void ecore_con_server_client_limit_set(Ecore_Con_Server *svr,
1400 int client_limit, 1376 int client_limit,
1401 char reject_excess_clients); 1377 char reject_excess_clients);
1402 1378
@@ -1412,7 +1388,7 @@ EAPI void ecore_con_server_client_limit_set(Ecore_Con_Server *svr,
1412 * @return The list of clients on this server. 1388 * @return The list of clients on this server.
1413 * 1389 *
1414 */ 1390 */
1415EAPI const Eina_List *ecore_con_server_clients_get(const Ecore_Con_Server *svr); 1391ECORE_CON_API const Eina_List *ecore_con_server_clients_get(const Ecore_Con_Server *svr);
1416 1392
1417/** 1393/**
1418 * @brief Gets the IP address of a server that has been connected to. 1394 * @brief Gets the IP address of a server that has been connected to.
@@ -1424,7 +1400,7 @@ EAPI const Eina_List *ecore_con_server_clients_get(const Ecore_Con_Server *svr);
1424 * deletion for the @p svr object. If no IP is known @c NULL is 1400 * deletion for the @p svr object. If no IP is known @c NULL is
1425 * returned. 1401 * returned.
1426 */ 1402 */
1427EAPI const char * ecore_con_server_ip_get(const Ecore_Con_Server *svr); 1403ECORE_CON_API const char * ecore_con_server_ip_get(const Ecore_Con_Server *svr);
1428/** 1404/**
1429 * @brief Flushes all pending data to the given server. 1405 * @brief Flushes all pending data to the given server.
1430 * 1406 *
@@ -1435,7 +1411,7 @@ EAPI const char * ecore_con_server_ip_get(const Ecore_Con_Server *svr);
1435 * @see ecore_con_server_send() 1411 * @see ecore_con_server_send()
1436 * @see ecore_con_client_flush() 1412 * @see ecore_con_client_flush()
1437 */ 1413 */
1438EAPI void ecore_con_server_flush(Ecore_Con_Server *svr); 1414ECORE_CON_API void ecore_con_server_flush(Ecore_Con_Server *svr);
1439/** 1415/**
1440 * @brief Sets the default time after which an inactive client will be disconnected. 1416 * @brief Sets the default time after which an inactive client will be disconnected.
1441 * 1417 *
@@ -1454,7 +1430,7 @@ EAPI void ecore_con_server_flush(Ecore_Con_Server *svr);
1454 * @see ecore_con_server_timeout_get() 1430 * @see ecore_con_server_timeout_get()
1455 * @see ecore_con_client_timeout_set() 1431 * @see ecore_con_client_timeout_set()
1456 */ 1432 */
1457EAPI void ecore_con_server_timeout_set(Ecore_Con_Server *svr, double timeout); 1433ECORE_CON_API void ecore_con_server_timeout_set(Ecore_Con_Server *svr, double timeout);
1458/** 1434/**
1459 * @brief Gets the default time after which an inactive client will be disconnected. 1435 * @brief Gets the default time after which an inactive client will be disconnected.
1460 * 1436 *
@@ -1467,7 +1443,7 @@ EAPI void ecore_con_server_timeout_set(Ecore_Con_Server *svr, doubl
1467 * @see ecore_con_server_timeout_set() 1443 * @see ecore_con_server_timeout_set()
1468 * @see ecore_con_client_timeout_get() 1444 * @see ecore_con_client_timeout_get()
1469 */ 1445 */
1470EAPI double ecore_con_server_timeout_get(const Ecore_Con_Server *svr); 1446ECORE_CON_API double ecore_con_server_timeout_get(const Ecore_Con_Server *svr);
1471 1447
1472/** 1448/**
1473 * @brief Gets the fd that the server is connected to. 1449 * @brief Gets the fd that the server is connected to.
@@ -1481,7 +1457,7 @@ EAPI double ecore_con_server_timeout_get(const Ecore_Con_Server *svr)
1481 * @warning Seriously. Don't use this unless you know what you are doing. 1457 * @warning Seriously. Don't use this unless you know what you are doing.
1482 * @since 1.1 1458 * @since 1.1
1483 */ 1459 */
1484EAPI int ecore_con_server_fd_get(const Ecore_Con_Server *svr); 1460ECORE_CON_API int ecore_con_server_fd_get(const Ecore_Con_Server *svr);
1485 1461
1486/** 1462/**
1487 * @brief Gets the fd that the client is connected to. 1463 * @brief Gets the fd that the client is connected to.
@@ -1493,7 +1469,7 @@ EAPI int ecore_con_server_fd_get(const Ecore_Con_Server *svr);
1493 * It should not be tampered with unless you REALLY know what you are doing. 1469 * It should not be tampered with unless you REALLY know what you are doing.
1494 * @since 1.1 1470 * @since 1.1
1495 */ 1471 */
1496EAPI int ecore_con_client_fd_get(const Ecore_Con_Client *cl); 1472ECORE_CON_API int ecore_con_client_fd_get(const Ecore_Con_Client *cl);
1497/** 1473/**
1498 * @} 1474 * @}
1499 */ 1475 */
@@ -1535,7 +1511,7 @@ EAPI int ecore_con_client_fd_get(const Ecore_Con_Client *cl);
1535 * @see ecore_con_server_send() 1511 * @see ecore_con_server_send()
1536 * @see ecore_con_client_flush() 1512 * @see ecore_con_client_flush()
1537 */ 1513 */
1538EAPI int ecore_con_client_send(Ecore_Con_Client *cl, 1514ECORE_CON_API int ecore_con_client_send(Ecore_Con_Client *cl,
1539 const void *data, 1515 const void *data,
1540 int size); 1516 int size);
1541/** 1517/**
@@ -1544,14 +1520,14 @@ EAPI int ecore_con_client_send(Ecore_Con_Client *cl,
1544 * @param cl The given client. 1520 * @param cl The given client.
1545 * @return Data associated with the client. 1521 * @return Data associated with the client.
1546 */ 1522 */
1547EAPI void * ecore_con_client_del(Ecore_Con_Client *cl); 1523ECORE_CON_API void * ecore_con_client_del(Ecore_Con_Client *cl);
1548/** 1524/**
1549 * @brief Sets the data associated with the given client to @p data. 1525 * @brief Sets the data associated with the given client to @p data.
1550 * 1526 *
1551 * @param cl The given client. 1527 * @param cl The given client.
1552 * @param data What to set the data to. 1528 * @param data What to set the data to.
1553 */ 1529 */
1554EAPI void ecore_con_client_data_set(Ecore_Con_Client *cl, 1530ECORE_CON_API void ecore_con_client_data_set(Ecore_Con_Client *cl,
1555 const void *data); 1531 const void *data);
1556/** 1532/**
1557 * @brief Retrieves the data associated with the given client. 1533 * @brief Retrieves the data associated with the given client.
@@ -1559,7 +1535,7 @@ EAPI void ecore_con_client_data_set(Ecore_Con_Client *cl,
1559 * @param cl The given client. 1535 * @param cl The given client.
1560 * @return The data associated with @p cl. 1536 * @return The data associated with @p cl.
1561 */ 1537 */
1562EAPI void * ecore_con_client_data_get(Ecore_Con_Client *cl); 1538ECORE_CON_API void * ecore_con_client_data_get(Ecore_Con_Client *cl);
1563 1539
1564/** 1540/**
1565 * @brief Gets the IP address of a client that has connected. 1541 * @brief Gets the IP address of a client that has connected.
@@ -1571,7 +1547,7 @@ EAPI void * ecore_con_client_data_get(Ecore_Con_Client *cl);
1571 * The returned string should not be modified, freed or trusted to stay valid 1547 * The returned string should not be modified, freed or trusted to stay valid
1572 * after deletion for the @p cl object. If no IP is known @c NULL is returned. 1548 * after deletion for the @p cl object. If no IP is known @c NULL is returned.
1573 */ 1549 */
1574EAPI const char * ecore_con_client_ip_get(const Ecore_Con_Client *cl); 1550ECORE_CON_API const char * ecore_con_client_ip_get(const Ecore_Con_Client *cl);
1575/** 1551/**
1576 * @brief Flushes all pending data to the given client. 1552 * @brief Flushes all pending data to the given client.
1577 * 1553 *
@@ -1582,7 +1558,7 @@ EAPI const char * ecore_con_client_ip_get(const Ecore_Con_Client *cl);
1582 * @see ecore_con_client_send() 1558 * @see ecore_con_client_send()
1583 * @see ecore_con_server_flush() 1559 * @see ecore_con_server_flush()
1584 */ 1560 */
1585EAPI void ecore_con_client_flush(Ecore_Con_Client *cl); 1561ECORE_CON_API void ecore_con_client_flush(Ecore_Con_Client *cl);
1586/** 1562/**
1587 * @brief Checks how long a client has been connected. 1563 * @brief Checks how long a client has been connected.
1588 * 1564 *
@@ -1592,7 +1568,7 @@ EAPI void ecore_con_client_flush(Ecore_Con_Client *cl);
1592 * 1568 *
1593 * This function is used to find out how long a client has been connected for. 1569 * This function is used to find out how long a client has been connected for.
1594 */ 1570 */
1595EAPI double ecore_con_client_uptime_get(const Ecore_Con_Client *cl); 1571ECORE_CON_API double ecore_con_client_uptime_get(const Ecore_Con_Client *cl);
1596/** 1572/**
1597 * @brief Gets the default time after which the client will be disconnected when 1573 * @brief Gets the default time after which the client will be disconnected when
1598 * inactive. 1574 * inactive.
@@ -1605,7 +1581,7 @@ EAPI double ecore_con_client_uptime_get(const Ecore_Con_Client *cl);
1605 * 1581 *
1606 * @see ecore_con_client_timeout_set() 1582 * @see ecore_con_client_timeout_set()
1607 */ 1583 */
1608EAPI double ecore_con_client_timeout_get(const Ecore_Con_Client *cl); 1584ECORE_CON_API double ecore_con_client_timeout_get(const Ecore_Con_Client *cl);
1609/** 1585/**
1610 * @brief Sets the time after which the client will be disconnected when inactive. 1586 * @brief Sets the time after which the client will be disconnected when inactive.
1611 * 1587 *
@@ -1625,14 +1601,14 @@ EAPI double ecore_con_client_timeout_get(const Ecore_Con_Client *cl);
1625 * @see ecore_con_client_timeout_get() 1601 * @see ecore_con_client_timeout_get()
1626 * @see ecore_con_server_timeout_set() 1602 * @see ecore_con_server_timeout_set()
1627 */ 1603 */
1628EAPI void ecore_con_client_timeout_set(Ecore_Con_Client *cl, double timeout); 1604ECORE_CON_API void ecore_con_client_timeout_set(Ecore_Con_Client *cl, double timeout);
1629/** 1605/**
1630 * @brief Returns whether the client is still connected. 1606 * @brief Returns whether the client is still connected.
1631 * 1607 *
1632 * @param cl The given client. 1608 * @param cl The given client.
1633 * @return @c EINA_TRUE if connected, @c EINA_FALSE otherwise. 1609 * @return @c EINA_TRUE if connected, @c EINA_FALSE otherwise.
1634 */ 1610 */
1635EAPI Eina_Bool ecore_con_client_connected_get(const Ecore_Con_Client *cl); 1611ECORE_CON_API Eina_Bool ecore_con_client_connected_get(const Ecore_Con_Client *cl);
1636/** 1612/**
1637 * @brief Returns the port that the client has connected to. 1613 * @brief Returns the port that the client has connected to.
1638 * 1614 *
@@ -1640,7 +1616,7 @@ EAPI Eina_Bool ecore_con_client_connected_get(const Ecore_Con_Client *cl
1640 * @return The port that @p cl has connected to, or @c -1 on error 1616 * @return The port that @p cl has connected to, or @c -1 on error
1641 * Use this function to return the port on which a given client has connected. 1617 * Use this function to return the port on which a given client has connected.
1642 */ 1618 */
1643EAPI int ecore_con_client_port_get(const Ecore_Con_Client *cl); 1619ECORE_CON_API int ecore_con_client_port_get(const Ecore_Con_Client *cl);
1644 1620
1645/** 1621/**
1646 * @brief The server the client is connected to. 1622 * @brief The server the client is connected to.
@@ -1648,7 +1624,7 @@ EAPI int ecore_con_client_port_get(const Ecore_Con_Client *cl);
1648 * @param cl The client 1624 * @param cl The client
1649 * @return The server the client is connected to. 1625 * @return The server the client is connected to.
1650 */ 1626 */
1651EAPI Ecore_Con_Server *ecore_con_client_server_get(const Ecore_Con_Client *cl); 1627ECORE_CON_API Ecore_Con_Server *ecore_con_client_server_get(const Ecore_Con_Client *cl);
1652 1628
1653/** 1629/**
1654 * @} 1630 * @}
@@ -1773,7 +1749,7 @@ typedef enum _Ecore_Con_Url_Http_Version
1773 * @since 1.2 1749 * @since 1.2
1774 * @see ecore_con_url_pipeline_get() 1750 * @see ecore_con_url_pipeline_get()
1775 */ 1751 */
1776EAPI Eina_Bool ecore_con_url_http_version_set(Ecore_Con_Url *url_con, Ecore_Con_Url_Http_Version version); 1752ECORE_CON_API Eina_Bool ecore_con_url_http_version_set(Ecore_Con_Url *url_con, Ecore_Con_Url_Http_Version version);
1777 1753
1778/** 1754/**
1779 * @brief Initializes the Ecore_Con_Url library. 1755 * @brief Initializes the Ecore_Con_Url library.
@@ -1783,7 +1759,7 @@ EAPI Eina_Bool ecore_con_url_http_version_set(Ecore_Con_Url *url_con, Ec
1783 * @note This function doesn't call ecore_con_init(). You still need to call it 1759 * @note This function doesn't call ecore_con_init(). You still need to call it
1784 * explicitly before calling this one. 1760 * explicitly before calling this one.
1785 */ 1761 */
1786EAPI int ecore_con_url_init(void); 1762ECORE_CON_API int ecore_con_url_init(void);
1787 1763
1788/** 1764/**
1789 * @brief Shuts down the Ecore_Con_Url library. 1765 * @brief Shuts down the Ecore_Con_Url library.
@@ -1792,7 +1768,7 @@ EAPI int ecore_con_url_init(void);
1792 * @note This function doesn't call ecore_con_shutdown(). You still need to call 1768 * @note This function doesn't call ecore_con_shutdown(). You still need to call
1793 * it explicitly after calling this one. 1769 * it explicitly after calling this one.
1794 */ 1770 */
1795EAPI int ecore_con_url_shutdown(void); 1771ECORE_CON_API int ecore_con_url_shutdown(void);
1796 1772
1797/** 1773/**
1798 * @brief Enables or disable HTTP 1.1 pipelining. 1774 * @brief Enables or disable HTTP 1.1 pipelining.
@@ -1809,14 +1785,14 @@ EAPI int ecore_con_url_shutdown(void);
1809 * 1785 *
1810 * @see ecore_con_url_pipeline_get() 1786 * @see ecore_con_url_pipeline_get()
1811 */ 1787 */
1812EAPI void ecore_con_url_pipeline_set(Eina_Bool enable); 1788ECORE_CON_API void ecore_con_url_pipeline_set(Eina_Bool enable);
1813/** 1789/**
1814 * @brief Is HTTP 1.1 pipelining enable ? 1790 * @brief Is HTTP 1.1 pipelining enable ?
1815 * @return @c EINA_TRUE if it is enable. 1791 * @return @c EINA_TRUE if it is enable.
1816 * 1792 *
1817 * @see ecore_con_url_pipeline_set() 1793 * @see ecore_con_url_pipeline_set()
1818 */ 1794 */
1819EAPI Eina_Bool ecore_con_url_pipeline_get(void); 1795ECORE_CON_API Eina_Bool ecore_con_url_pipeline_get(void);
1820 1796
1821/** 1797/**
1822 * @brief Creates and initializes a new Ecore_Con_Url connection object. 1798 * @brief Creates and initializes a new Ecore_Con_Url connection object.
@@ -1832,7 +1808,7 @@ EAPI Eina_Bool ecore_con_url_pipeline_get(void);
1832 * @see ecore_con_url_custom_new() 1808 * @see ecore_con_url_custom_new()
1833 * @see ecore_con_url_url_set() 1809 * @see ecore_con_url_url_set()
1834 */ 1810 */
1835EAPI Ecore_Con_Url * ecore_con_url_new(const char *url); 1811ECORE_CON_API Ecore_Con_Url * ecore_con_url_new(const char *url);
1836 1812
1837 1813
1838/** 1814/**
@@ -1842,7 +1818,7 @@ EAPI Ecore_Con_Url * ecore_con_url_new(const char *url);
1842 * @param url the new URL. 1818 * @param url the new URL.
1843 * @return @c EINA_TRUE on success, @c EINA_FALSE on errors. 1819 * @return @c EINA_TRUE on success, @c EINA_FALSE on errors.
1844 */ 1820 */
1845EAPI Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con, 1821ECORE_CON_API Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con,
1846 const char *url); 1822 const char *url);
1847 1823
1848/** 1824/**
@@ -1851,7 +1827,7 @@ EAPI Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con,
1851 * @param url_con the Connection object to retrieve URL. 1827 * @param url_con the Connection object to retrieve URL.
1852 * @return @c NULL on error, read-only URL string on success. 1828 * @return @c NULL on error, read-only URL string on success.
1853 */ 1829 */
1854EAPI const char *ecore_con_url_url_get(Ecore_Con_Url *url_con); 1830ECORE_CON_API const char *ecore_con_url_url_get(Ecore_Con_Url *url_con);
1855 1831
1856/** 1832/**
1857 * @brief Creates a custom connection object. 1833 * @brief Creates a custom connection object.
@@ -1868,7 +1844,7 @@ EAPI const char *ecore_con_url_url_get(Ecore_Con_Url *url_con);
1868 * @see ecore_con_url_new() 1844 * @see ecore_con_url_new()
1869 * @see ecore_con_url_url_set() 1845 * @see ecore_con_url_url_set()
1870 */ 1846 */
1871EAPI Ecore_Con_Url * ecore_con_url_custom_new(const char *url, 1847ECORE_CON_API Ecore_Con_Url * ecore_con_url_custom_new(const char *url,
1872 const char *custom_request); 1848 const char *custom_request);
1873/** 1849/**
1874 * @brief Destroys an Ecore_Con_Url connection object. 1850 * @brief Destroys an Ecore_Con_Url connection object.
@@ -1877,7 +1853,7 @@ EAPI Ecore_Con_Url * ecore_con_url_custom_new(const char *url,
1877 * 1853 *
1878 * @see ecore_con_url_new() 1854 * @see ecore_con_url_new()
1879 */ 1855 */
1880EAPI void ecore_con_url_free(Ecore_Con_Url *url_con); 1856ECORE_CON_API void ecore_con_url_free(Ecore_Con_Url *url_con);
1881 1857
1882/** 1858/**
1883 * @brief Associates data with a connection object. 1859 * @brief Associates data with a connection object.
@@ -1890,7 +1866,7 @@ EAPI void ecore_con_url_free(Ecore_Con_Url *url_con);
1890 * 1866 *
1891 * @see ecore_con_url_data_get() 1867 * @see ecore_con_url_data_get()
1892 */ 1868 */
1893EAPI void ecore_con_url_data_set(Ecore_Con_Url *url_con, 1869ECORE_CON_API void ecore_con_url_data_set(Ecore_Con_Url *url_con,
1894 void *data); 1870 void *data);
1895/** 1871/**
1896 * @brief Retrieves data associated with a Ecore_Con_Url connection object. 1872 * @brief Retrieves data associated with a Ecore_Con_Url connection object.
@@ -1904,7 +1880,7 @@ EAPI void ecore_con_url_data_set(Ecore_Con_Url *url_con,
1904 * 1880 *
1905 * @see ecore_con_url_data_set() 1881 * @see ecore_con_url_data_set()
1906 */ 1882 */
1907EAPI void * ecore_con_url_data_get(Ecore_Con_Url *url_con); 1883ECORE_CON_API void * ecore_con_url_data_get(Ecore_Con_Url *url_con);
1908/** 1884/**
1909 * @brief Adds an additional header to the request connection object. 1885 * @brief Adds an additional header to the request connection object.
1910 * 1886 *
@@ -1922,7 +1898,7 @@ EAPI void * ecore_con_url_data_get(Ecore_Con_Url *url_con);
1922 * @see ecore_con_url_post() 1898 * @see ecore_con_url_post()
1923 * @see ecore_con_url_additional_headers_clear() 1899 * @see ecore_con_url_additional_headers_clear()
1924 */ 1900 */
1925EAPI void ecore_con_url_additional_header_add(Ecore_Con_Url *url_con, 1901ECORE_CON_API void ecore_con_url_additional_header_add(Ecore_Con_Url *url_con,
1926 const char *key, 1902 const char *key,
1927 const char *value); 1903 const char *value);
1928/** 1904/**
@@ -1937,7 +1913,7 @@ EAPI void ecore_con_url_additional_header_add(Ecore_Con_Url *url_co
1937 * @see ecore_con_url_get() 1913 * @see ecore_con_url_get()
1938 * @see ecore_con_url_post() 1914 * @see ecore_con_url_post()
1939 */ 1915 */
1940EAPI void ecore_con_url_additional_headers_clear(Ecore_Con_Url *url_con); 1916ECORE_CON_API void ecore_con_url_additional_headers_clear(Ecore_Con_Url *url_con);
1941/** 1917/**
1942 * @brief Retrieves headers from last request sent. 1918 * @brief Retrieves headers from last request sent.
1943 * 1919 *
@@ -1949,7 +1925,7 @@ EAPI void ecore_con_url_additional_headers_clear(Ecore_Con_Url *url
1949 * 1925 *
1950 * @return List of response headers. This list must not be modified by the user. 1926 * @return List of response headers. This list must not be modified by the user.
1951 */ 1927 */
1952EAPI const Eina_List * ecore_con_url_response_headers_get(Ecore_Con_Url *url_con); 1928ECORE_CON_API const Eina_List * ecore_con_url_response_headers_get(Ecore_Con_Url *url_con);
1953/** 1929/**
1954 * @brief Sets up a file for receiving response data. 1930 * @brief Sets up a file for receiving response data.
1955 * 1931 *
@@ -1964,7 +1940,7 @@ EAPI const Eina_List * ecore_con_url_response_headers_get(Ecore_Con_Url *url_con
1964 * This call can be used to easily setup a file where the downloaded data will 1940 * This call can be used to easily setup a file where the downloaded data will
1965 * be saved. 1941 * be saved.
1966 */ 1942 */
1967EAPI void ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd); 1943ECORE_CON_API void ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd);
1968/** 1944/**
1969 * @brief Retrieves the number of bytes received. 1945 * @brief Retrieves the number of bytes received.
1970 * 1946 *
@@ -1978,7 +1954,7 @@ EAPI void ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd);
1978 * @see ecore_con_url_get() 1954 * @see ecore_con_url_get()
1979 * @see ecore_con_url_post() 1955 * @see ecore_con_url_post()
1980 */ 1956 */
1981EAPI int ecore_con_url_received_bytes_get(Ecore_Con_Url *url_con); 1957ECORE_CON_API int ecore_con_url_received_bytes_get(Ecore_Con_Url *url_con);
1982/** 1958/**
1983 * @brief Sets url_con to use http auth, with given username and password, "safely" or not. 1959 * @brief Sets url_con to use http auth, with given username and password, "safely" or not.
1984 * 1960 *
@@ -1993,7 +1969,7 @@ EAPI int ecore_con_url_received_bytes_get(Ecore_Con_Url *url_con);
1993 * @attention Require libcurl >= 7.19.1 to work, otherwise will always return 1969 * @attention Require libcurl >= 7.19.1 to work, otherwise will always return
1994 * @c 0. 1970 * @c 0.
1995 */ 1971 */
1996EAPI Eina_Bool ecore_con_url_httpauth_set(Ecore_Con_Url *url_con, 1972ECORE_CON_API Eina_Bool ecore_con_url_httpauth_set(Ecore_Con_Url *url_con,
1997 const char *username, 1973 const char *username,
1998 const char *password, 1974 const char *password,
1999 Eina_Bool safe); 1975 Eina_Bool safe);
@@ -2017,7 +1993,7 @@ EAPI Eina_Bool ecore_con_url_httpauth_set(Ecore_Con_Url *url_con,
2017 * @see ecore_con_url_time() 1993 * @see ecore_con_url_time()
2018 * @see ecore_con_url_post() 1994 * @see ecore_con_url_post()
2019 */ 1995 */
2020EAPI Eina_Bool ecore_con_url_get(Ecore_Con_Url *url_con); 1996ECORE_CON_API Eina_Bool ecore_con_url_get(Ecore_Con_Url *url_con);
2021/** 1997/**
2022 * @brief Sends a HEAD request. 1998 * @brief Sends a HEAD request.
2023 * 1999 *
@@ -2037,7 +2013,7 @@ EAPI Eina_Bool ecore_con_url_get(Ecore_Con_Url *url_con);
2037 * @see ecore_con_url_post() 2013 * @see ecore_con_url_post()
2038 * @since 1.14 2014 * @since 1.14
2039 */ 2015 */
2040EAPI Eina_Bool ecore_con_url_head(Ecore_Con_Url *url_con); 2016ECORE_CON_API Eina_Bool ecore_con_url_head(Ecore_Con_Url *url_con);
2041/** 2017/**
2042 * @brief Sends a post request. 2018 * @brief Sends a post request.
2043 * 2019 *
@@ -2066,7 +2042,7 @@ EAPI Eina_Bool ecore_con_url_head(Ecore_Con_Url *url_con);
2066 * @see ecore_con_url_time() 2042 * @see ecore_con_url_time()
2067 * @see ecore_con_url_get() 2043 * @see ecore_con_url_get()
2068 */ 2044 */
2069EAPI Eina_Bool ecore_con_url_post(Ecore_Con_Url *url_con, 2045ECORE_CON_API Eina_Bool ecore_con_url_post(Ecore_Con_Url *url_con,
2070 const void *data, long length, 2046 const void *data, long length,
2071 const char *content_type); 2047 const char *content_type);
2072/** 2048/**
@@ -2084,7 +2060,7 @@ EAPI Eina_Bool ecore_con_url_post(Ecore_Con_Url *url_con,
2084 * @sa ecore_con_url_get() 2060 * @sa ecore_con_url_get()
2085 * @sa ecore_con_url_post() 2061 * @sa ecore_con_url_post()
2086 */ 2062 */
2087EAPI void ecore_con_url_time(Ecore_Con_Url *url_con, 2063ECORE_CON_API void ecore_con_url_time(Ecore_Con_Url *url_con,
2088 Ecore_Con_Url_Time time_condition, 2064 Ecore_Con_Url_Time time_condition,
2089 double timestamp); 2065 double timestamp);
2090 2066
@@ -2101,7 +2077,7 @@ EAPI void ecore_con_url_time(Ecore_Con_Url *url_con,
2101 * Upload @p filename to an ftp server set in @p url_con using @p user 2077 * Upload @p filename to an ftp server set in @p url_con using @p user
2102 * and @p pass to directory @p upload_dir 2078 * and @p pass to directory @p upload_dir
2103 */ 2079 */
2104EAPI Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, 2080ECORE_CON_API Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con,
2105 const char *filename, 2081 const char *filename,
2106 const char *user, 2082 const char *user,
2107 const char *pass, 2083 const char *pass,
@@ -2116,14 +2092,14 @@ EAPI Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con,
2116 * information about its operations, which is useful for 2092 * information about its operations, which is useful for
2117 * debugging. The verbose information will be sent to stderr. 2093 * debugging. The verbose information will be sent to stderr.
2118 */ 2094 */
2119EAPI void ecore_con_url_verbose_set(Ecore_Con_Url *url_con, 2095ECORE_CON_API void ecore_con_url_verbose_set(Ecore_Con_Url *url_con,
2120 Eina_Bool verbose); 2096 Eina_Bool verbose);
2121/** 2097/**
2122 * @brief Enables or disables EPSV extension. 2098 * @brief Enables or disables EPSV extension.
2123 * @param url_con The Ecore_Con_Url instance which will be acted upon. 2099 * @param url_con The Ecore_Con_Url instance which will be acted upon.
2124 * @param use_epsv Boolean to enable/disable the EPSV extension. 2100 * @param use_epsv Boolean to enable/disable the EPSV extension.
2125 */ 2101 */
2126EAPI void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con, 2102ECORE_CON_API void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con,
2127 Eina_Bool use_epsv); 2103 Eina_Bool use_epsv);
2128 2104
2129/** 2105/**
@@ -2138,7 +2114,7 @@ EAPI void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con,
2138 * @note Even though this function is called @c ecore_con_url_cookies_init(), 2114 * @note Even though this function is called @c ecore_con_url_cookies_init(),
2139 * there is no symmetrical shutdown operation. 2115 * there is no symmetrical shutdown operation.
2140 */ 2116 */
2141EAPI void ecore_con_url_cookies_init(Ecore_Con_Url *url_con); 2117ECORE_CON_API void ecore_con_url_cookies_init(Ecore_Con_Url *url_con);
2142/** 2118/**
2143 * @brief Controls whether session cookies from previous sessions shall be loaded. 2119 * @brief Controls whether session cookies from previous sessions shall be loaded.
2144 * 2120 *
@@ -2159,7 +2135,7 @@ EAPI void ecore_con_url_cookies_init(Ecore_Con_Url *url_con);
2159 * 2135 *
2160 * @see ecore_con_url_cookies_file_add() 2136 * @see ecore_con_url_cookies_file_add()
2161 */ 2137 */
2162EAPI void ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Url *url_con, 2138ECORE_CON_API void ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Url *url_con,
2163 Eina_Bool ignore); 2139 Eina_Bool ignore);
2164/** 2140/**
2165 * @brief Clears currently loaded cookies. 2141 * @brief Clears currently loaded cookies.
@@ -2183,7 +2159,7 @@ EAPI void ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Ur
2183 * @see ecore_con_url_cookies_session_clear() 2159 * @see ecore_con_url_cookies_session_clear()
2184 * @see ecore_con_url_cookies_ignore_old_session_set() 2160 * @see ecore_con_url_cookies_ignore_old_session_set()
2185 */ 2161 */
2186EAPI void ecore_con_url_cookies_clear(Ecore_Con_Url *url_con); 2162ECORE_CON_API void ecore_con_url_cookies_clear(Ecore_Con_Url *url_con);
2187/** 2163/**
2188 * @brief Clears currently loaded session cookies. 2164 * @brief Clears currently loaded session cookies.
2189 * 2165 *
@@ -2212,7 +2188,7 @@ EAPI void ecore_con_url_cookies_clear(Ecore_Con_Url *url_con);
2212 * @see ecore_con_url_cookies_clear() 2188 * @see ecore_con_url_cookies_clear()
2213 * @see ecore_con_url_cookies_ignore_old_session_set() 2189 * @see ecore_con_url_cookies_ignore_old_session_set()
2214 */ 2190 */
2215EAPI void ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_con); 2191ECORE_CON_API void ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_con);
2216/** 2192/**
2217 * @brief Adds a file to the list of files from which to load cookies. 2193 * @brief Adds a file to the list of files from which to load cookies.
2218 * 2194 *
@@ -2239,7 +2215,7 @@ EAPI void ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_co
2239 * @see ecore_con_url_cookies_ignore_old_session_set() 2215 * @see ecore_con_url_cookies_ignore_old_session_set()
2240 * @see ecore_con_url_cookies_jar_file_set() 2216 * @see ecore_con_url_cookies_jar_file_set()
2241 */ 2217 */
2242EAPI void ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con, 2218ECORE_CON_API void ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con,
2243 const char * const file_name); 2219 const char * const file_name);
2244/** 2220/**
2245 * @brief Sets the name of the file to which all current cookies will be written when 2221 * @brief Sets the name of the file to which all current cookies will be written when
@@ -2262,7 +2238,7 @@ EAPI void ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con,
2262 * 2238 *
2263 * @see ecore_con_url_cookies_jar_write() 2239 * @see ecore_con_url_cookies_jar_write()
2264 */ 2240 */
2265EAPI Eina_Bool ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con, 2241ECORE_CON_API Eina_Bool ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con,
2266 const char * const cookiejar_file); 2242 const char * const cookiejar_file);
2267/** 2243/**
2268 * @brief Writes all current cookies to the cookie jar immediately. 2244 * @brief Writes all current cookies to the cookie jar immediately.
@@ -2277,7 +2253,7 @@ EAPI Eina_Bool ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con
2277 * 2253 *
2278 * @see ecore_con_url_cookies_jar_file_set() 2254 * @see ecore_con_url_cookies_jar_file_set()
2279 */ 2255 */
2280EAPI void ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con); 2256ECORE_CON_API void ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con);
2281 2257
2282/** 2258/**
2283 * Toggle libcurl's verify peer's certificate option. 2259 * Toggle libcurl's verify peer's certificate option.
@@ -2291,7 +2267,7 @@ EAPI void ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con);
2291 * @param verify Whether or not libcurl will check peer's certificate. 2267 * @param verify Whether or not libcurl will check peer's certificate.
2292 * @since 1.1.0 2268 * @since 1.1.0
2293 */ 2269 */
2294EAPI void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con, 2270ECORE_CON_API void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con,
2295 Eina_Bool verify); 2271 Eina_Bool verify);
2296/** 2272/**
2297 * Set a custom CA to trust for SSL/TLS connections. 2273 * Set a custom CA to trust for SSL/TLS connections.
@@ -2311,7 +2287,7 @@ EAPI void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con,
2311 * @return @c 0 on success. When cURL is used, non-zero return values 2287 * @return @c 0 on success. When cURL is used, non-zero return values
2312 * are equal to cURL error codes. 2288 * are equal to cURL error codes.
2313 */ 2289 */
2314EAPI int ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con, 2290ECORE_CON_API int ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con,
2315 const char *ca_path); 2291 const char *ca_path);
2316 2292
2317/** 2293/**
@@ -2331,7 +2307,7 @@ EAPI int ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con,
2331 * @return @c EINA_TRUE on success, @c EINA_FALSE on error. 2307 * @return @c EINA_TRUE on success, @c EINA_FALSE on error.
2332 * @since 1.2 2308 * @since 1.2
2333 */ 2309 */
2334EAPI Eina_Bool ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy); 2310ECORE_CON_API Eina_Bool ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy);
2335 2311
2336/** 2312/**
2337 * @brief Sets zero terminated username to use for proxy. 2313 * @brief Sets zero terminated username to use for proxy.
@@ -2347,7 +2323,7 @@ EAPI Eina_Bool ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy
2347 * 2323 *
2348 * @since 1.2 2324 * @since 1.2
2349 */ 2325 */
2350EAPI Eina_Bool ecore_con_url_proxy_username_set(Ecore_Con_Url *url_con, const char *username); 2326ECORE_CON_API Eina_Bool ecore_con_url_proxy_username_set(Ecore_Con_Url *url_con, const char *username);
2351 2327
2352/** 2328/**
2353 * @brief Sets zero terminated password to use for proxy. 2329 * @brief Sets zero terminated password to use for proxy.
@@ -2363,7 +2339,7 @@ EAPI Eina_Bool ecore_con_url_proxy_username_set(Ecore_Con_Url *url_con, const ch
2363 * 2339 *
2364 * @since 1.2 2340 * @since 1.2
2365 */ 2341 */
2366EAPI Eina_Bool ecore_con_url_proxy_password_set(Ecore_Con_Url *url_con, const char *password); 2342ECORE_CON_API Eina_Bool ecore_con_url_proxy_password_set(Ecore_Con_Url *url_con, const char *password);
2367 2343
2368/** 2344/**
2369 * @brief Sets timeout in seconds. 2345 * @brief Sets timeout in seconds.
@@ -2380,7 +2356,7 @@ EAPI Eina_Bool ecore_con_url_proxy_password_set(Ecore_Con_Url *url_con, const ch
2380 * 2356 *
2381 * @since 1.2 2357 * @since 1.2
2382 */ 2358 */
2383EAPI void ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout); 2359ECORE_CON_API void ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout);
2384 2360
2385/** 2361/**
2386 * @brief Gets the returned HTTP STATUS code. 2362 * @brief Gets the returned HTTP STATUS code.
@@ -2391,7 +2367,7 @@ EAPI void ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout);
2391 * 2367 *
2392 * @since 1.2 2368 * @since 1.2
2393 */ 2369 */
2394EAPI int ecore_con_url_status_code_get(Ecore_Con_Url *url_con); 2370ECORE_CON_API int ecore_con_url_status_code_get(Ecore_Con_Url *url_con);
2395 2371
2396/** 2372/**
2397 * @brief Sets a maximum upload speed. 2373 * @brief Sets a maximum upload speed.
@@ -2399,7 +2375,7 @@ EAPI int ecore_con_url_status_code_get(Ecore_Con_Url *url_con);
2399 * @param url_obj Connection object 2375 * @param url_obj Connection object
2400 * @param max_speed Maximum upload speed, in bytes per second 2376 * @param max_speed Maximum upload speed, in bytes per second
2401 */ 2377 */
2402EAPI void ecore_con_url_limit_upload_speed(Ecore_Con_Url *url_obj, off_t max_speed); 2378ECORE_CON_API void ecore_con_url_limit_upload_speed(Ecore_Con_Url *url_obj, off_t max_speed);
2403 2379
2404/** 2380/**
2405 * @brief Sets a maximum download speed. 2381 * @brief Sets a maximum download speed.
@@ -2407,7 +2383,7 @@ EAPI void ecore_con_url_limit_upload_speed(Ecore_Con_Url *url_obj, off_t max_spe
2407 * @param url_obj Connection object 2383 * @param url_obj Connection object
2408 * @param max_speed Maximum download speed, in bytes per second 2384 * @param max_speed Maximum download speed, in bytes per second
2409 */ 2385 */
2410EAPI void ecore_con_url_limit_download_speed(Ecore_Con_Url *url_obj, off_t max_speed); 2386ECORE_CON_API void ecore_con_url_limit_download_speed(Ecore_Con_Url *url_obj, off_t max_speed);
2411 2387
2412/** 2388/**
2413 * @} 2389 * @}
@@ -2417,7 +2393,4 @@ EAPI void ecore_con_url_limit_download_speed(Ecore_Con_Url *url_obj, off_t max_s
2417} 2393}
2418#endif 2394#endif
2419 2395
2420#undef EAPI
2421#define EAPI
2422
2423#endif 2396#endif
diff --git a/src/lib/ecore_con/Ecore_Con_Eet.h b/src/lib/ecore_con/Ecore_Con_Eet.h
index 4a716752a3..013786062e 100644
--- a/src/lib/ecore_con/Ecore_Con_Eet.h
+++ b/src/lib/ecore_con/Ecore_Con_Eet.h
@@ -5,31 +5,7 @@
5#include <Ecore.h> 5#include <Ecore.h>
6#include <Ecore_Con.h> 6#include <Ecore_Con.h>
7 7
8#ifdef EAPI 8#include <ecore_con_api.h>
9# undef EAPI
10#endif
11
12#ifdef _WIN32
13# ifdef EFL_BUILD
14# ifdef DLL_EXPORT
15# define EAPI __declspec(dllexport)
16# else
17# define EAPI
18# endif
19# else
20# define EAPI __declspec(dllimport)
21# endif
22#else
23# ifdef __GNUC__
24# if __GNUC__ >= 4
25# define EAPI __attribute__ ((visibility("default")))
26# else
27# define EAPI
28# endif
29# else
30# define EAPI
31# endif
32#endif
33 9
34/** 10/**
35 * @defgroup Ecore_Con_Eet_Group Eet connection functions 11 * @defgroup Ecore_Con_Eet_Group Eet connection functions
@@ -100,7 +76,7 @@ typedef Eina_Bool (*Ecore_Con_Eet_Server_Cb)(void *data, Ecore_Con_Reply *reply,
100 * 76 *
101 * @return A new Ecore_Con_Eet server. 77 * @return A new Ecore_Con_Eet server.
102 */ 78 */
103EAPI Ecore_Con_Eet *ecore_con_eet_server_new(Ecore_Con_Server *server); 79ECORE_CON_API Ecore_Con_Eet *ecore_con_eet_server_new(Ecore_Con_Server *server);
104 80
105/** 81/**
106 * @brief Creates an Ecore_Con_Eet client. 82 * @brief Creates an Ecore_Con_Eet client.
@@ -114,7 +90,7 @@ EAPI Ecore_Con_Eet *ecore_con_eet_server_new(Ecore_Con_Server *server);
114 * 90 *
115 * @return A new Ecore_Con_Eet client. 91 * @return A new Ecore_Con_Eet client.
116 */ 92 */
117EAPI Ecore_Con_Eet *ecore_con_eet_client_new(Ecore_Con_Server *server); 93ECORE_CON_API Ecore_Con_Eet *ecore_con_eet_client_new(Ecore_Con_Server *server);
118 94
119/** 95/**
120 * @brief Frees an existing Ecore_Con_Eet object. 96 * @brief Frees an existing Ecore_Con_Eet object.
@@ -124,7 +100,7 @@ EAPI Ecore_Con_Eet *ecore_con_eet_client_new(Ecore_Con_Server *server);
124 * ecore_con_eet_client_new. 100 * ecore_con_eet_client_new.
125 * 101 *
126 */ 102 */
127EAPI void ecore_con_eet_server_free(Ecore_Con_Eet *server); 103ECORE_CON_API void ecore_con_eet_server_free(Ecore_Con_Eet *server);
128 104
129/** 105/**
130 * @brief Registers an @c Eet data descriptor on a Ecore_Con_Eet object. 106 * @brief Registers an @c Eet data descriptor on a Ecore_Con_Eet object.
@@ -135,7 +111,7 @@ EAPI void ecore_con_eet_server_free(Ecore_Con_Eet *server);
135 * in the Eet stream. 111 * in the Eet stream.
136 * 112 *
137 */ 113 */
138EAPI void ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_Descriptor *edd); 114ECORE_CON_API void ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_Descriptor *edd);
139 115
140/** 116/**
141 * @brief Registers a data callback on a Ecore_Con_Eet object. 117 * @brief Registers a data callback on a Ecore_Con_Eet object.
@@ -147,7 +123,7 @@ EAPI void ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_
147 * @param data The data to pass to the callback. 123 * @param data The data to pass to the callback.
148 * 124 *
149 */ 125 */
150EAPI void ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data); 126ECORE_CON_API void ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data);
151 127
152/** 128/**
153 * @brief Removes a data callback on a Ecore_Con_Eet object. 129 * @brief Removes a data callback on a Ecore_Con_Eet object.
@@ -156,7 +132,7 @@ EAPI void ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name,
156 * @param name The name of the Eet stream to remove callback on. 132 * @param name The name of the Eet stream to remove callback on.
157 * 133 *
158 */ 134 */
159EAPI void ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name); 135ECORE_CON_API void ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name);
160 136
161/** 137/**
162 * @brief Registers a raw data callback on a Ecore_Con_Eet object. 138 * @brief Registers a raw data callback on a Ecore_Con_Eet object.
@@ -168,7 +144,7 @@ EAPI void ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name);
168 * @param data The data to pass to the callback. 144 * @param data The data to pass to the callback.
169 * 145 *
170 */ 146 */
171EAPI void ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data); 147ECORE_CON_API void ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data);
172 148
173/** 149/**
174 * @brief Removes a raw data callback on a Ecore_Con_Eet object. 150 * @brief Removes a raw data callback on a Ecore_Con_Eet object.
@@ -177,7 +153,7 @@ EAPI void ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *na
177 * @param name The name of the raw Eet stream to remove callback on. 153 * @param name The name of the raw Eet stream to remove callback on.
178 * 154 *
179 */ 155 */
180EAPI void ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *name); 156ECORE_CON_API void ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *name);
181 157
182/** 158/**
183 * @brief Registers a client connect callback on a Ecore_Con_Eet object. 159 * @brief Registers a client connect callback on a Ecore_Con_Eet object.
@@ -189,7 +165,7 @@ EAPI void ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *na
189 * @param func The function to call as a callback. 165 * @param func The function to call as a callback.
190 * @param data The data to pass to the callback. 166 * @param data The data to pass to the callback.
191 */ 167 */
192EAPI void ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data); 168ECORE_CON_API void ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data);
193 169
194/** 170/**
195 * @brief Removes a client connect callback on a Ecore_Con_Eet object. 171 * @brief Removes a client connect callback on a Ecore_Con_Eet object.
@@ -198,7 +174,7 @@ EAPI void ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Co
198 * @param func The callback to remove. 174 * @param func The callback to remove.
199 * @param data The data passed to this function at the callback registration. 175 * @param data The data passed to this function at the callback registration.
200 */ 176 */
201EAPI void ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data); 177ECORE_CON_API void ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data);
202 178
203/** 179/**
204 * @brief Registers a client disconnect callback on a Ecore_Con_Eet object. 180 * @brief Registers a client disconnect callback on a Ecore_Con_Eet object.
@@ -210,7 +186,7 @@ EAPI void ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Co
210 * @param func The function to call as a callback. 186 * @param func The function to call as a callback.
211 * @param data The data to pass to the callback. 187 * @param data The data to pass to the callback.
212 */ 188 */
213EAPI void ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data); 189ECORE_CON_API void ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data);
214 190
215/** 191/**
216 * @brief Removes a client disconnect callback on a Ecore_Con_Eet object. 192 * @brief Removes a client disconnect callback on a Ecore_Con_Eet object.
@@ -219,7 +195,7 @@ EAPI void ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore
219 * @param func The callback to remove. 195 * @param func The callback to remove.
220 * @param data The data passed to this function at the callback registration. 196 * @param data The data passed to this function at the callback registration.
221 */ 197 */
222EAPI void ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data); 198ECORE_CON_API void ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data);
223 199
224/** 200/**
225 * @brief Registers a server connect callback on a Ecore_Con_Eet object. 201 * @brief Registers a server connect callback on a Ecore_Con_Eet object.
@@ -231,7 +207,7 @@ EAPI void ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore
231 * @param func The function to call as a callback. 207 * @param func The function to call as a callback.
232 * @param data The data to pass to the callback. 208 * @param data The data to pass to the callback.
233 */ 209 */
234EAPI void ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data); 210ECORE_CON_API void ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data);
235 211
236/** 212/**
237 * @brief Removes a server connect callback on a Ecore_Con_Eet object. 213 * @brief Removes a server connect callback on a Ecore_Con_Eet object.
@@ -240,7 +216,7 @@ EAPI void ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Co
240 * @param func The callback to remove. 216 * @param func The callback to remove.
241 * @param data The data passed to this function at the callback registration. 217 * @param data The data passed to this function at the callback registration.
242 */ 218 */
243EAPI void ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data); 219ECORE_CON_API void ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data);
244 220
245/** 221/**
246 * @brief Registers a server disconnect callback on a Ecore_Con_Eet object. 222 * @brief Registers a server disconnect callback on a Ecore_Con_Eet object.
@@ -252,7 +228,7 @@ EAPI void ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Co
252 * @param func The function to call as a callback. 228 * @param func The function to call as a callback.
253 * @param data The data to pass to the callback. 229 * @param data The data to pass to the callback.
254 */ 230 */
255EAPI void ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data); 231ECORE_CON_API void ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data);
256 232
257/** 233/**
258 * @brief Removes a server disconnect callback on a Ecore_Con_Eet object. 234 * @brief Removes a server disconnect callback on a Ecore_Con_Eet object.
@@ -261,7 +237,7 @@ EAPI void ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore
261 * @param func The callback to remove. 237 * @param func The callback to remove.
262 * @param data The data passed to this function at the callback registration. 238 * @param data The data passed to this function at the callback registration.
263 */ 239 */
264EAPI void ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data); 240ECORE_CON_API void ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data);
265 241
266/** 242/**
267 * @brief Attaches data to an Ecore_Con_Eet object. 243 * @brief Attaches data to an Ecore_Con_Eet object.
@@ -269,7 +245,7 @@ EAPI void ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore
269 * @param ece An Ecore_Con_Eet object. 245 * @param ece An Ecore_Con_Eet object.
270 * @param data The data to attach to the Ecore_Con_Eet object. 246 * @param data The data to attach to the Ecore_Con_Eet object.
271 */ 247 */
272EAPI void ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data); 248ECORE_CON_API void ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data);
273 249
274/** 250/**
275 * @brief Gets the data attached to an Ecore_Con_Eet object. 251 * @brief Gets the data attached to an Ecore_Con_Eet object.
@@ -277,7 +253,7 @@ EAPI void ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data);
277 * @param ece An Ecore_Con_Eet object. 253 * @param ece An Ecore_Con_Eet object.
278 * @return The data attached to the Ecore_Con_Eet object. 254 * @return The data attached to the Ecore_Con_Eet object.
279 */ 255 */
280EAPI const void *ecore_con_eet_data_get(Ecore_Con_Eet *ece); 256ECORE_CON_API const void *ecore_con_eet_data_get(Ecore_Con_Eet *ece);
281 257
282/** 258/**
283 * @brief Gets the Ecore_Con_Eet object corresponding to the Ecore_Con_Reply object. 259 * @brief Gets the Ecore_Con_Eet object corresponding to the Ecore_Con_Reply object.
@@ -285,7 +261,7 @@ EAPI const void *ecore_con_eet_data_get(Ecore_Con_Eet *ece);
285 * @param reply An Ecore_Con_Reply object. 261 * @param reply An Ecore_Con_Reply object.
286 * @return The corresponding Ecore_Con_Eet object. 262 * @return The corresponding Ecore_Con_Eet object.
287 */ 263 */
288EAPI Ecore_Con_Eet *ecore_con_eet_reply(Ecore_Con_Reply *reply); 264ECORE_CON_API Ecore_Con_Eet *ecore_con_eet_reply(Ecore_Con_Reply *reply);
289 265
290/** 266/**
291 * @brief Sends some data using a protocol type. 267 * @brief Sends some data using a protocol type.
@@ -294,7 +270,7 @@ EAPI Ecore_Con_Eet *ecore_con_eet_reply(Ecore_Con_Reply *reply);
294 * @param protocol_name The protocol type to use. 270 * @param protocol_name The protocol type to use.
295 * @param value The data to send. 271 * @param value The data to send.
296 */ 272 */
297EAPI void ecore_con_eet_send(Ecore_Con_Reply *reply, const char *protocol_name, void *value); 273ECORE_CON_API void ecore_con_eet_send(Ecore_Con_Reply *reply, const char *protocol_name, void *value);
298 274
299/** 275/**
300 * @brief Sends some raw data using a protocol type. 276 * @brief Sends some raw data using a protocol type.
@@ -305,7 +281,7 @@ EAPI void ecore_con_eet_send(Ecore_Con_Reply *reply, const char *protocol_name,
305 * @param value The data to send. 281 * @param value The data to send.
306 * @param length The data length. 282 * @param length The data length.
307 */ 283 */
308EAPI void ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, unsigned int length); 284ECORE_CON_API void ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, unsigned int length);
309 285
310/** 286/**
311 * @} 287 * @}
@@ -315,7 +291,4 @@ EAPI void ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_na
315} 291}
316#endif 292#endif
317 293
318#undef EAPI
319#define EAPI
320
321#endif 294#endif
diff --git a/src/lib/ecore_con/Efl_Net.h b/src/lib/ecore_con/Efl_Net.h
index 7cab05efa3..4c5cab8725 100644
--- a/src/lib/ecore_con/Efl_Net.h
+++ b/src/lib/ecore_con/Efl_Net.h
@@ -13,31 +13,7 @@
13 13
14#include <Efl_Core.h> 14#include <Efl_Core.h>
15 15
16#ifdef EAPI 16#include <ecore_con_api.h>
17# undef EAPI
18#endif
19
20#ifdef _WIN32
21# ifdef EFL_BUILD
22# ifdef DLL_EXPORT
23# define EAPI __declspec(dllexport)
24# else
25# define EAPI
26# endif
27# else
28# define EAPI __declspec(dllimport)
29# endif
30#else
31# ifdef __GNUC__
32# if __GNUC__ >= 4
33# define EAPI __attribute__ ((visibility("default")))
34# else
35# define EAPI
36# endif
37# else
38# define EAPI
39# endif
40#endif
41 17
42#ifdef __cplusplus 18#ifdef __cplusplus
43extern "C" { 19extern "C" {
@@ -51,7 +27,7 @@ extern "C" {
51 * @note This function already calls ecore_init() internally, so you don't need 27 * @note This function already calls ecore_init() internally, so you don't need
52 * to call it explicitly. 28 * to call it explicitly.
53 */ 29 */
54EAPI int ecore_con_init(void); 30ECORE_CON_API int ecore_con_init(void);
55 31
56/** 32/**
57 * @brief Shuts down the Ecore_Con library. 33 * @brief Shuts down the Ecore_Con library.
@@ -60,7 +36,7 @@ EAPI int ecore_con_init(void);
60 * @note This function already calls ecore_shutdown() internally, so you don't 36 * @note This function already calls ecore_shutdown() internally, so you don't
61 * need to call it explicitly unless you called ecore_init() explicitly too. 37 * need to call it explicitly unless you called ecore_init() explicitly too.
62 */ 38 */
63EAPI int ecore_con_shutdown(void); 39ECORE_CON_API int ecore_con_shutdown(void);
64 40
65/** 41/**
66 * @brief Initializes the Ecore_Con_Url library. 42 * @brief Initializes the Ecore_Con_Url library.
@@ -70,7 +46,7 @@ EAPI int ecore_con_shutdown(void);
70 * @note This function doesn't call ecore_con_init(). You still need to call it 46 * @note This function doesn't call ecore_con_init(). You still need to call it
71 * explicitly before calling this one. 47 * explicitly before calling this one.
72 */ 48 */
73EAPI int ecore_con_url_init(void); 49ECORE_CON_API int ecore_con_url_init(void);
74 50
75/** 51/**
76 * @brief Shuts down the Ecore_Con_Url library. 52 * @brief Shuts down the Ecore_Con_Url library.
@@ -79,161 +55,161 @@ EAPI int ecore_con_url_init(void);
79 * @note This function doesn't call ecore_con_shutdown(). You still need to call 55 * @note This function doesn't call ecore_con_shutdown(). You still need to call
80 * it explicitly after calling this one. 56 * it explicitly after calling this one.
81 */ 57 */
82EAPI int ecore_con_url_shutdown(void); 58ECORE_CON_API int ecore_con_url_shutdown(void);
83 59
84#ifdef EFL_BETA_API_SUPPORT 60#ifdef EFL_BETA_API_SUPPORT
85/** HTTP error: bad content encoding */ 61/** HTTP error: bad content encoding */
86extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_CONTENT_ENCODING; 62ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_BAD_CONTENT_ENCODING;
87 63
88/** HTTP error: bad download resume */ 64/** HTTP error: bad download resume */
89extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_DOWNLOAD_RESUME; 65ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_BAD_DOWNLOAD_RESUME;
90 66
91/** HTTP error: bad function argument */ 67/** HTTP error: bad function argument */
92extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_FUNCTION_ARGUMENT; 68ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_BAD_FUNCTION_ARGUMENT;
93 69
94/** HTTP error: chunk failed */ 70/** HTTP error: chunk failed */
95extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_CHUNK_FAILED; 71ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_CHUNK_FAILED;
96 72
97/** HTTP error: conv failed */ 73/** HTTP error: conv failed */
98extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_FAILED; 74ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_CONV_FAILED;
99 75
100/** HTTP error: conv reqd */ 76/** HTTP error: conv reqd */
101extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_REQD; 77ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_CONV_REQD;
102 78
103/** HTTP error: failed init */ 79/** HTTP error: failed init */
104extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_FAILED_INIT; 80ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_FAILED_INIT;
105 81
106/** HTTP error: could not read file */ 82/** HTTP error: could not read file */
107extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_FILE_COULDNT_READ_FILE; 83ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_FILE_COULDNT_READ_FILE;
108 84
109/** HTTP error: filesize exceeded */ 85/** HTTP error: filesize exceeded */
110extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_FILESIZE_EXCEEDED; 86ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_FILESIZE_EXCEEDED;
111 87
112/** HTTP error: function not found */ 88/** HTTP error: function not found */
113extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_FUNCTION_NOT_FOUND; 89ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_FUNCTION_NOT_FOUND;
114 90
115/** HTTP error: got nothing */ 91/** HTTP error: got nothing */
116extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_GOT_NOTHING; 92ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_GOT_NOTHING;
117 93
118/** HTTP error: http2 */ 94/** HTTP error: http2 */
119extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2; 95ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_HTTP2;
120 96
121/** HTTP error: http2 stream */ 97/** HTTP error: http2 stream */
122extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2_STREAM; 98ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_HTTP2_STREAM;
123 99
124/** HTTP error: http post error */ 100/** HTTP error: http post error */
125extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_POST_ERROR; 101ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_HTTP_POST_ERROR;
126 102
127/** HTTP error: http returned error */ 103/** HTTP error: http returned error */
128extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_RETURNED_ERROR; 104ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_HTTP_RETURNED_ERROR;
129 105
130/** HTTP error: interface failed */ 106/** HTTP error: interface failed */
131extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_INTERFACE_FAILED; 107ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_INTERFACE_FAILED;
132 108
133/** HTTP error: login denied */ 109/** HTTP error: login denied */
134extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_LOGIN_DENIED; 110ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_LOGIN_DENIED;
135 111
136/** HTTP error: no connection available */ 112/** HTTP error: no connection available */
137extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_NO_CONNECTION_AVAILABLE; 113ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_NO_CONNECTION_AVAILABLE;
138 114
139/** HTTP error: not built in */ 115/** HTTP error: not built in */
140extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_NOT_BUILT_IN; 116ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_NOT_BUILT_IN;
141 117
142/** HTTP error: operation timeout */ 118/** HTTP error: operation timeout */
143extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_OPERATION_TIMEDOUT; 119ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_OPERATION_TIMEDOUT;
144 120
145/** HTTP error: partial file */ 121/** HTTP error: partial file */
146extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_PARTIAL_FILE; 122ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_PARTIAL_FILE;
147 123
148/** HTTP error: peer failed verification */ 124/** HTTP error: peer failed verification */
149extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_PEER_FAILED_VERIFICATION; 125ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_PEER_FAILED_VERIFICATION;
150 126
151/** HTTP error: range error */ 127/** HTTP error: range error */
152extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_RANGE_ERROR; 128ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_RANGE_ERROR;
153 129
154/** HTTP error: read error */ 130/** HTTP error: read error */
155extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_READ_ERROR; 131ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_READ_ERROR;
156 132
157/** HTTP error: receive error */ 133/** HTTP error: receive error */
158extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_RECV_ERROR; 134ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_RECV_ERROR;
159 135
160/** HTTP error: remote access denied */ 136/** HTTP error: remote access denied */
161extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_ACCESS_DENIED; 137ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_REMOTE_ACCESS_DENIED;
162 138
163/** HTTP error: remote disk full */ 139/** HTTP error: remote disk full */
164extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_DISK_FULL; 140ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_REMOTE_DISK_FULL;
165 141
166/** HTTP error: remote file exists */ 142/** HTTP error: remote file exists */
167extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_EXISTS; 143ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_EXISTS;
168 144
169/** HTTP error: remote file not found */ 145/** HTTP error: remote file not found */
170extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_NOT_FOUND; 146ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_NOT_FOUND;
171 147
172/** HTTP error: send error */ 148/** HTTP error: send error */
173extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_ERROR; 149ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SEND_ERROR;
174 150
175/** HTTP error: send fail rewind */ 151/** HTTP error: send fail rewind */
176extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_FAIL_REWIND; 152ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SEND_FAIL_REWIND;
177 153
178/** HTTP error: SSL cacert */ 154/** HTTP error: SSL cacert */
179extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT; 155ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT;
180 156
181/** HTTP error: SSL cacert bad file */ 157/** HTTP error: SSL cacert bad file */
182extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT_BADFILE; 158ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT_BADFILE;
183 159
184/** HTTP error: SSL certproblem */ 160/** HTTP error: SSL certproblem */
185extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CERTPROBLEM; 161ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CERTPROBLEM;
186 162
187/** HTTP error: SSL cipher */ 163/** HTTP error: SSL cipher */
188extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CIPHER; 164ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CIPHER;
189 165
190/** HTTP error: SSL connect error */ 166/** HTTP error: SSL connect error */
191extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CONNECT_ERROR; 167ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CONNECT_ERROR;
192 168
193/** HTTP error: SSL crl bad file */ 169/** HTTP error: SSL crl bad file */
194extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CRL_BADFILE; 170ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CRL_BADFILE;
195 171
196/** HTTP error: SSL engine init failed */ 172/** HTTP error: SSL engine init failed */
197extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_INITFAILED; 173ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_INITFAILED;
198 174
199/** HTTP error: SSL engine not found */ 175/** HTTP error: SSL engine not found */
200extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_NOTFOUND; 176ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_NOTFOUND;
201 177
202/** HTTP error: SSL engine set failed */ 178/** HTTP error: SSL engine set failed */
203extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_SETFAILED; 179ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_SETFAILED;
204 180
205/** HTTP error: SSL invalid cert status */ 181/** HTTP error: SSL invalid cert status */
206extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_INVALIDCERTSTATUS; 182ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_INVALIDCERTSTATUS;
207 183
208/** HTTP error: SSL issuer error */ 184/** HTTP error: SSL issuer error */
209extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ISSUER_ERROR; 185ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_ISSUER_ERROR;
210 186
211/** HTTP error: SSL pinned pub key does not match */ 187/** HTTP error: SSL pinned pub key does not match */
212extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_PINNEDPUBKEYNOTMATCH; 188ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_PINNEDPUBKEYNOTMATCH;
213 189
214/** HTTP error: SSL shutdown failed */ 190/** HTTP error: SSL shutdown failed */
215extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_SHUTDOWN_FAILED; 191ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_SHUTDOWN_FAILED;
216 192
217/** HTTP error: too many redirects */ 193/** HTTP error: too many redirects */
218extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_TOO_MANY_REDIRECTS; 194ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_TOO_MANY_REDIRECTS;
219 195
220/** HTTP error: unknown option */ 196/** HTTP error: unknown option */
221extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_UNKNOWN_OPTION; 197ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_UNKNOWN_OPTION;
222 198
223/** HTTP error: unsupported protocol */ 199/** HTTP error: unsupported protocol */
224extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_UNSUPPORTED_PROTOCOL; 200ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_UNSUPPORTED_PROTOCOL;
225 201
226/** HTTP error: upload failed */ 202/** HTTP error: upload failed */
227extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_UPLOAD_FAILED; 203ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_UPLOAD_FAILED;
228 204
229/** HTTP error: URL mal-formatted */ 205/** HTTP error: URL mal-formatted */
230extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_URL_MALFORMAT; 206ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_URL_MALFORMAT;
231 207
232/** HTTP error: usage of SSL failed */ 208/** HTTP error: usage of SSL failed */
233extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_USE_SSL_FAILED; 209ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_USE_SSL_FAILED;
234 210
235/** HTTP error: write error */ 211/** HTTP error: write error */
236extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_WRITE_ERROR; 212ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_WRITE_ERROR;
237#endif /* EFL_BETA_API_SUPPORT */ 213#endif /* EFL_BETA_API_SUPPORT */
238 214
239#include "efl_net_types.eot.h" 215#include "efl_net_types.eot.h"
@@ -293,7 +269,4 @@ extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_WRITE_ERROR;
293} 269}
294#endif 270#endif
295 271
296#undef EAPI
297#define EAPI
298
299#endif 272#endif
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index dd7fc23d4b..96cb7b3e5e 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -64,7 +64,7 @@ char **_efl_net_proxy_helper_url_wait (int id);
64void _efl_net_proxy_helper_init (void); 64void _efl_net_proxy_helper_init (void);
65void _efl_net_proxy_helper_shutdown (void); 65void _efl_net_proxy_helper_shutdown (void);
66 66
67EAPI int 67ECORE_CON_API int
68ecore_con_init(void) 68ecore_con_init(void)
69{ 69{
70 if (++_ecore_con_init_count != 1) 70 if (++_ecore_con_init_count != 1)
@@ -129,7 +129,7 @@ ecore_con_log_error:
129 return --_ecore_con_init_count; 129 return --_ecore_con_init_count;
130} 130}
131 131
132EAPI int 132ECORE_CON_API int
133ecore_con_shutdown(void) 133ecore_con_shutdown(void)
134{ 134{
135 /* _ecore_con_init_count should not go below zero. */ 135 /* _ecore_con_init_count should not go below zero. */
@@ -162,7 +162,7 @@ ecore_con_shutdown(void)
162 return _ecore_con_init_count; 162 return _ecore_con_init_count;
163} 163}
164 164
165EAPI int 165ECORE_CON_API int
166ecore_con_ssl_available_get(void) 166ecore_con_ssl_available_get(void)
167{ 167{
168#if HAVE_GNUTLS 168#if HAVE_GNUTLS
diff --git a/src/lib/ecore_con/ecore_con_api.h b/src/lib/ecore_con/ecore_con_api.h
new file mode 100644
index 0000000000..eb5fe8d302
--- /dev/null
+++ b/src/lib/ecore_con/ecore_con_api.h
@@ -0,0 +1,32 @@
1#ifndef _EFL_ECORE_CON_API_H
2#define _EFL_ECORE_CON_API_H
3
4#ifdef ECORE_CON_API
5#error ECORE_CON_API should not be already defined
6#endif
7
8#ifdef _WIN32
9# ifndef ECORE_CON_STATIC
10# ifdef ECORE_CON_BUILD
11# define ECORE_CON_API __declspec(dllexport)
12# else
13# define ECORE_CON_API __declspec(dllimport)
14# endif
15# else
16# define ECORE_CON_API
17# endif
18# define ECORE_CON_API_WEAK
19#elif defined(__GNUC__)
20# if __GNUC__ >= 4
21# define ECORE_CON_API __attribute__ ((visibility("default")))
22# define ECORE_CON_API_WEAK __attribute__ ((weak))
23# else
24# define ECORE_CON_API
25# define ECORE_CON_API_WEAK
26# endif
27#else
28# define ECORE_CON_API
29# define ECORE_CON_API_WEAK
30#endif
31
32#endif
diff --git a/src/lib/ecore_con/ecore_con_eet.c b/src/lib/ecore_con/ecore_con_eet.c
index 2bbbba7db4..3e7cb0de74 100644
--- a/src/lib/ecore_con/ecore_con_eet.c
+++ b/src/lib/ecore_con/ecore_con_eet.c
@@ -717,7 +717,7 @@ _ecore_con_eet_base_server_get(const Eo *obj EINA_UNUSED, Ecore_Con_Eet_Base_Dat
717* Global API * 717* Global API *
718**************/ 718**************/
719 719
720EAPI Ecore_Con_Eet * 720ECORE_CON_API Ecore_Con_Eet *
721ecore_con_eet_server_new(Ecore_Con_Server *server) 721ecore_con_eet_server_new(Ecore_Con_Server *server)
722{ 722{
723 Ecore_Con_Eet *ece_obj; 723 Ecore_Con_Eet *ece_obj;
@@ -729,7 +729,7 @@ ecore_con_eet_server_new(Ecore_Con_Server *server)
729 return ece_obj; 729 return ece_obj;
730} 730}
731 731
732EAPI Ecore_Con_Eet * 732ECORE_CON_API Ecore_Con_Eet *
733ecore_con_eet_client_new(Ecore_Con_Server *server) 733ecore_con_eet_client_new(Ecore_Con_Server *server)
734{ 734{
735 Ecore_Con_Eet *ece_obj; 735 Ecore_Con_Eet *ece_obj;
@@ -741,43 +741,43 @@ ecore_con_eet_client_new(Ecore_Con_Server *server)
741 return ece_obj; 741 return ece_obj;
742} 742}
743 743
744EAPI void 744ECORE_CON_API void
745ecore_con_eet_server_free(Ecore_Con_Eet *server) 745ecore_con_eet_server_free(Ecore_Con_Eet *server)
746{ 746{
747 efl_unref(server); 747 efl_unref(server);
748} 748}
749 749
750EAPI void 750ECORE_CON_API void
751ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_Descriptor *edd) 751ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_Descriptor *edd)
752{ 752{
753 ecore_con_eet_base_register(ece, name, edd); 753 ecore_con_eet_base_register(ece, name, edd);
754} 754}
755 755
756EAPI void 756ECORE_CON_API void
757ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data) 757ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data)
758{ 758{
759 ecore_con_eet_base_data_callback_set(ece, name, func, data); 759 ecore_con_eet_base_data_callback_set(ece, name, func, data);
760} 760}
761 761
762EAPI void 762ECORE_CON_API void
763ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name) 763ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name)
764{ 764{
765 ecore_con_eet_base_data_callback_del(ece, name); 765 ecore_con_eet_base_data_callback_del(ece, name);
766} 766}
767 767
768EAPI void 768ECORE_CON_API void
769ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data) 769ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data)
770{ 770{
771 ecore_con_eet_base_raw_data_callback_set(ece, name, func, data); 771 ecore_con_eet_base_raw_data_callback_set(ece, name, func, data);
772} 772}
773 773
774EAPI void 774ECORE_CON_API void
775ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *name) 775ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *name)
776{ 776{
777 ecore_con_eet_base_raw_data_callback_del(ece, name); 777 ecore_con_eet_base_raw_data_callback_del(ece, name);
778} 778}
779 779
780EAPI void 780ECORE_CON_API void
781ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data) 781ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
782{ 782{
783 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS); 783 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS);
@@ -794,7 +794,7 @@ ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Clie
794 eces->client_connect_callbacks = eina_list_append(eces->client_connect_callbacks, c); 794 eces->client_connect_callbacks = eina_list_append(eces->client_connect_callbacks, c);
795} 795}
796 796
797EAPI void 797ECORE_CON_API void
798ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data) 798ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
799{ 799{
800 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS); 800 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS);
@@ -812,7 +812,7 @@ ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Clie
812 } 812 }
813} 813}
814 814
815EAPI void 815ECORE_CON_API void
816ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data) 816ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
817{ 817{
818 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS); 818 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS);
@@ -829,7 +829,7 @@ ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_C
829 eces->client_disconnect_callbacks = eina_list_append(eces->client_disconnect_callbacks, c); 829 eces->client_disconnect_callbacks = eina_list_append(eces->client_disconnect_callbacks, c);
830} 830}
831 831
832EAPI void 832ECORE_CON_API void
833ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data) 833ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
834{ 834{
835 Ecore_Con_Eet_Server_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS); 835 Ecore_Con_Eet_Server_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS);
@@ -847,7 +847,7 @@ ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_C
847 } 847 }
848} 848}
849 849
850EAPI void 850ECORE_CON_API void
851ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data) 851ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
852{ 852{
853 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS); 853 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS);
@@ -864,7 +864,7 @@ ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Serv
864 eced->server_connect_callbacks = eina_list_append(eced->server_connect_callbacks, s); 864 eced->server_connect_callbacks = eina_list_append(eced->server_connect_callbacks, s);
865} 865}
866 866
867EAPI void 867ECORE_CON_API void
868ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data) 868ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
869{ 869{
870 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS); 870 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS);
@@ -882,7 +882,7 @@ ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Serv
882 } 882 }
883} 883}
884 884
885EAPI void 885ECORE_CON_API void
886ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data) 886ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
887{ 887{
888 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS); 888 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS);
@@ -899,7 +899,7 @@ ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_S
899 eced->server_disconnect_callbacks = eina_list_append(eced->server_disconnect_callbacks, s); 899 eced->server_disconnect_callbacks = eina_list_append(eced->server_disconnect_callbacks, s);
900} 900}
901 901
902EAPI void 902ECORE_CON_API void
903ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data) 903ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
904{ 904{
905 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS); 905 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS);
@@ -917,32 +917,32 @@ ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_S
917 } 917 }
918} 918}
919 919
920EAPI void 920ECORE_CON_API void
921ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data) 921ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data)
922{ 922{
923 efl_key_data_set(ece, ECORE_CON_EET_DATA_KEY, data); 923 efl_key_data_set(ece, ECORE_CON_EET_DATA_KEY, data);
924} 924}
925 925
926EAPI const void * 926ECORE_CON_API const void *
927ecore_con_eet_data_get(Ecore_Con_Eet *ece) 927ecore_con_eet_data_get(Ecore_Con_Eet *ece)
928{ 928{
929 return efl_key_data_get(ece, ECORE_CON_EET_DATA_KEY); 929 return efl_key_data_get(ece, ECORE_CON_EET_DATA_KEY);
930} 930}
931 931
932EAPI Ecore_Con_Eet * 932ECORE_CON_API Ecore_Con_Eet *
933ecore_con_eet_reply(Ecore_Con_Reply *reply) 933ecore_con_eet_reply(Ecore_Con_Reply *reply)
934{ 934{
935 if (!reply) return NULL; 935 if (!reply) return NULL;
936 return reply->ece; 936 return reply->ece;
937} 937}
938 938
939EAPI void 939ECORE_CON_API void
940ecore_con_eet_send(Ecore_Con_Reply *reply, const char *name, void *value) 940ecore_con_eet_send(Ecore_Con_Reply *reply, const char *name, void *value)
941{ 941{
942 ecore_con_eet_base_send(reply->ece, reply, name, value); 942 ecore_con_eet_base_send(reply->ece, reply, name, value);
943} 943}
944 944
945EAPI void 945ECORE_CON_API void
946ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, unsigned int length) 946ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, unsigned int length)
947{ 947{
948 Eina_Binbuf *buf = eina_binbuf_manage_new(value, length, 1); 948 Eina_Binbuf *buf = eina_binbuf_manage_new(value, length, 1);
diff --git a/src/lib/ecore_con/ecore_con_eet_base_eo.c b/src/lib/ecore_con/ecore_con_eet_base_eo.c
index 7e1e6913c1..64969ba71e 100644
--- a/src/lib/ecore_con/ecore_con_eet_base_eo.c
+++ b/src/lib/ecore_con/ecore_con_eet_base_eo.c
@@ -1,39 +1,39 @@
1 1
2void _ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Server *data); 2void _ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Server *data);
3 3
4EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_server_set, EFL_FUNC_CALL(data), Ecore_Con_Server *data); 4ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_server_set, EFL_FUNC_CALL(data), Ecore_Con_Server *data);
5 5
6Ecore_Con_Server *_ecore_con_eet_base_server_get(const Eo *obj, Ecore_Con_Eet_Base_Data *pd); 6Ecore_Con_Server *_ecore_con_eet_base_server_get(const Eo *obj, Ecore_Con_Eet_Base_Data *pd);
7 7
8EOAPI EFL_FUNC_BODY_CONST(ecore_con_eet_base_server_get, Ecore_Con_Server *, NULL); 8ECORE_CON_API ECORE_CON_API_WEAK EFL_FUNC_BODY_CONST(ecore_con_eet_base_server_get, Ecore_Con_Server *, NULL);
9 9
10void _ecore_con_eet_base_data_callback_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data); 10void _ecore_con_eet_base_data_callback_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data);
11 11
12EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_data_callback_set, EFL_FUNC_CALL(name, func, data), const char *name, Ecore_Con_Eet_Data_Cb func, const void *data); 12ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_data_callback_set, EFL_FUNC_CALL(name, func, data), const char *name, Ecore_Con_Eet_Data_Cb func, const void *data);
13 13
14void _ecore_con_eet_base_raw_data_callback_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data); 14void _ecore_con_eet_base_raw_data_callback_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data);
15 15
16EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_data_callback_set, EFL_FUNC_CALL(name, func, data), const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data); 16ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_data_callback_set, EFL_FUNC_CALL(name, func, data), const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data);
17 17
18void _ecore_con_eet_base_data_callback_del(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name); 18void _ecore_con_eet_base_data_callback_del(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name);
19 19
20EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_data_callback_del, EFL_FUNC_CALL(name), const char *name); 20ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_data_callback_del, EFL_FUNC_CALL(name), const char *name);
21 21
22void _ecore_con_eet_base_raw_data_callback_del(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name); 22void _ecore_con_eet_base_raw_data_callback_del(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name);
23 23
24EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_data_callback_del, EFL_FUNC_CALL(name), const char *name); 24ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_data_callback_del, EFL_FUNC_CALL(name), const char *name);
25 25
26void _ecore_con_eet_base_register(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Eet_Data_Descriptor *edd); 26void _ecore_con_eet_base_register(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Eet_Data_Descriptor *edd);
27 27
28EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_register, EFL_FUNC_CALL(name, edd), const char *name, Eet_Data_Descriptor *edd); 28ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_register, EFL_FUNC_CALL(name, edd), const char *name, Eet_Data_Descriptor *edd);
29 29
30void _ecore_con_eet_base_send(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Reply *reply, const char *name, void *value); 30void _ecore_con_eet_base_send(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Reply *reply, const char *name, void *value);
31 31
32EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_send, EFL_FUNC_CALL(reply, name, value), Ecore_Con_Reply *reply, const char *name, void *value); 32ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_send, EFL_FUNC_CALL(reply, name, value), Ecore_Con_Reply *reply, const char *name, void *value);
33 33
34void _ecore_con_eet_base_raw_send(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data); 34void _ecore_con_eet_base_raw_send(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data);
35 35
36EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_send, EFL_FUNC_CALL(reply, protocol_name, section, section_data), Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data); 36ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_send, EFL_FUNC_CALL(reply, protocol_name, section, section_data), Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data);
37 37
38Efl_Object *_ecore_con_eet_base_efl_object_constructor(Eo *obj, Ecore_Con_Eet_Base_Data *pd); 38Efl_Object *_ecore_con_eet_base_efl_object_constructor(Eo *obj, Ecore_Con_Eet_Base_Data *pd);
39 39
diff --git a/src/lib/ecore_con/ecore_con_eet_base_eo.h b/src/lib/ecore_con/ecore_con_eet_base_eo.h
index f9bd8a777b..e4e00e20fc 100644
--- a/src/lib/ecore_con/ecore_con_eet_base_eo.h
+++ b/src/lib/ecore_con/ecore_con_eet_base_eo.h
@@ -29,7 +29,7 @@ typedef struct _Ecore_Con_Reply Ecore_Con_Reply;
29 */ 29 */
30#define ECORE_CON_EET_BASE_CLASS ecore_con_eet_base_class_get() 30#define ECORE_CON_EET_BASE_CLASS ecore_con_eet_base_class_get()
31 31
32EWAPI const Efl_Class *ecore_con_eet_base_class_get(void) EINA_CONST; 32ECORE_CON_API ECORE_CON_API_WEAK const Efl_Class *ecore_con_eet_base_class_get(void) EINA_CONST;
33 33
34/** 34/**
35 * @brief The server object to which we send and receive. 35 * @brief The server object to which we send and receive.
@@ -39,7 +39,7 @@ EWAPI const Efl_Class *ecore_con_eet_base_class_get(void) EINA_CONST;
39 * 39 *
40 * @ingroup Ecore_Con_Eet_Base 40 * @ingroup Ecore_Con_Eet_Base
41 */ 41 */
42EOAPI void ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Server *data); 42ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Server *data);
43 43
44/** 44/**
45 * @brief The server object to which we send and receive. 45 * @brief The server object to which we send and receive.
@@ -50,7 +50,7 @@ EOAPI void ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Server *data);
50 * 50 *
51 * @ingroup Ecore_Con_Eet_Base 51 * @ingroup Ecore_Con_Eet_Base
52 */ 52 */
53EOAPI Ecore_Con_Server *ecore_con_eet_base_server_get(const Eo *obj); 53ECORE_CON_API ECORE_CON_API_WEAK Ecore_Con_Server *ecore_con_eet_base_server_get(const Eo *obj);
54 54
55/** 55/**
56 * @brief A callback function which should be called when data is received by 56 * @brief A callback function which should be called when data is received by
@@ -64,7 +64,7 @@ EOAPI Ecore_Con_Server *ecore_con_eet_base_server_get(const Eo *obj);
64 * 64 *
65 * @ingroup Ecore_Con_Eet_Base 65 * @ingroup Ecore_Con_Eet_Base
66 */ 66 */
67EOAPI void ecore_con_eet_base_data_callback_set(Eo *obj, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data); 67ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_data_callback_set(Eo *obj, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data);
68 68
69/** 69/**
70 * @brief A callback function which should be calledn when raw data is received 70 * @brief A callback function which should be calledn when raw data is received
@@ -78,7 +78,7 @@ EOAPI void ecore_con_eet_base_data_callback_set(Eo *obj, const char *name, Ecore
78 * 78 *
79 * @ingroup Ecore_Con_Eet_Base 79 * @ingroup Ecore_Con_Eet_Base
80 */ 80 */
81EOAPI void ecore_con_eet_base_raw_data_callback_set(Eo *obj, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data); 81ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_raw_data_callback_set(Eo *obj, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data);
82 82
83/** 83/**
84 * @brief Function to delete the @ref ecore_con_eet_base_data_callback_set. 84 * @brief Function to delete the @ref ecore_con_eet_base_data_callback_set.
@@ -88,7 +88,7 @@ EOAPI void ecore_con_eet_base_raw_data_callback_set(Eo *obj, const char *name, E
88 * 88 *
89 * @ingroup Ecore_Con_Eet_Base 89 * @ingroup Ecore_Con_Eet_Base
90 */ 90 */
91EOAPI void ecore_con_eet_base_data_callback_del(Eo *obj, const char *name); 91ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_data_callback_del(Eo *obj, const char *name);
92 92
93/** 93/**
94 * @brief Function to delete the @ref ecore_con_eet_base_raw_data_callback_set. 94 * @brief Function to delete the @ref ecore_con_eet_base_raw_data_callback_set.
@@ -98,7 +98,7 @@ EOAPI void ecore_con_eet_base_data_callback_del(Eo *obj, const char *name);
98 * 98 *
99 * @ingroup Ecore_Con_Eet_Base 99 * @ingroup Ecore_Con_Eet_Base
100 */ 100 */
101EOAPI void ecore_con_eet_base_raw_data_callback_del(Eo *obj, const char *name); 101ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_raw_data_callback_del(Eo *obj, const char *name);
102 102
103/** 103/**
104 * @brief Function to register a @ref Eet.Data.Descriptor to the ecore_con_eet 104 * @brief Function to register a @ref Eet.Data.Descriptor to the ecore_con_eet
@@ -110,7 +110,7 @@ EOAPI void ecore_con_eet_base_raw_data_callback_del(Eo *obj, const char *name);
110 * 110 *
111 * @ingroup Ecore_Con_Eet_Base 111 * @ingroup Ecore_Con_Eet_Base
112 */ 112 */
113EOAPI void ecore_con_eet_base_register(Eo *obj, const char *name, Eet_Data_Descriptor *edd); 113ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_register(Eo *obj, const char *name, Eet_Data_Descriptor *edd);
114 114
115/** 115/**
116 * @brief Function to send data. 116 * @brief Function to send data.
@@ -123,7 +123,7 @@ EOAPI void ecore_con_eet_base_register(Eo *obj, const char *name, Eet_Data_Descr
123 * 123 *
124 * @ingroup Ecore_Con_Eet_Base 124 * @ingroup Ecore_Con_Eet_Base
125 */ 125 */
126EOAPI void ecore_con_eet_base_send(Eo *obj, Ecore_Con_Reply *reply, const char *name, void *value); 126ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_send(Eo *obj, Ecore_Con_Reply *reply, const char *name, void *value);
127 127
128/** 128/**
129 * @brief Function to send raw data. 129 * @brief Function to send raw data.
@@ -137,6 +137,6 @@ EOAPI void ecore_con_eet_base_send(Eo *obj, Ecore_Con_Reply *reply, const char *
137 * 137 *
138 * @ingroup Ecore_Con_Eet_Base 138 * @ingroup Ecore_Con_Eet_Base
139 */ 139 */
140EOAPI void ecore_con_eet_base_raw_send(Eo *obj, Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data); 140ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_raw_send(Eo *obj, Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data);
141 141
142#endif 142#endif
diff --git a/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c b/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c
index 696028a9c8..434754217e 100644
--- a/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c
+++ b/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c
@@ -1,5 +1,5 @@
1 1
2EAPI void 2ECORE_CON_API void
3ecore_con_eet(Ecore_Con_Eet_Base *obj, const char *name, Eet_Data_Descriptor *edd) 3ecore_con_eet(Ecore_Con_Eet_Base *obj, const char *name, Eet_Data_Descriptor *edd)
4{ 4{
5 ecore_con_eet_base_register(obj, name, edd); 5 ecore_con_eet_base_register(obj, name, edd);
diff --git a/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h b/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h
index 4636f095bb..2ec7bd427f 100644
--- a/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h
+++ b/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h
@@ -36,7 +36,7 @@ typedef struct _Ecore_Con_Reply Ecore_Con_Reply;
36 * 36 *
37 * @ingroup (null)_Group 37 * @ingroup (null)_Group
38 */ 38 */
39EAPI void ecore_con_eet(Ecore_Con_Eet_Base *obj, const char *name, Eet_Data_Descriptor *edd); 39ECORE_CON_API void ecore_con_eet(Ecore_Con_Eet_Base *obj, const char *name, Eet_Data_Descriptor *edd);
40 40
41 41
42 42
diff --git a/src/lib/ecore_con/ecore_con_eet_client_obj_eo.h b/src/lib/ecore_con/ecore_con_eet_client_obj_eo.h
index 5bfdbb804c..53d91370da 100644
--- a/src/lib/ecore_con/ecore_con_eet_client_obj_eo.h
+++ b/src/lib/ecore_con/ecore_con_eet_client_obj_eo.h
@@ -19,6 +19,6 @@ typedef Eo Ecore_Con_Eet_Client_Obj;
19 */ 19 */
20#define ECORE_CON_EET_CLIENT_OBJ_CLASS ecore_con_eet_client_obj_class_get() 20#define ECORE_CON_EET_CLIENT_OBJ_CLASS ecore_con_eet_client_obj_class_get()
21 21
22EWAPI const Efl_Class *ecore_con_eet_client_obj_class_get(void) EINA_CONST; 22ECORE_CON_API ECORE_CON_API_WEAK const Efl_Class *ecore_con_eet_client_obj_class_get(void) EINA_CONST;
23 23
24#endif 24#endif
diff --git a/src/lib/ecore_con/ecore_con_eet_server_obj_eo.h b/src/lib/ecore_con/ecore_con_eet_server_obj_eo.h
index 8b71a69572..59e6845b6b 100644
--- a/src/lib/ecore_con/ecore_con_eet_server_obj_eo.h
+++ b/src/lib/ecore_con/ecore_con_eet_server_obj_eo.h
@@ -19,6 +19,6 @@ typedef Eo Ecore_Con_Eet_Server_Obj;
19 */ 19 */
20#define ECORE_CON_EET_SERVER_OBJ_CLASS ecore_con_eet_server_obj_class_get() 20#define ECORE_CON_EET_SERVER_OBJ_CLASS ecore_con_eet_server_obj_class_get()
21 21
22EWAPI const Efl_Class *ecore_con_eet_server_obj_class_get(void) EINA_CONST; 22ECORE_CON_API ECORE_CON_API_WEAK const Efl_Class *ecore_con_eet_server_obj_class_get(void) EINA_CONST;
23 23
24#endif 24#endif
diff --git a/src/lib/ecore_con/ecore_con_legacy.c b/src/lib/ecore_con/ecore_con_legacy.c
index e171d79078..04fe10edfe 100644
--- a/src/lib/ecore_con/ecore_con_legacy.c
+++ b/src/lib/ecore_con/ecore_con_legacy.c
@@ -151,22 +151,22 @@ GENERIC_ALLOC_FREE_HEADER(Ecore_Con_Event_Client_Upgrade, ecore_con_event_client
151#undef GENERIC_ALLOC_FREE_HEADER 151#undef GENERIC_ALLOC_FREE_HEADER
152 152
153/* shared */ 153/* shared */
154EAPI int ECORE_CON_EVENT_SERVER_DEL = 0; 154ECORE_CON_API int ECORE_CON_EVENT_SERVER_DEL = 0;
155EAPI int ECORE_CON_EVENT_SERVER_ERROR = 0; 155ECORE_CON_API int ECORE_CON_EVENT_SERVER_ERROR = 0;
156/* ecore_con_server_add() */ 156/* ecore_con_server_add() */
157EAPI int ECORE_CON_EVENT_CLIENT_ADD = 0; 157ECORE_CON_API int ECORE_CON_EVENT_CLIENT_ADD = 0;
158EAPI int ECORE_CON_EVENT_CLIENT_DEL = 0; 158ECORE_CON_API int ECORE_CON_EVENT_CLIENT_DEL = 0;
159/* ecore_con_server_connect() */ 159/* ecore_con_server_connect() */
160EAPI int ECORE_CON_EVENT_SERVER_ADD = 0; 160ECORE_CON_API int ECORE_CON_EVENT_SERVER_ADD = 0;
161EAPI int ECORE_CON_EVENT_SERVER_DATA = 0; 161ECORE_CON_API int ECORE_CON_EVENT_SERVER_DATA = 0;
162EAPI int ECORE_CON_EVENT_SERVER_WRITE = 0; 162ECORE_CON_API int ECORE_CON_EVENT_SERVER_WRITE = 0;
163EAPI int ECORE_CON_EVENT_PROXY_BIND = 0; /* we're not supporting proxy bind, keep only for ABI */ 163ECORE_CON_API int ECORE_CON_EVENT_PROXY_BIND = 0; /* we're not supporting proxy bind, keep only for ABI */
164EAPI int ECORE_CON_EVENT_SERVER_UPGRADE = 0; 164ECORE_CON_API int ECORE_CON_EVENT_SERVER_UPGRADE = 0;
165/* for each client from ECORE_CON_EVENT_CLIENT_ADD */ 165/* for each client from ECORE_CON_EVENT_CLIENT_ADD */
166EAPI int ECORE_CON_EVENT_CLIENT_DATA = 0; 166ECORE_CON_API int ECORE_CON_EVENT_CLIENT_DATA = 0;
167EAPI int ECORE_CON_EVENT_CLIENT_WRITE = 0; 167ECORE_CON_API int ECORE_CON_EVENT_CLIENT_WRITE = 0;
168EAPI int ECORE_CON_EVENT_CLIENT_ERROR = 0; 168ECORE_CON_API int ECORE_CON_EVENT_CLIENT_ERROR = 0;
169EAPI int ECORE_CON_EVENT_CLIENT_UPGRADE = 0; 169ECORE_CON_API int ECORE_CON_EVENT_CLIENT_UPGRADE = 0;
170 170
171static Eina_List *_servers = NULL; 171static Eina_List *_servers = NULL;
172static Eina_List *_ecore_con_lookups = NULL; 172static Eina_List *_ecore_con_lookups = NULL;
@@ -664,7 +664,7 @@ ecore_con_client_add(Ecore_Con_Server *svr, Eo *socket)
664 return cl; 664 return cl;
665} 665}
666 666
667EAPI int 667ECORE_CON_API int
668ecore_con_client_send(Ecore_Con_Client *cl, const void *data, int size) 668ecore_con_client_send(Ecore_Con_Client *cl, const void *data, int size)
669{ 669{
670 Eina_Error err; 670 Eina_Error err;
@@ -686,28 +686,28 @@ ecore_con_client_send(Ecore_Con_Client *cl, const void *data, int size)
686 return slice.len; 686 return slice.len;
687} 687}
688 688
689EAPI Eina_Bool 689ECORE_CON_API Eina_Bool
690ecore_con_client_connected_get(const Ecore_Con_Client *cl) 690ecore_con_client_connected_get(const Ecore_Con_Client *cl)
691{ 691{
692 ECORE_CON_CLIENT_CHECK_RETURN(cl, EINA_FALSE); 692 ECORE_CON_CLIENT_CHECK_RETURN(cl, EINA_FALSE);
693 return !efl_io_closer_closed_get(cl->socket); 693 return !efl_io_closer_closed_get(cl->socket);
694} 694}
695 695
696EAPI void 696ECORE_CON_API void
697ecore_con_client_timeout_set(Ecore_Con_Client *cl, double timeout) 697ecore_con_client_timeout_set(Ecore_Con_Client *cl, double timeout)
698{ 698{
699 ECORE_CON_CLIENT_CHECK_RETURN(cl); 699 ECORE_CON_CLIENT_CHECK_RETURN(cl);
700 efl_io_buffered_stream_timeout_inactivity_set(cl->socket, timeout); 700 efl_io_buffered_stream_timeout_inactivity_set(cl->socket, timeout);
701} 701}
702 702
703EAPI double 703ECORE_CON_API double
704ecore_con_client_timeout_get(const Ecore_Con_Client *cl) 704ecore_con_client_timeout_get(const Ecore_Con_Client *cl)
705{ 705{
706 ECORE_CON_CLIENT_CHECK_RETURN(cl, -1.0); 706 ECORE_CON_CLIENT_CHECK_RETURN(cl, -1.0);
707 return efl_io_buffered_stream_timeout_inactivity_get(cl->socket); 707 return efl_io_buffered_stream_timeout_inactivity_get(cl->socket);
708} 708}
709 709
710EAPI void * 710ECORE_CON_API void *
711ecore_con_client_del(Ecore_Con_Client *cl) 711ecore_con_client_del(Ecore_Con_Client *cl)
712{ 712{
713 const void *data; 713 const void *data;
@@ -720,7 +720,7 @@ ecore_con_client_del(Ecore_Con_Client *cl)
720 return (void *)data; 720 return (void *)data;
721} 721}
722 722
723EAPI void 723ECORE_CON_API void
724ecore_con_client_data_set(Ecore_Con_Client *cl, 724ecore_con_client_data_set(Ecore_Con_Client *cl,
725 const void *data) 725 const void *data)
726{ 726{
@@ -728,42 +728,42 @@ ecore_con_client_data_set(Ecore_Con_Client *cl,
728 cl->data = data; 728 cl->data = data;
729} 729}
730 730
731EAPI void * 731ECORE_CON_API void *
732ecore_con_client_data_get(Ecore_Con_Client *cl) 732ecore_con_client_data_get(Ecore_Con_Client *cl)
733{ 733{
734 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL); 734 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL);
735 return (void *)cl->data; 735 return (void *)cl->data;
736} 736}
737 737
738EAPI const char * 738ECORE_CON_API const char *
739ecore_con_client_ip_get(const Ecore_Con_Client *cl) 739ecore_con_client_ip_get(const Ecore_Con_Client *cl)
740{ 740{
741 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL); 741 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL);
742 return cl->ip; 742 return cl->ip;
743} 743}
744 744
745EAPI int 745ECORE_CON_API int
746ecore_con_client_port_get(const Ecore_Con_Client *cl) 746ecore_con_client_port_get(const Ecore_Con_Client *cl)
747{ 747{
748 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, -1); 748 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, -1);
749 return cl->port; 749 return cl->port;
750} 750}
751 751
752EAPI Ecore_Con_Server * 752ECORE_CON_API Ecore_Con_Server *
753ecore_con_client_server_get(const Ecore_Con_Client *cl) 753ecore_con_client_server_get(const Ecore_Con_Client *cl)
754{ 754{
755 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL); 755 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL);
756 return cl->svr; 756 return cl->svr;
757} 757}
758 758
759EAPI double 759ECORE_CON_API double
760ecore_con_client_uptime_get(const Ecore_Con_Client *cl) 760ecore_con_client_uptime_get(const Ecore_Con_Client *cl)
761{ 761{
762 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, 0.0); 762 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, 0.0);
763 return ecore_time_get() - cl->start_time; 763 return ecore_time_get() - cl->start_time;
764} 764}
765 765
766EAPI void 766ECORE_CON_API void
767ecore_con_client_flush(Ecore_Con_Client *cl) 767ecore_con_client_flush(Ecore_Con_Client *cl)
768{ 768{
769 ECORE_CON_CLIENT_CHECK_RETURN(cl); 769 ECORE_CON_CLIENT_CHECK_RETURN(cl);
@@ -782,7 +782,7 @@ ecore_con_client_flush(Ecore_Con_Client *cl)
782 efl_net_socket_tcp_cork_set(inner_socket, EINA_TRUE); 782 efl_net_socket_tcp_cork_set(inner_socket, EINA_TRUE);
783} 783}
784 784
785EAPI int 785ECORE_CON_API int
786ecore_con_client_fd_get(const Ecore_Con_Client *cl) 786ecore_con_client_fd_get(const Ecore_Con_Client *cl)
787{ 787{
788 ECORE_CON_CLIENT_CHECK_RETURN(cl, SOCKET_TO_LOOP_FD(INVALID_SOCKET)); 788 ECORE_CON_CLIENT_CHECK_RETURN(cl, SOCKET_TO_LOOP_FD(INVALID_SOCKET));
@@ -896,7 +896,7 @@ _ecore_con_server_job_schedule(Ecore_Con_Server *svr, Eo *loop,
896 eina_future_then(efl_loop_job(loop), cb, svr, &svr->ssl.job); 896 eina_future_then(efl_loop_job(loop), cb, svr, &svr->ssl.job);
897} 897}
898 898
899EAPI Eina_Bool 899ECORE_CON_API Eina_Bool
900ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_Con_Type compl_type) 900ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_Con_Type compl_type)
901{ 901{
902 Ecore_Con_Server *svr; 902 Ecore_Con_Server *svr;
@@ -1692,7 +1692,7 @@ _ecore_con_server_server_ssl_job(void *data, const Eina_Value v,
1692 * using ecore_con_server_add() 1692 * using ecore_con_server_add()
1693 */ 1693 */
1694 1694
1695EAPI Ecore_Con_Server * 1695ECORE_CON_API Ecore_Con_Server *
1696ecore_con_server_add(Ecore_Con_Type compl_type, 1696ecore_con_server_add(Ecore_Con_Type compl_type,
1697 const char *name, 1697 const char *name,
1698 int port, 1698 int port,
@@ -2161,7 +2161,7 @@ _ecore_con_server_dialer_ssl_upgrade_job(void *data, const Eina_Value v,
2161 * example server using ecore_con_server_connect(). 2161 * example server using ecore_con_server_connect().
2162 */ 2162 */
2163 2163
2164EAPI Ecore_Con_Server * 2164ECORE_CON_API Ecore_Con_Server *
2165ecore_con_server_connect(Ecore_Con_Type compl_type, 2165ecore_con_server_connect(Ecore_Con_Type compl_type,
2166 const char *name, 2166 const char *name,
2167 int port, 2167 int port,
@@ -2256,14 +2256,14 @@ ecore_con_server_connect(Ecore_Con_Type compl_type,
2256 return NULL; 2256 return NULL;
2257} 2257}
2258 2258
2259EAPI const char * 2259ECORE_CON_API const char *
2260ecore_con_server_name_get(const Ecore_Con_Server *svr) 2260ecore_con_server_name_get(const Ecore_Con_Server *svr)
2261{ 2261{
2262 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, NULL); 2262 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, NULL);
2263 return svr->name; 2263 return svr->name;
2264} 2264}
2265