summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertise.dev>2020-05-03 15:26:00 -0300
committerFelipe Magno de Almeida <felipe@expertise.dev>2020-05-04 22:11:44 -0300
commita6ea29e03f1fd888c9aee740becd7eb6a607ae38 (patch)
tree9a0af63476ccbcb29f73b58e5d16d78f09e7a2f2
parent3c1425c23e4f1311f55421d540f798ab0b495a9c (diff)
Windows: Rename EAPI macro in Eina to EINA_API to handle __declspec by DSO
-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_api.h31
-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.c34
-rw-r--r--src/lib/eina/eina_file.h68
-rw-r--r--src/lib/eina/eina_file_common.c34
-rw-r--r--src/lib/eina/eina_file_win32.c32
-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.x37
-rw-r--r--src/lib/eina/eina_inline_modinfo.x2
-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.c118
-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.c52
-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.h2
-rw-r--r--src/lib/eina/eina_sched_posix.c2
-rw-r--r--src/lib/eina/eina_sched_win32.c2
-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.h80
-rw-r--r--src/lib/eina/eina_strbuf_common.c4
-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.c122
-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.build1
141 files changed, 1859 insertions, 1749 deletions
diff --git a/src/lib/eina/Eina.h b/src/lib/eina/Eina.h
index d7b4c1911a..383696d7d8 100644
--- a/src/lib/eina/Eina.h
+++ b/src/lib/eina/Eina.h
@@ -278,8 +278,6 @@ extern "C" {
278#include <eina_vpath.h> 278#include <eina_vpath.h>
279#include <eina_abstract_content.h> 279#include <eina_abstract_content.h>
280 280
281#undef EAPI
282#define EAPI
283 281
284#ifdef __cplusplus 282#ifdef __cplusplus
285} 283}
diff --git a/src/lib/eina/eina_abi.c b/src/lib/eina/eina_abi.c
index cdf0f9f450..35d93a51e3 100644
--- a/src/lib/eina/eina_abi.c
+++ b/src/lib/eina/eina_abi.c
@@ -25,12 +25,12 @@
25#include "eina_unicode.h" 25#include "eina_unicode.h"
26#include "eina_safety_checks.h" 26#include "eina_safety_checks.h"
27 27
28EAPI Eina_Unicode eina_unicode_utf8_get_next(const char *buf, int *iindex) 28EINA_API Eina_Unicode eina_unicode_utf8_get_next(const char *buf, int *iindex)
29{ 29{
30 return eina_unicode_utf8_next_get(buf, iindex); 30 return eina_unicode_utf8_next_get(buf, iindex);
31} 31}
32 32
33EAPI unsigned int 33EINA_API unsigned int
34eina_mempool_alignof(unsigned int size) 34eina_mempool_alignof(unsigned int size)
35{ 35{
36 unsigned int align; 36 unsigned int align;
diff --git a/src/lib/eina/eina_abstract_content.c b/src/lib/eina/eina_abstract_content.c
index a9899cecfe..7051b11384 100644
--- a/src/lib/eina/eina_abstract_content.c
+++ b/src/lib/eina/eina_abstract_content.c
@@ -12,7 +12,7 @@ struct _Eina_Content
12 const char *file; 12 const char *file;
13 EINA_REFCOUNT; 13 EINA_REFCOUNT;
14}; 14};
15EAPI const Eina_Value_Type *EINA_VALUE_TYPE_CONTENT; 15EINA_API const Eina_Value_Type *EINA_VALUE_TYPE_CONTENT;
16 16
17static int _eina_abstract_content_log_domain = -1; 17static int _eina_abstract_content_log_domain = -1;
18 18
@@ -39,7 +39,7 @@ _eina_content_ref(Eina_Content *content)
39 EINA_REFCOUNT_REF(content); 39 EINA_REFCOUNT_REF(content);
40} 40}
41 41
42EAPI Eina_Bool 42EINA_API Eina_Bool
43eina_content_converter_conversion_register(const char *from, const char *to, Eina_Content_Conversion_Callback conversion) 43eina_content_converter_conversion_register(const char *from, const char *to, Eina_Content_Conversion_Callback conversion)
44{ 44{
45 Eina_Content_Conversion_Node *node = calloc(1, sizeof(Eina_Content_Conversion_Node)); 45 Eina_Content_Conversion_Node *node = calloc(1, sizeof(Eina_Content_Conversion_Node));
@@ -93,7 +93,7 @@ end:
93 return result; 93 return result;
94} 94}
95 95
96EAPI Eina_Bool 96EINA_API Eina_Bool
97eina_content_converter_convert_can(const char *from, const char *to) 97eina_content_converter_convert_can(const char *from, const char *to)
98{ 98{
99 return !!_conversion_callback_fetch(from, to); 99 return !!_conversion_callback_fetch(from, to);
@@ -107,7 +107,7 @@ _process_cb(const void *container EINA_UNUSED, void *data, void *fdata EINA_UNUS
107 return n->to; 107 return n->to;
108 } 108 }
109 109
110EAPI Eina_Iterator* 110EINA_API Eina_Iterator*
111eina_content_converter_possible_conversions(const char *from) 111eina_content_converter_possible_conversions(const char *from)
112{ 112{
113 Eina_List *possibilities = _conversion_callback_fetch_possible(from); 113 Eina_List *possibilities = _conversion_callback_fetch_possible(from);
@@ -115,7 +115,7 @@ eina_content_converter_possible_conversions(const char *from)
115 return eina_iterator_processed_new(eina_list_iterator_new(possibilities) , EINA_PROCESS_CB(_process_cb), NULL, possibilities); 115 return eina_iterator_processed_new(eina_list_iterator_new(possibilities) , EINA_PROCESS_CB(_process_cb), NULL, possibilities);
116} 116}
117 117
118EAPI Eina_Content* 118EINA_API Eina_Content*
119eina_content_new(Eina_Slice data, const char *type) 119eina_content_new(Eina_Slice data, const char *type)
120{ 120{
121 Eina_Content *content; 121 Eina_Content *content;
@@ -149,7 +149,7 @@ err:
149 return NULL; 149 return NULL;
150} 150}
151 151
152EAPI void 152EINA_API void
153eina_content_free(Eina_Content *content) 153eina_content_free(Eina_Content *content)
154{ 154{
155 EINA_REFCOUNT_UNREF(content) 155 EINA_REFCOUNT_UNREF(content)
@@ -161,7 +161,7 @@ eina_content_free(Eina_Content *content)
161 } 161 }
162} 162}
163 163
164EAPI const char* 164EINA_API const char*
165eina_content_as_file(Eina_Content *content) 165eina_content_as_file(Eina_Content *content)
166{ 166{
167 if (!content->file) 167 if (!content->file)
@@ -189,19 +189,19 @@ eina_content_as_file(Eina_Content *content)
189 return content->file; 189 return content->file;
190} 190}
191 191
192EAPI const char* 192EINA_API const char*
193eina_content_type_get(Eina_Content *content) 193eina_content_type_get(Eina_Content *content)
194{ 194{
195 return content->type; 195 return content->type;
196} 196}
197 197
198EAPI Eina_Slice 198EINA_API Eina_Slice
199eina_content_data_get(Eina_Content *content) 199eina_content_data_get(Eina_Content *content)
200{ 200{
201 return eina_rw_slice_slice_get(content->data); 201 return eina_rw_slice_slice_get(content->data);
202} 202}
203 203
204EAPI Eina_Content* 204EINA_API Eina_Content*
205eina_content_convert(Eina_Content *content, const char *new_type) 205eina_content_convert(Eina_Content *content, const char *new_type)
206{ 206{
207 Eina_Content_Conversion_Callback callback = _conversion_callback_fetch(content->type, new_type); 207 Eina_Content_Conversion_Callback callback = _conversion_callback_fetch(content->type, new_type);
@@ -370,7 +370,7 @@ _eina_value_type_content_pget(const Eina_Value_Type *type EINA_UNUSED, const voi
370 return EINA_TRUE; 370 return EINA_TRUE;
371} 371}
372 372
373EAPI const Eina_Value_Type _EINA_VALUE_TYPE_CONTENT ={ 373EINA_API const Eina_Value_Type _EINA_VALUE_TYPE_CONTENT ={
374 EINA_VALUE_TYPE_VERSION, 374 EINA_VALUE_TYPE_VERSION,
375 sizeof(Eina_Content*), 375 sizeof(Eina_Content*),
376 "Eina_Abstract_Content", 376 "Eina_Abstract_Content",
diff --git a/src/lib/eina/eina_abstract_content.h b/src/lib/eina/eina_abstract_content.h
index 1d88e868a3..580ed97242 100644
--- a/src/lib/eina/eina_abstract_content.h
+++ b/src/lib/eina/eina_abstract_content.h
@@ -33,7 +33,7 @@ typedef Eina_Content* (*Eina_Content_Conversion_Callback)(Eina_Content *from, co
33 * @return The path to the file. Do not free this. 33 * @return The path to the file. Do not free this.
34 * 34 *
35 */ 35 */
36EAPI const char* eina_content_as_file(Eina_Content *content); 36EINA_API const char* eina_content_as_file(Eina_Content *content);
37 37
38/** 38/**
39 * Convert the content of the object to another type. 39 * Convert the content of the object to another type.
@@ -45,7 +45,7 @@ EAPI const char* eina_content_as_file(Eina_Content *content);
45 * 45 *
46 * @return A new content object. The caller of this function is owning this. 46 * @return A new content object. The caller of this function is owning this.
47 */ 47 */
48EAPI Eina_Content* eina_content_convert(Eina_Content *content, const char *new_type); 48EINA_API Eina_Content* eina_content_convert(Eina_Content *content, const char *new_type);
49 49
50/** 50/**
51 * Get the type of the passed content. 51 * Get the type of the passed content.
@@ -54,7 +54,7 @@ EAPI Eina_Content* eina_content_convert(Eina_Content *content, const char *new_t
54 * 54 *
55 * @return The type of this content. Do no free this. 55 * @return The type of this content. Do no free this.
56 */ 56 */
57EAPI const char* eina_content_type_get(Eina_Content *content); 57EINA_API const char* eina_content_type_get(Eina_Content *content);
58 58
59/** 59/**
60 * Get the Eina_Slice of the passed content. 60 * Get the Eina_Slice of the passed content.
@@ -63,7 +63,7 @@ EAPI const char* eina_content_type_get(Eina_Content *content);
63 * 63 *
64 * @return An Eina_Slice containing the data. Do not free. 64 * @return An Eina_Slice containing the data. Do not free.
65 */ 65 */
66EAPI Eina_Slice eina_content_data_get(Eina_Content *content); 66EINA_API Eina_Slice eina_content_data_get(Eina_Content *content);
67 67
68/** 68/**
69 * Create a new content object, with the provided data and type. 69 * Create a new content object, with the provided data and type.
@@ -73,14 +73,14 @@ EAPI Eina_Slice eina_content_data_get(Eina_Content *content);
73 * 73 *
74 * @return The new content object. The caller owns this object. 74 * @return The new content object. The caller owns this object.
75 */ 75 */
76EAPI Eina_Content* eina_content_new(Eina_Slice data, const char *type); 76EINA_API Eina_Content* eina_content_new(Eina_Slice data, const char *type);
77 77
78/** 78/**
79 * Free the content object. 79 * Free the content object.
80 * 80 *
81 * @param[in] content The content to free. 81 * @param[in] content The content to free.
82 */ 82 */
83EAPI void eina_content_free(Eina_Content *content); 83EINA_API void eina_content_free(Eina_Content *content);
84 84
85/** 85/**
86 * Register a new conversion callback. 86 * Register a new conversion callback.
@@ -90,7 +90,7 @@ EAPI void eina_content_free(Eina_Content *content);
90 * 90 *
91 * @return True if the callback was successfully registered. 91 * @return True if the callback was successfully registered.
92 */ 92 */
93EAPI Eina_Bool eina_content_converter_conversion_register(const char *from, const char *to, Eina_Content_Conversion_Callback convertion); 93EINA_API Eina_Bool eina_content_converter_conversion_register(const char *from, const char *to, Eina_Content_Conversion_Callback convertion);
94 94
95/** 95/**
96 * Check if a specific conversion can be performed. 96 * Check if a specific conversion can be performed.
@@ -102,7 +102,7 @@ EAPI Eina_Bool eina_content_converter_conversion_register(const char *from, cons
102 * 102 *
103 * @return True if the conversion can be performed. 103 * @return True if the conversion can be performed.
104 */ 104 */
105EAPI Eina_Bool eina_content_converter_convert_can(const char *from, const char *to); 105EINA_API Eina_Bool eina_content_converter_convert_can(const char *from, const char *to);
106 106
107/** 107/**
108 * Returns an iterator containing all the target types that the provided source type can be converted to. 108 * Returns an iterator containing all the target types that the provided source type can be converted to.
@@ -111,9 +111,9 @@ EAPI Eina_Bool eina_content_converter_convert_can(const char *from, const char *
111 * 111 *
112 * @return An Iterator containing MIME type strings. Free this via eina_iterator_free. 112 * @return An Iterator containing MIME type strings. Free this via eina_iterator_free.
113 */ 113 */
114EAPI Eina_Iterator* eina_content_converter_possible_conversions(const char *from); 114EINA_API Eina_Iterator* eina_content_converter_possible_conversions(const char *from);
115 115
116EAPI extern const Eina_Value_Type *EINA_VALUE_TYPE_CONTENT; 116EINA_API extern const Eina_Value_Type *EINA_VALUE_TYPE_CONTENT;
117 117
118/** 118/**
119 * Convert the Eina_Content object to an Eina_Value. 119 * Convert the Eina_Content object to an Eina_Value.
@@ -122,7 +122,7 @@ EAPI extern const Eina_Value_Type *EINA_VALUE_TYPE_CONTENT;
122 * 122 *
123 * @return An newly-allocated Eina_Value. Caller owns it. 123 * @return An newly-allocated Eina_Value. Caller owns it.
124 */ 124 */
125EAPI Eina_Value* eina_value_content_new(Eina_Content *content); 125EINA_API Eina_Value* eina_value_content_new(Eina_Content *content);
126 126
127/** 127/**
128 * Creates an Eina_Value from an Eina_Content. 128 * Creates an Eina_Value from an Eina_Content.
@@ -131,7 +131,7 @@ EAPI Eina_Value* eina_value_content_new(Eina_Content *content);
131 * 131 *
132 * @return An Eina_Value with type EINA_VALUE_TYPE_CONTENT. 132 * @return An Eina_Value with type EINA_VALUE_TYPE_CONTENT.
133 */ 133 */
134EAPI Eina_Value eina_value_content_init(Eina_Content *content); 134EINA_API Eina_Value eina_value_content_init(Eina_Content *content);
135 135
136/** 136/**
137 * Gets the content from the Eina_Value. 137 * Gets the content from the Eina_Value.
@@ -142,7 +142,7 @@ EAPI Eina_Value eina_value_content_init(Eina_Content *content);
142 * 142 *
143 * @return A newly-allocated Eina_Content. Caller owns it. 143 * @return A newly-allocated Eina_Content. Caller owns it.
144 */ 144 */
145EAPI Eina_Content* eina_value_to_content(const Eina_Value *value); 145EINA_API Eina_Content* eina_value_to_content(const Eina_Value *value);
146 146
147 147
148static inline Eina_Iterator* 148static inline Eina_Iterator*
diff --git a/src/lib/eina/eina_accessor.c b/src/lib/eina/eina_accessor.c
index 67494987a9..37b332174e 100644
--- a/src/lib/eina/eina_accessor.c
+++ b/src/lib/eina/eina_accessor.c
@@ -92,7 +92,7 @@ eina_accessor_shutdown(void)
92*============================================================================*/ 92*============================================================================*/
93 93
94 94
95EAPI void 95EINA_API void
96eina_accessor_free(Eina_Accessor *accessor) 96eina_accessor_free(Eina_Accessor *accessor)
97{ 97{
98 if (!accessor) 98 if (!accessor)
@@ -103,7 +103,7 @@ eina_accessor_free(Eina_Accessor *accessor)
103 accessor->free(accessor); 103 accessor->free(accessor);
104} 104}
105 105
106EAPI void * 106EINA_API void *
107eina_accessor_container_get(Eina_Accessor *accessor) 107eina_accessor_container_get(Eina_Accessor *accessor)
108{ 108{
109 EINA_MAGIC_CHECK_ACCESSOR(accessor); 109 EINA_MAGIC_CHECK_ACCESSOR(accessor);
@@ -112,7 +112,7 @@ eina_accessor_container_get(Eina_Accessor *accessor)
112 return accessor->get_container(accessor); 112 return accessor->get_container(accessor);
113} 113}
114 114
115EAPI Eina_Bool 115EINA_API Eina_Bool
116eina_accessor_data_get(Eina_Accessor *accessor, 116eina_accessor_data_get(Eina_Accessor *accessor,
117 unsigned int position, 117 unsigned int position,
118 void **data) 118 void **data)
@@ -124,7 +124,7 @@ eina_accessor_data_get(Eina_Accessor *accessor,
124 return accessor->get_at(accessor, position, data); 124 return accessor->get_at(accessor, position, data);
125} 125}
126 126
127EAPI void 127EINA_API void
128eina_accessor_over(Eina_Accessor *accessor, 128eina_accessor_over(Eina_Accessor *accessor,
129 Eina_Each_Cb cb, 129 Eina_Each_Cb cb,
130 unsigned int start, 130 unsigned int start,
@@ -156,7 +156,7 @@ eina_accessor_over(Eina_Accessor *accessor,
156 (void) eina_accessor_unlock(accessor); 156 (void) eina_accessor_unlock(accessor);
157} 157}
158 158
159EAPI Eina_Bool 159EINA_API Eina_Bool
160eina_accessor_lock(Eina_Accessor *accessor) 160eina_accessor_lock(Eina_Accessor *accessor)
161{ 161{
162 EINA_MAGIC_CHECK_ACCESSOR(accessor); 162 EINA_MAGIC_CHECK_ACCESSOR(accessor);
@@ -167,7 +167,7 @@ eina_accessor_lock(Eina_Accessor *accessor)
167 return EINA_TRUE; 167 return EINA_TRUE;
168} 168}
169 169
170EAPI Eina_Accessor* 170EINA_API Eina_Accessor*
171eina_accessor_clone(Eina_Accessor *accessor) 171eina_accessor_clone(Eina_Accessor *accessor)
172{ 172{
173 EINA_MAGIC_CHECK_ACCESSOR(accessor); 173 EINA_MAGIC_CHECK_ACCESSOR(accessor);
@@ -179,7 +179,7 @@ eina_accessor_clone(Eina_Accessor *accessor)
179 return NULL; 179 return NULL;
180} 180}
181 181
182EAPI Eina_Bool 182EINA_API Eina_Bool
183eina_accessor_unlock(Eina_Accessor *accessor) 183eina_accessor_unlock(Eina_Accessor *accessor)
184{ 184{
185 EINA_MAGIC_CHECK_ACCESSOR(accessor); 185 EINA_MAGIC_CHECK_ACCESSOR(accessor);
@@ -235,7 +235,7 @@ eina_carray_length_accessor_free(Eina_Accessor_CArray_Length *accessor)
235 free(accessor); 235 free(accessor);
236} 236}
237 237
238EAPI Eina_Accessor * 238EINA_API Eina_Accessor *
239eina_carray_length_accessor_new(void** array, unsigned int step, unsigned int length) 239eina_carray_length_accessor_new(void** array, unsigned int step, unsigned int length)
240{ 240{
241 Eina_Accessor_CArray_Length *accessor; 241 Eina_Accessor_CArray_Length *accessor;
@@ -258,7 +258,7 @@ eina_carray_length_accessor_new(void** array, unsigned int step, unsigned int le
258 return &accessor->accessor; 258 return &accessor->accessor;
259} 259}
260 260
261EAPI Eina_Accessor * 261EINA_API Eina_Accessor *
262eina_carray_length_ptr_accessor_new(void** array, unsigned int step, unsigned int length) 262eina_carray_length_ptr_accessor_new(void** array, unsigned int step, unsigned int length)
263{ 263{
264 Eina_Accessor_CArray_Length *accessor; 264 Eina_Accessor_CArray_Length *accessor;
diff --git a/src/lib/eina/eina_accessor.h b/src/lib/eina/eina_accessor.h
index 5e61dc7810..c70f8ed495 100644
--- a/src/lib/eina/eina_accessor.h
+++ b/src/lib/eina/eina_accessor.h
@@ -205,7 +205,7 @@ struct _Eina_Accessor
205 * @param[in] accessor The accessor to free 205 * @param[in] accessor The accessor to free
206 * 206 *
207 */ 207 */
208EAPI void eina_accessor_free(Eina_Accessor *accessor); 208EINA_API void eina_accessor_free(Eina_Accessor *accessor);
209 209
210/** 210/**
211 * @brief Gets the data of an accessor at the given position. 211 * @brief Gets the data of an accessor at the given position.
@@ -219,7 +219,7 @@ EAPI void eina_accessor_free(Eina_Accessor *accessor);
219 * @return #EINA_TRUE on success, otherwise #EINA_FALSE 219 * @return #EINA_TRUE on success, otherwise #EINA_FALSE
220 * 220 *
221 */ 221 */
222EAPI Eina_Bool eina_accessor_data_get(Eina_Accessor *accessor, 222EINA_API Eina_Bool eina_accessor_data_get(Eina_Accessor *accessor,
223 unsigned int position, 223 unsigned int position,
224 void **data) EINA_ARG_NONNULL(1); 224 void **data) EINA_ARG_NONNULL(1);
225 225
@@ -231,7 +231,7 @@ EAPI Eina_Bool eina_accessor_data_get(Eina_Accessor *accessor,
231 * @return The container that created the accessor 231 * @return The container that created the accessor
232 * 232 *
233 */ 233 */
234EAPI void *eina_accessor_container_get(Eina_Accessor *accessor) EINA_ARG_NONNULL(1) EINA_PURE; 234EINA_API void *eina_accessor_container_get(Eina_Accessor *accessor) EINA_ARG_NONNULL(1) EINA_PURE;
235 235
236/** 236/**
237 * @brief Iterates over the container and executes a callback on the chosen elements. 237 * @brief Iterates over the container and executes a callback on the chosen elements.
@@ -249,7 +249,7 @@ EAPI void *eina_accessor_container_get(Eina_Accessor *accessor) EINA_ARG_NONNULL
249 * @param[in] fdata The data passed to the callback 249 * @param[in] fdata The data passed to the callback
250 * 250 *
251 */ 251 */
252EAPI void eina_accessor_over(Eina_Accessor *accessor, 252EINA_API void eina_accessor_over(Eina_Accessor *accessor,
253 Eina_Each_Cb cb, 253 Eina_Each_Cb cb,
254 unsigned int start, 254 unsigned int start,
255 unsigned int end, 255 unsigned int end,
@@ -269,7 +269,7 @@ EAPI void eina_accessor_over(Eina_Accessor *accessor,
269 * 269 *
270 * @warning None of the existing eina data structures are lockable. 270 * @warning None of the existing eina data structures are lockable.
271 */ 271 */
272EAPI Eina_Bool eina_accessor_lock(Eina_Accessor *accessor) EINA_ARG_NONNULL(1); 272EINA_API Eina_Bool eina_accessor_lock(Eina_Accessor *accessor) EINA_ARG_NONNULL(1);
273 273
274/** 274/**
275 * @brief Clones the container of the accessor. 275 * @brief Clones the container of the accessor.
@@ -278,7 +278,7 @@ EAPI Eina_Bool eina_accessor_lock(Eina_Accessor *accessor) EINA_ARG_NONNULL(1);
278 * @return Another accessor 278 * @return Another accessor
279 * @since 1.10 279 * @since 1.10
280 */ 280 */
281EAPI Eina_Accessor* eina_accessor_clone(Eina_Accessor *accessor) EINA_ARG_NONNULL(1); 281EINA_API Eina_Accessor* eina_accessor_clone(Eina_Accessor *accessor) EINA_ARG_NONNULL(1);
282 282
283/** 283/**
284 * @brief Unlocks the container of the accessor. 284 * @brief Unlocks the container of the accessor.
@@ -293,7 +293,7 @@ EAPI Eina_Accessor* eina_accessor_clone(Eina_Accessor *accessor) EINA_ARG_NONNUL
293 * 293 *
294 * @warning None of the existing eina data structures are lockable. 294 * @warning None of the existing eina data structures are lockable.
295 */ 295 */
296EAPI Eina_Bool eina_accessor_unlock(Eina_Accessor *accessor) EINA_ARG_NONNULL(1); 296EINA_API Eina_Bool eina_accessor_unlock(Eina_Accessor *accessor) EINA_ARG_NONNULL(1);
297 297
298/** 298/**
299 * @def EINA_ACCESSOR_FOREACH 299 * @def EINA_ACCESSOR_FOREACH
@@ -363,7 +363,7 @@ EAPI Eina_Bool eina_accessor_unlock(Eina_Accessor *accessor) EINA_ARG_NONNULL(1)
363 * 363 *
364 * @since 1.23 364 * @since 1.23
365 */ 365 */
366EAPI Eina_Accessor* eina_carray_length_accessor_new(void** array, unsigned int step, unsigned int length); 366EINA_API Eina_Accessor* eina_carray_length_accessor_new(void** array, unsigned int step, unsigned int length);
367 367
368 368
369/** 369/**
@@ -383,7 +383,7 @@ EAPI Eina_Accessor* eina_carray_length_accessor_new(void** array, unsigned int s
383 383
384 * @since 1.24 384 * @since 1.24
385 */ 385 */
386EAPI Eina_Accessor* eina_carray_length_ptr_accessor_new(void** array, unsigned int step, unsigned int length); 386EINA_API Eina_Accessor* eina_carray_length_ptr_accessor_new(void** array, unsigned int step, unsigned int length);
387/** 387/**
388 * @def EINA_C_ARRAY_ACCESSOR_NEW 388 * @def EINA_C_ARRAY_ACCESSOR_NEW
389 * @brief Creates an Eina_Accessor that wraps a plain fixed size C array 389 * @brief Creates an Eina_Accessor that wraps a plain fixed size C array
diff --git a/src/lib/eina/eina_api.h b/src/lib/eina/eina_api.h
new file mode 100644
index 0000000000..a9852fae04
--- /dev/null
+++ b/src/lib/eina/eina_api.h
@@ -0,0 +1,31 @@
1#ifndef EINA_PREAMBLE_H
2# define EINA_PREAMBLE_H
3
4#ifdef EINA_API
5# undef EINA_API
6#endif
7
8#ifdef _MSC_VER
9# ifndef EINA_DLL
10# define EINA_API
11# elif defined(EINA_BUILD)
12# define EINA_API __declspec(dllexport)
13# else
14# define EINA_API __declspec(dllimport)
15# endif
16# define EINA_API_WEAK
17#else
18# ifdef __GNUC__
19# if __GNUC__ >= 4
20# define EINA_API __attribute__ ((visibility("default")))
21# define EINA_API_WEAK __attribute__ ((weak))
22# else
23# define EINA_API
24# define EINA_API_WEAK
25# endif
26# else
27# define EINA_API
28# endif
29#endif
30
31#endif
diff --git a/src/lib/eina/eina_array.c b/src/lib/eina/eina_array.c
index cda5181213..a7c50d28dd 100644
--- a/src/lib/eina/eina_array.c
+++ b/src/lib/eina/eina_array.c
@@ -191,7 +191,7 @@ eina_array_accessor_clone(const Eina_Accessor_Array *it)
191} 191}
192 192
193/* used from eina_inline_array.x, thus a needed symbol */ 193/* used from eina_inline_array.x, thus a needed symbol */
194EAPI Eina_Bool 194EINA_API Eina_Bool
195eina_array_grow(Eina_Array *array) 195eina_array_grow(Eina_Array *array)
196{ 196{
197 void **tmp; 197 void **tmp;
@@ -272,7 +272,7 @@ eina_array_shutdown(void)
272 * API * 272 * API *
273 *============================================================================*/ 273 *============================================================================*/
274 274
275EAPI Eina_Array * 275EINA_API Eina_Array *
276eina_array_new(unsigned int step) 276eina_array_new(unsigned int step)
277{ 277{
278 Eina_Array *array; 278 Eina_Array *array;
@@ -291,7 +291,7 @@ eina_array_new(unsigned int step)
291 return array; 291 return array;
292} 292}
293 293
294EAPI void 294EINA_API void
295eina_array_free(Eina_Array *array) 295eina_array_free(Eina_Array *array)
296{ 296{
297 if (!array) return; 297 if (!array) return;
@@ -301,7 +301,7 @@ eina_array_free(Eina_Array *array)
301 MAGIC_FREE(array); 301 MAGIC_FREE(array);
302} 302}
303 303
304EAPI void 304EINA_API void
305eina_array_step_set(Eina_Array *array, 305eina_array_step_set(Eina_Array *array,
306 unsigned int sizeof_eina_array, 306 unsigned int sizeof_eina_array,
307 unsigned int step) 307 unsigned int step)
@@ -326,7 +326,7 @@ eina_array_step_set(Eina_Array *array,
326 EINA_MAGIC_SET(array, EINA_MAGIC_ARRAY); 326 EINA_MAGIC_SET(array, EINA_MAGIC_ARRAY);
327} 327}
328 328
329EAPI void 329EINA_API void
330eina_array_flush(Eina_Array *array) 330eina_array_flush(Eina_Array *array)
331{ 331{
332 EINA_SAFETY_ON_NULL_RETURN(array); 332 EINA_SAFETY_ON_NULL_RETURN(array);
@@ -342,7 +342,7 @@ eina_array_flush(Eina_Array *array)
342 array->data = NULL; 342 array->data = NULL;
343} 343}
344 344
345EAPI Eina_Bool 345EINA_API Eina_Bool
346eina_array_remove(Eina_Array *array, Eina_Bool (*keep)(void *data, 346eina_array_remove(Eina_Array *array, Eina_Bool (*keep)(void *data,
347 void *gdata), 347 void *gdata),
348 void *gdata) 348 void *gdata)
@@ -390,7 +390,7 @@ eina_array_remove(Eina_Array *array, Eina_Bool (*keep)(void *data,
390 return EINA_TRUE; 390 return EINA_TRUE;
391} 391}
392 392
393EAPI Eina_Iterator * 393EINA_API Eina_Iterator *
394eina_array_iterator_new(const Eina_Array *array) 394eina_array_iterator_new(const Eina_Array *array)
395{ 395{
396 Eina_Iterator_Array *it; 396 Eina_Iterator_Array *it;
@@ -415,7 +415,7 @@ eina_array_iterator_new(const Eina_Array *array)
415 return &it->iterator; 415 return &it->iterator;
416} 416}
417 417
418EAPI Eina_Accessor * 418EINA_API Eina_Accessor *
419eina_array_accessor_new(const Eina_Array *array) 419eina_array_accessor_new(const Eina_Array *array)
420{ 420{
421 Eina_Accessor_Array *ac; 421 Eina_Accessor_Array *ac;
diff --git a/src/lib/eina/eina_array.h b/src/lib/eina/eina_array.h
index c6e62ad142..3c4eb6f753 100644
--- a/src/lib/eina/eina_array.h
+++ b/src/lib/eina/eina_array.h
@@ -251,7 +251,7 @@ struct _Eina_Array
251 * This function return a valid array on success, or @c NULL if memory 251 * This function return a valid array on success, or @c NULL if memory
252 * allocation fails. 252 * allocation fails.
253 */ 253 */
254EAPI Eina_Array *eina_array_new(unsigned int step) EINA_WARN_UNUSED_RESULT EINA_MALLOC EINA_WARN_UNUSED_RESULT; 254EINA_API Eina_Array *eina_array_new(unsigned int step) EINA_WARN_UNUSED_RESULT EINA_MALLOC EINA_WARN_UNUSED_RESULT;
255 255
256/** 256/**
257 * @brief Frees an array. 257 * @brief Frees an array.
@@ -263,7 +263,7 @@ EAPI Eina_Array *eina_array_new(unsigned int step) EINA_WARN_UNUSED_RESULT EINA_
263 * does not free the memory allocated for the elements of @p array. To 263 * does not free the memory allocated for the elements of @p array. To
264 * free them, walk the array with #EINA_ARRAY_ITER_NEXT. 264 * free them, walk the array with #EINA_ARRAY_ITER_NEXT.
265 */ 265 */
266EAPI void eina_array_free(Eina_Array *array); 266EINA_API void eina_array_free(Eina_Array *array);
267 267
268/** 268/**
269 * @brief Sets the step of an array. 269 * @brief Sets the step of an array.
@@ -278,7 +278,7 @@ EAPI void eina_array_free(Eina_Array *array);
278 * 278 *
279 * @warning This function can @b only be called on uninitialized arrays. 279 * @warning This function can @b only be called on uninitialized arrays.
280 */ 280 */
281EAPI void eina_array_step_set(Eina_Array *array, 281EINA_API void eina_array_step_set(Eina_Array *array,
282 unsigned int sizeof_eina_array, 282 unsigned int sizeof_eina_array,
283 unsigned int step) EINA_ARG_NONNULL(1); 283 unsigned int step) EINA_ARG_NONNULL(1);
284/** 284/**
@@ -303,7 +303,7 @@ static inline void eina_array_clean(Eina_Array *array) EINA_ARG_NONNULL(1);
303 * there is no check of @p array. If it is @c NULL or invalid, the 303 * there is no check of @p array. If it is @c NULL or invalid, the
304 * program may crash. 304 * program may crash.
305 */ 305 */
306EAPI void eina_array_flush(Eina_Array *array) EINA_ARG_NONNULL(1); 306EINA_API void eina_array_flush(Eina_Array *array) EINA_ARG_NONNULL(1);
307 307
308/** 308/**
309 * @brief Rebuilds an array by specifying the data to keep. 309 * @brief Rebuilds an array by specifying the data to keep.
@@ -321,7 +321,7 @@ EAPI void eina_array_flush(Eina_Array *array) EINA_ARG_NONNULL(1);
321 * If it wasn't able to remove items due to an allocation failure, it will 321 * If it wasn't able to remove items due to an allocation failure, it will
322 * return #EINA_FALSE. 322 * return #EINA_FALSE.
323 */ 323 */
324EAPI Eina_Bool eina_array_remove(Eina_Array * array, 324EINA_API Eina_Bool eina_array_remove(Eina_Array * array,
325 Eina_Bool (*keep)(void *data, void *gdata), 325 Eina_Bool (*keep)(void *data, void *gdata),
326 void *gdata) EINA_ARG_NONNULL(1, 2); 326 void *gdata) EINA_ARG_NONNULL(1, 2);
327 327
@@ -441,7 +441,7 @@ static inline Eina_Bool eina_array_find(const Eina_Array *array,
441 * 441 *
442 * @see Eina_Iterator_Group 442 * @see Eina_Iterator_Group
443 */ 443 */
444EAPI Eina_Iterator *eina_array_iterator_new(const Eina_Array *array) EINA_MALLOC EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; 444EINA_API Eina_Iterator *eina_array_iterator_new(const Eina_Array *array) EINA_MALLOC EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
445 445
446/** 446/**
447 * @brief Gets a new accessor associated with an array. 447 * @brief Gets a new accessor associated with an array.
@@ -456,7 +456,7 @@ EAPI Eina_Iterator *eina_array_iterator_new(const Eina_Array *array) EINA
456 * 456 *
457 * @see Eina_Accessor_Group 457 * @see Eina_Accessor_Group
458 */ 458 */
459EAPI Eina_Accessor *eina_array_accessor_new(const Eina_Array *array) EINA_MALLOC EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; 459EINA_API Eina_Accessor *eina_array_accessor_new(const Eina_Array *array) EINA_MALLOC EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
460 460
461/** 461/**
462 * @brief Iterates over an array using a callback function. 462 * @brief Iterates over an array using a callback function.
diff --git a/src/lib/eina/eina_benchmark.c b/src/lib/eina/eina_benchmark.c
index 7afa8e8e56..3b4f07bc46 100644
--- a/src/lib/eina/eina_benchmark.c
+++ b/src/lib/eina/eina_benchmark.c
@@ -134,7 +134,7 @@ eina_benchmark_shutdown(void)
134* API * 134* API *
135*============================================================================*/ 135*============================================================================*/
136 136
137EAPI Eina_Benchmark * 137EINA_API Eina_Benchmark *
138eina_benchmark_new(const char *name, const char *run) 138eina_benchmark_new(const char *name, const char *run)
139{ 139{
140 Eina_Benchmark *new; 140 Eina_Benchmark *new;
@@ -148,7 +148,7 @@ eina_benchmark_new(const char *name, const char *run)
148 return new; 148 return new;
149} 149}
150 150
151EAPI void 151EINA_API void
152eina_benchmark_free(Eina_Benchmark *bench) 152eina_benchmark_free(Eina_Benchmark *bench)
153{ 153{
154 Eina_Array *names; 154 Eina_Array *names;
@@ -179,7 +179,7 @@ eina_benchmark_free(Eina_Benchmark *bench)
179 free(bench); 179 free(bench);
180} 180}
181 181
182EAPI Eina_Bool 182EINA_API Eina_Bool
183eina_benchmark_register(Eina_Benchmark *bench, 183eina_benchmark_register(Eina_Benchmark *bench,
184 const char *name, 184 const char *name,
185 Eina_Benchmark_Specimens bench_cb, 185 Eina_Benchmark_Specimens bench_cb,
@@ -209,7 +209,7 @@ eina_benchmark_register(Eina_Benchmark *bench,
209 return EINA_TRUE; 209 return EINA_TRUE;
210} 210}
211 211
212EAPI Eina_Array * 212EINA_API Eina_Array *
213eina_benchmark_run(Eina_Benchmark *bench) 213eina_benchmark_run(Eina_Benchmark *bench)
214{ 214{
215 FILE *main_script; 215 FILE *main_script;
diff --git a/src/lib/eina/eina_benchmark.h b/src/lib/eina/eina_benchmark.h
index 38959a1306..def9ed1ea2 100644
--- a/src/lib/eina/eina_benchmark.h
+++ b/src/lib/eina/eina_benchmark.h
@@ -367,7 +367,7 @@ typedef void (*Eina_Benchmark_Specimens)(int request);
367 * When the new module is not needed anymore, use 367 * When the new module is not needed anymore, use
368 * eina_benchmark_free() to free the allocated memory. 368 * eina_benchmark_free() to free the allocated memory.
369 */ 369 */
370EAPI Eina_Benchmark *eina_benchmark_new(const char *name, 370EINA_API Eina_Benchmark *eina_benchmark_new(const char *name,
371 const char *run); 371 const char *run);
372 372
373/** 373/**
@@ -379,7 +379,7 @@ EAPI Eina_Benchmark *eina_benchmark_new(const char *name,
379 * registered and frees @p bench. If @p bench is @c NULL, this 379 * registered and frees @p bench. If @p bench is @c NULL, this
380 * function returns immediately. 380 * function returns immediately.
381 */ 381 */
382EAPI void eina_benchmark_free(Eina_Benchmark *bench); 382EINA_API void eina_benchmark_free(Eina_Benchmark *bench);
383 383
384/** 384/**
385 * @brief Adds a test to a benchmark. 385 * @brief Adds a test to a benchmark.
@@ -401,7 +401,7 @@ EAPI void eina_benchmark_free(Eina_Benchmark *bench);
401 * If @p bench is @c NULL or @p count_step is 0, this function returns 401 * If @p bench is @c NULL or @p count_step is 0, this function returns
402 * immediately and does not add any tests to the benchmark. 402 * immediately and does not add any tests to the benchmark.
403 */ 403 */
404EAPI Eina_Bool eina_benchmark_register(Eina_Benchmark *bench, 404EINA_API Eina_Bool eina_benchmark_register(Eina_Benchmark *bench,
405 const char *name, 405 const char *name,
406 Eina_Benchmark_Specimens bench_cb, 406 Eina_Benchmark_Specimens bench_cb,
407 int count_start, 407 int count_start,
@@ -430,7 +430,7 @@ EAPI Eina_Bool eina_benchmark_register(Eina_Benchmark *bench,
430 * the gnuplot file. The number of times each test is executed is 430 * the gnuplot file. The number of times each test is executed is
431 * controlled by the parameters passed to eina_benchmark_register(). 431 * controlled by the parameters passed to eina_benchmark_register().
432 */ 432 */
433EAPI Eina_Array *eina_benchmark_run(Eina_Benchmark *bench); 433EINA_API Eina_Array *eina_benchmark_run(Eina_Benchmark *bench);
434 434
435/** 435/**
436 * @} 436 * @}
diff --git a/src/lib/eina/eina_bezier.c b/src/lib/eina/eina_bezier.c
index b3b093c790..43dbe33578 100644
--- a/src/lib/eina/eina_bezier.c
+++ b/src/lib/eina/eina_bezier.c
@@ -106,7 +106,7 @@ _eina_bezier_length_helper(const Eina_Bezier *b)
106 return len; 106 return len;
107} 107}
108 108
109EAPI void 109EINA_API void
110eina_bezier_values_set(Eina_Bezier *b, 110eina_bezier_values_set(Eina_Bezier *b,
111 double start_x, double start_y, 111 double start_x, double start_y,
112 double ctrl_start_x, double ctrl_start_y, 112 double ctrl_start_x, double ctrl_start_y,
@@ -123,7 +123,7 @@ eina_bezier_values_set(Eina_Bezier *b,
123 b->end.y = end_y; 123 b->end.y = end_y;
124} 124}
125 125
126EAPI void 126EINA_API void
127eina_bezier_values_get(const Eina_Bezier *b, 127eina_bezier_values_get(const Eina_Bezier *b,
128 double *start_x, double *start_y, 128 double *start_x, double *start_y,
129 double *ctrl_start_x, double *ctrl_start_y, 129 double *ctrl_start_x, double *ctrl_start_y,
@@ -141,7 +141,7 @@ eina_bezier_values_get(const Eina_Bezier *b,
141} 141}
142 142
143 143
144EAPI void 144EINA_API void
145eina_bezier_point_at(const Eina_Bezier *bz, double t, double *px, double *py) 145eina_bezier_point_at(const Eina_Bezier *bz, double t, double *px, double *py)
146{ 146{
147 double m_t = 1.0 - t; 147 double m_t = 1.0 - t;
@@ -169,7 +169,7 @@ eina_bezier_point_at(const Eina_Bezier *bz, double t, double *px, double *py)
169 } 169 }
170} 170}
171 171
172EAPI double 172EINA_API double
173eina_bezier_angle_at(const Eina_Bezier *b, double t) 173eina_bezier_angle_at(const Eina_Bezier *b, double t)
174{ 174{
175 double x, y; 175 double x, y;
@@ -183,7 +183,7 @@ eina_bezier_angle_at(const Eina_Bezier *b, double t)
183 return theta_normalized; 183 return theta_normalized;
184} 184}
185 185
186EAPI double 186EINA_API double
187eina_bezier_length_get(const Eina_Bezier *b) 187eina_bezier_length_get(const Eina_Bezier *b)
188{ 188{
189 return _eina_bezier_length_helper(b); 189 return _eina_bezier_length_helper(b);
@@ -218,7 +218,7 @@ _eina_bezier_split_left(Eina_Bezier *b, double t, Eina_Bezier *left)
218 left->end.y = b->start.y = left->ctrl_end.y + t * (b->ctrl_start.y - left->ctrl_end.y); 218 left->end.y = b->start.y = left->ctrl_end.y + t * (b->ctrl_start.y - left->ctrl_end.y);
219} 219}
220 220
221EAPI double 221EINA_API double
222eina_bezier_t_at(const Eina_Bezier *b, double l) 222eina_bezier_t_at(const Eina_Bezier *b, double l)
223{ 223{
224 double len = eina_bezier_length_get(b); 224 double len = eina_bezier_length_get(b);
@@ -256,7 +256,7 @@ eina_bezier_t_at(const Eina_Bezier *b, double l)
256 return t; 256 return t;
257} 257}
258 258
259EAPI void 259EINA_API void
260eina_bezier_split_at_length(const Eina_Bezier *b, double len, 260eina_bezier_split_at_length(const Eina_Bezier *b, double len,
261 Eina_Bezier *left, Eina_Bezier *right) 261 Eina_Bezier *left, Eina_Bezier *right)
262{ 262{
@@ -270,7 +270,7 @@ eina_bezier_split_at_length(const Eina_Bezier *b, double len,
270 _eina_bezier_split_left(right, t, left); 270 _eina_bezier_split_left(right, t, left);
271} 271}
272 272
273EAPI void 273EINA_API void
274eina_bezier_bounds_get(const Eina_Bezier *b, double *x, double *y, double *w, double *h) 274eina_bezier_bounds_get(const Eina_Bezier *b, double *x, double *y, double *w, double *h)
275{ 275{
276 double xmin = b->start.x; 276 double xmin = b->start.x;
@@ -310,7 +310,7 @@ eina_bezier_bounds_get(const Eina_Bezier *b, double *x, double *y, double *w, do
310 if (h) *h = ymax - ymin; 310 if (h) *h = ymax - ymin;
311} 311}
312 312
313EAPI void 313EINA_API void
314eina_bezier_on_interval(Eina_Bezier *b, double t0, double t1, Eina_Bezier *result) 314eina_bezier_on_interval(Eina_Bezier *b, double t0, double t1, Eina_Bezier *result)
315{ 315{
316 Eina_Bezier bezier; 316 Eina_Bezier bezier;
diff --git a/src/lib/eina/eina_bezier.h b/src/lib/eina/eina_bezier.h
index bf309643fa..2fc04124bc 100644
--- a/src/lib/eina/eina_bezier.h
+++ b/src/lib/eina/eina_bezier.h
@@ -64,7 +64,7 @@ struct _Eina_Bezier
64 * @p b. No check is done on @p b. 64 * @p b. No check is done on @p b.
65 * @since 1.16 65 * @since 1.16
66 */ 66 */
67EAPI void eina_bezier_values_set(Eina_Bezier *b, double start_x, double start_y, double ctrl_start_x, double ctrl_start_y, double ctrl_end_x, double ctrl_end_y, double end_x, double end_y) EINA_ARG_NONNULL(1); 67EINA_API void eina_bezier_values_set(Eina_Bezier *b, double start_x, double start_y, double ctrl_start_x, double ctrl_start_y, double ctrl_end_x, double ctrl_end_y, double end_x, double end_y) EINA_ARG_NONNULL(1);
68 68
69/** 69/**
70 * @brief Gets the values of the points of the given floating 70 * @brief Gets the values of the points of the given floating
@@ -83,7 +83,7 @@ EAPI void eina_bezier_values_set(Eina_Bezier *b, double start_x, double start_y,
83 * @p b. No check is done on @p b. 83 * @p b. No check is done on @p b.
84 * @since 1.16 84 * @since 1.16
85 */ 85 */
86EAPI void eina_bezier_values_get(const Eina_Bezier *b, double *start_x, double *start_y, double *ctrl_start_x, double *ctrl_start_y, double *ctrl_end_x, double *ctrl_end_y, double *end_x, double *end_y) EINA_ARG_NONNULL(1); 86EINA_API void eina_bezier_values_get(const Eina_Bezier *b, double *start_x, double *start_y, double *ctrl_start_x, double *ctrl_start_y, double *ctrl_end_x, double *ctrl_end_y, double *end_x, double *end_y) EINA_ARG_NONNULL(1);
87 87
88/** 88/**
89 * @brief Calculates the approximate length of the given floating point 89 * @brief Calculates the approximate length of the given floating point
@@ -99,7 +99,7 @@ EAPI void eina_bezier_values_get(const Eina_Bezier *b, double *start_x, double *
99 * No check is done on @p b. 99 * No check is done on @p b.
100 * @since 1.16 100 * @since 1.16
101 */ 101 */
102EAPI double eina_bezier_length_get(const Eina_Bezier *b) EINA_ARG_NONNULL(1); 102EINA_API double eina_bezier_length_get(const Eina_Bezier *b) EINA_ARG_NONNULL(1);
103 103
104/** 104/**
105 * @brief Returns the relative position on a bezier at a given length. 105 * @brief Returns the relative position on a bezier at a given length.
@@ -116,7 +116,7 @@ EAPI double eina_bezier_length_get(const Eina_Bezier *b) EINA_ARG_NONNULL(1);
116 * 116 *
117 * @since 1.16 117 * @since 1.16
118 */ 118 */
119EAPI double eina_bezier_t_at(const Eina_Bezier *b, double len) EINA_ARG_NONNULL(1); 119EINA_API double eina_bezier_t_at(const Eina_Bezier *b, double len) EINA_ARG_NONNULL(1);
120 120
121/** 121/**
122 * @brief Gets the point on the bezier curve at position t. 122 * @brief Gets the point on the bezier curve at position t.
@@ -129,7 +129,7 @@ EAPI double eina_bezier_t_at(const Eina_Bezier *b, double len) EINA_ARG_NONNULL(
129 * No check is done on @p b. 129 * No check is done on @p b.
130 * @since 1.16 130 * @since 1.16
131 */ 131 */
132EAPI void eina_bezier_point_at(const Eina_Bezier *b, double t, double *px, double *py) EINA_ARG_NONNULL(1); 132EINA_API void eina_bezier_point_at(const Eina_Bezier *b, double t, double *px, double *py) EINA_ARG_NONNULL(1);
133 133
134/** 134/**
135 * @brief Determines the slope of the bezier at a given position. 135 * @brief Determines the slope of the bezier at a given position.
@@ -140,7 +140,7 @@ EAPI void eina_bezier_point_at(const Eina_Bezier *b, double t, double *px, doubl
140 * No check is done on @p b. 140 * No check is done on @p b.
141 * @since 1.16 141 * @since 1.16
142 */ 142 */
143EAPI double eina_bezier_angle_at(const Eina_Bezier *b, double t) EINA_ARG_NONNULL(1); 143EINA_API double eina_bezier_angle_at(const Eina_Bezier *b, double t) EINA_ARG_NONNULL(1);
144 144
145/** 145/**
146 * @brief Splits the bezier at a given length. 146 * @brief Splits the bezier at a given length.
@@ -153,7 +153,7 @@ EAPI double eina_bezier_angle_at(const Eina_Bezier *b, double t) EINA_ARG_NONNUL
153 * No check is done on @p b. 153 * No check is done on @p b.
154 * @since 1.16 154 * @since 1.16
155 */ 155 */
156EAPI void eina_bezier_split_at_length(const Eina_Bezier *b, double len, Eina_Bezier *left, Eina_Bezier *right) EINA_ARG_NONNULL(1); 156EINA_API void eina_bezier_split_at_length(const Eina_Bezier *b, double len, Eina_Bezier *left, Eina_Bezier *right) EINA_ARG_NONNULL(1);
157 157
158/** 158/**
159 * @brief Calculates the bounding box for the bezier. 159 * @brief Calculates the bounding box for the bezier.
@@ -167,7 +167,7 @@ EAPI void eina_bezier_split_at_length(const Eina_Bezier *b, double len, Eina_Bez
167 * No check is done on @p b. 167 * No check is done on @p b.
168 * @since 1.17 168 * @since 1.17
169 */ 169 */
170EAPI void eina_bezier_bounds_get(const Eina_Bezier *b, double *x, double *y, double *w, double *h) EINA_ARG_NONNULL(1); 170EINA_API void eina_bezier_bounds_get(const Eina_Bezier *b, double *x, double *y, double *w, double *h) EINA_ARG_NONNULL(1);
171 171
172/** 172/**
173 * @brief Finds the bezier between the given interval. 173 * @brief Finds the bezier between the given interval.
@@ -180,6 +180,6 @@ EAPI void eina_bezier_bounds_get(const Eina_Bezier *b, double *x, double *y, dou
180 * No check is done on @p b. 180 * No check is done on @p b.
181 * @since 1.17 181 * @since 1.17
182 */ 182 */
183EAPI void eina_bezier_on_interval(Eina_Bezier *b, double t0, double t1, Eina_Bezier *result); 183EINA_API void eina_bezier_on_interval(Eina_Bezier *b, double t0, double t1, Eina_Bezier *result);
184 184
185#endif // EINA_BEZIER_H 185#endif // EINA_BEZIER_H
diff --git a/src/lib/eina/eina_binbuf.c b/src/lib/eina/eina_binbuf.c
index d392686c33..9e7e5de337 100644
--- a/src/lib/eina/eina_binbuf.c
+++ b/src/lib/eina/eina_binbuf.c
@@ -53,7 +53,7 @@ static const char __BINBUF_MAGIC_STR[] = "Eina Binbuf";
53 53
54#include "eina_binbuf_template_c.x" 54#include "eina_binbuf_template_c.x"
55 55
56EAPI Eina_Binbuf * 56EINA_API Eina_Binbuf *
57eina_binbuf_manage_new(const unsigned char *str, size_t length, Eina_Bool ro) 57eina_binbuf_manage_new(const unsigned char *str, size_t length, Eina_Bool ro)
58{ 58{
59 Eina_Binbuf *buf; 59 Eina_Binbuf *buf;
diff --git a/src/lib/eina/eina_binbuf.h b/src/lib/eina/eina_binbuf.h
index dbbcf9e31a..99cda39f15 100644
--- a/src/lib/eina/eina_binbuf.h
+++ b/src/lib/eina/eina_binbuf.h
@@ -47,7 +47,7 @@ typedef struct _Eina_Strbuf Eina_Binbuf;
47 * @see eina_binbuf_append() 47 * @see eina_binbuf_append()
48 * @see eina_binbuf_string_get() 48 * @see eina_binbuf_string_get()
49 */ 49 */
50EAPI Eina_Binbuf *eina_binbuf_new(void) EINA_MALLOC EINA_WARN_UNUSED_RESULT; 50EINA_API Eina_Binbuf *eina_binbuf_new(void) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
51 51
52/** 52/**
53 * @brief Creates a new string buffer using the passed string. 53 * @brief Creates a new string buffer using the passed string.
@@ -73,7 +73,7 @@ EAPI Eina_Binbuf *eina_binbuf_new(void) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
73 * 73 *
74 * @since 1.14.0 74 * @since 1.14.0
75 */ 75 */
76EAPI Eina_Binbuf *eina_binbuf_manage_new(const unsigned char *str, size_t length, Eina_Bool ro) EINA_MALLOC EINA_WARN_UNUSED_RESULT; 76EINA_API Eina_Binbuf *eina_binbuf_manage_new(const unsigned char *str, size_t length, Eina_Bool ro) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
77 77
78/** 78/**
79 * @brief Creates a new string buffer using the passed string. 79 * @brief Creates a new string buffer using the passed string.
@@ -89,7 +89,7 @@ EAPI Eina_Binbuf *eina_binbuf_manage_new(const unsigned char *str, size_t length
89 * 89 *
90 * @since 1.2.0 90 * @since 1.2.0
91 */ 91 */
92EAPI Eina_Binbuf *eina_binbuf_manage_new_length(unsigned char *str, size_t length) EINA_MALLOC EINA_WARN_UNUSED_RESULT EINA_DEPRECATED; 92EINA_API Eina_Binbuf *eina_binbuf_manage_new_length(unsigned char *str, size_t length) EINA_MALLOC EINA_WARN_UNUSED_RESULT EINA_DEPRECATED;
93 93
94/** 94/**
95 * @brief Creates a new string buffer using the passed string. 95 * @brief Creates a new string buffer using the passed string.
@@ -110,7 +110,7 @@ EAPI Eina_Binbuf *eina_binbuf_manage_new_length(unsigned char *str, size_t lengt
110 * 110 *
111 * @since 1.9.0 111 * @since 1.9.0
112 */ 112 */
113EAPI Eina_Binbuf *eina_binbuf_manage_read_only_new_length(const unsigned char *str, size_t length) EINA_MALLOC EINA_WARN_UNUSED_RESULT EINA_DEPRECATED; 113EINA_API Eina_Binbuf *eina_binbuf_manage_read_only_new_length(const unsigned char *str, size_t length) EINA_MALLOC EINA_WARN_UNUSED_RESULT EINA_DEPRECATED;
114 114
115/** 115/**
116 * @brief Frees a string buffer. 116 * @brief Frees a string buffer.
@@ -120,7 +120,7 @@ EAPI Eina_Binbuf *eina_binbuf_manage_read_only_new_length(const unsigned char *s
120 * This function frees the memory of @p buf. @p buf must have been 120 * This function frees the memory of @p buf. @p buf must have been
121 * created by eina_binbuf_new(). 121 * created by eina_binbuf_new().
122 */ 122 */
123EAPI void eina_binbuf_free(Eina_Binbuf *buf) EINA_ARG_NONNULL(1); 123EINA_API void eina_binbuf_free(Eina_Binbuf *buf) EINA_ARG_NONNULL(1);
124 124
125/** 125/**
126 * @brief Resets a string buffer. 126 * @brief Resets a string buffer.
@@ -130,7 +130,7 @@ EAPI void eina_binbuf_free(Eina_Binbuf *buf) EINA_ARG_NONNULL(1);
130 * This function resets @p buf: the buffer len is set to 0, and the 130 * This function resets @p buf: the buffer len is set to 0, and the
131 * string is set to '\\0'. No memory is freed. 131 * string is set to '\\0'. No memory is freed.
132 */ 132 */
133EAPI void eina_binbuf_reset(Eina_Binbuf *buf) EINA_ARG_NONNULL(1); 133EINA_API void eina_binbuf_reset(Eina_Binbuf *buf) EINA_ARG_NONNULL(1);
134 134
135/** 135/**
136 * @brief Expands a buffer, making room for at least @p minimum_unused_space. 136 * @brief Expands a buffer, making room for at least @p minimum_unused_space.
@@ -160,7 +160,7 @@ EAPI void eina_binbuf_reset(Eina_Binbuf *buf) EINA_ARG_NONNULL(1);
160 * 160 *
161 * @since 1.19 161 * @since 1.19
162 */ 162 */
163EAPI Eina_Rw_Slice eina_binbuf_expand(Eina_Binbuf *buf, size_t minimum_unused_space) EINA_ARG_NONNULL(1); 163EINA_API Eina_Rw_Slice eina_binbuf_expand(Eina_Binbuf *buf, size_t minimum_unused_space) EINA_ARG_NONNULL(1);
164 164
165/** 165/**
166 * @brief Marks more bytes as used. 166 * @brief Marks more bytes as used.
@@ -180,7 +180,7 @@ EAPI Eina_Rw_Slice eina_binbuf_expand(Eina_Binbuf *buf, size_t minimum_unused_sp
180 * 180 *
181 * @since 1.19 181 * @since 1.19
182 */ 182 */
183EAPI Eina_Bool eina_binbuf_use(Eina_Binbuf *buf, size_t extra_bytes) EINA_ARG_NONNULL(1); 183EINA_API Eina_Bool eina_binbuf_use(Eina_Binbuf *buf, size_t extra_bytes) EINA_ARG_NONNULL(1);
184 184
185/** 185/**
186 * @brief Appends a string of exact length to a buffer, reallocating as 186 * @brief Appends a string of exact length to a buffer, reallocating as
@@ -200,7 +200,7 @@ EAPI Eina_Bool eina_binbuf_use(Eina_Binbuf *buf, size_t extra_bytes) EINA_ARG_NO
200 * @see eina_binbuf_append() 200 * @see eina_binbuf_append()
201 * @see eina_binbuf_append_n() 201 * @see eina_binbuf_append_n()
202 */ 202 */
203EAPI Eina_Bool eina_binbuf_append_length(Eina_Binbuf *buf, const unsigned char *str, size_t length) EINA_ARG_NONNULL(1, 2); 203EINA_API Eina_Bool eina_binbuf_append_length(Eina_Binbuf *buf, const unsigned char *str, size_t length) EINA_ARG_NONNULL(1, 2);
204 204
205/** 205/**
206 * @brief Appends a slice to a buffer, reallocating as necessary. 206 * @brief Appends a slice to a buffer, reallocating as necessary.
@@ -213,7 +213,7 @@ EAPI Eina_Bool eina_binbuf_append_length(Eina_Binbuf *buf, const unsigned char *
213 * 213 *
214 * @since 1.19 214 * @since 1.19
215 */ 215 */
216EAPI Eina_Bool eina_binbuf_append_slice(Eina_Binbuf *buf, const Eina_Slice slice) EINA_ARG_NONNULL(1); 216EINA_API Eina_Bool eina_binbuf_append_slice(Eina_Binbuf *buf, const Eina_Slice slice) EINA_ARG_NONNULL(1);
217 217
218/** 218/**
219 * @brief Appends an Eina_Binbuf to a buffer, reallocating as necessary. 219 * @brief Appends an Eina_Binbuf to a buffer, reallocating as necessary.
@@ -232,7 +232,7 @@ EAPI Eina_Bool eina_binbuf_append_slice(Eina_Binbuf *buf, const Eina_Slice slice
232 * 232 *
233 * @since 1.9.0 233 * @since 1.9.0
234 */ 234 */
235EAPI Eina_Bool eina_binbuf_append_buffer(Eina_Binbuf *buf, const Eina_Binbuf *data) EINA_ARG_NONNULL(1, 2); 235EINA_API Eina_Bool eina_binbuf_append_buffer(Eina_Binbuf *buf, const Eina_Binbuf *data) EINA_ARG_NONNULL(1, 2);
236 236
237/** 237/**
238 * @brief Appends a character to a string buffer, reallocating as 238 * @brief Appends a character to a string buffer, reallocating as
@@ -244,7 +244,7 @@ EAPI Eina_Bool eina_binbuf_append_buffer(Eina_Binbuf *buf, const Eina_Binbuf *da
244 * 244 *
245 * This function appends @p c to @p buf. 245 * This function appends @p c to @p buf.
246 */ 246 */
247EAPI Eina_Bool eina_binbuf_append_char(Eina_Binbuf *buf, unsigned char c) EINA_ARG_NONNULL(1); 247EINA_API Eina_Bool eina_binbuf_append_char(Eina_Binbuf *buf, unsigned char c) EINA_ARG_NONNULL(1);
248 248
249/** 249/**
250 * @brief Inserts a string of exact length into a buffer, reallocating as necessary. 250 * @brief Inserts a string of exact length into a buffer, reallocating as necessary.
@@ -264,7 +264,7 @@ EAPI Eina_Bool eina_binbuf_append_char(Eina_Binbuf *buf, unsigned char c) EINA_A
264 * @see eina_binbuf_insert() 264 * @see eina_binbuf_insert()
265 * @see eina_binbuf_insert_n() 265 * @see eina_binbuf_insert_n()
266 */ 266 */
267EAPI Eina_Bool eina_binbuf_insert_length(Eina_Binbuf *buf, const unsigned char *str, size_t length, size_t pos) EINA_ARG_NONNULL(1, 2); 267EINA_API Eina_Bool eina_binbuf_insert_length(Eina_Binbuf *buf, const unsigned char *str, size_t length, size_t pos) EINA_ARG_NONNULL(1, 2);
268 268
269/** 269/**
270 * @brief Inserts a slice into a buffer, reallocating as necessary. 270 * @brief Inserts a slice into a buffer, reallocating as necessary.
@@ -278,7 +278,7 @@ EAPI Eina_Bool eina_binbuf_insert_length(Eina_Binbuf *buf, const unsigned char *
278 * 278 *
279 * @since 1.19.0 279 * @since 1.19.0
280 */ 280 */
281EAPI Eina_Bool eina_binbuf_insert_slice(Eina_Binbuf *buf, const Eina_Slice slice, size_t pos) EINA_ARG_NONNULL(1); 281EINA_API Eina_Bool eina_binbuf_insert_slice(Eina_Binbuf *buf, const Eina_Slice slice, size_t pos) EINA_ARG_NONNULL(1);
282 282
283/** 283/**
284 * @brief Inserts a character into a string buffer, reallocating as 284 * @brief Inserts a character into a string buffer, reallocating as
@@ -291,7 +291,7 @@ EAPI Eina_Bool eina_binbuf_insert_slice(Eina_Binbuf *buf, const Eina_Slice slice
291 * 291 *
292 * This function inserts @p c to @p buf at position @p pos. 292 * This function inserts @p c to @p buf at position @p pos.
293 */ 293 */
294EAPI Eina_Bool eina_binbuf_insert_char(Eina_Binbuf *buf, unsigned char c, size_t pos) EINA_ARG_NONNULL(1); 294EINA_API Eina_Bool eina_binbuf_insert_char(Eina_Binbuf *buf, unsigned char c, size_t pos) EINA_ARG_NONNULL(1);
295 295
296/** 296/**
297 * @brief Removes a slice of the given string buffer. 297 * @brief Removes a slice of the given string buffer.
@@ -307,7 +307,7 @@ EAPI Eina_Bool eina_binbuf_insert_char(Eina_Binbuf *buf, unsigned char c, size_t
307 * (inclusive) and ending at @p end (non-inclusive). Both values are 307 * (inclusive) and ending at @p end (non-inclusive). Both values are
308 * in bytes. 308 * in bytes.
309 */ 309 */
310EAPI Eina_Bool eina_binbuf_remove(Eina_Binbuf *buf, size_t start, size_t end) EINA_ARG_NONNULL(1); 310EINA_API Eina_Bool eina_binbuf_remove(Eina_Binbuf *buf, size_t start, size_t end) EINA_ARG_NONNULL(1);
311 311
312/** 312/**
313 * @brief Retrieves a pointer to the contents of a string buffer. 313 * @brief Retrieves a pointer to the contents of a string buffer.
@@ -322,7 +322,7 @@ EAPI Eina_Bool eina_binbuf_remove(Eina_Binbuf *buf, size_t start, size_t end) EI
322 * 322 *
323 * @see eina_binbuf_string_steal() 323 * @see eina_binbuf_string_steal()
324 */ 324 */
325EAPI const unsigned char *eina_binbuf_string_get(const Eina_Binbuf *buf) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; 325EINA_API const unsigned char *eina_binbuf_string_get(const Eina_Binbuf *buf) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
326 326
327/** 327/**
328 * @brief Steals the contents of a string buffer. 328 * @brief Steals the contents of a string buffer.
@@ -337,7 +337,7 @@ EAPI const unsigned char *eina_binbuf_string_get(const Eina_Binbuf *buf) EINA_AR
337 * 337 *
338 * @see eina_binbuf_string_get() 338 * @see eina_binbuf_string_get()
339 */ 339 */
340EAPI unsigned char *eina_binbuf_string_steal(Eina_Binbuf *buf) EINA_MALLOC EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1); 340EINA_API unsigned char *eina_binbuf_string_steal(Eina_Binbuf *buf) EINA_MALLOC EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
341 341
342/** 342/**
343 * @brief Frees the contents of a string buffer but not the buffer. 343 * @brief Frees the contents of a string buffer but not the buffer.
@@ -347,7 +347,7 @@ EAPI unsigned char *eina_binbuf_string_steal(Eina_Binbuf *buf) EINA_MALLOC EINA_
347 * This function frees the string contained in @p buf without freeing 347 * This function frees the string contained in @p buf without freeing
348 * @p buf. 348 * @p buf.
349 */ 349 */
350EAPI void eina_binbuf_string_free(Eina_Binbuf *buf) EINA_ARG_NONNULL(1); 350EINA_API void eina_binbuf_string_free(Eina_Binbuf *buf) EINA_ARG_NONNULL(1);
351 351
352/** 352/**
353 * @brief Retrieves the length of the string buffer's content. 353 * @brief Retrieves the length of the string buffer's content.
@@ -357,7 +357,7 @@ EAPI void eina_binbuf_string_free(Eina_Binbuf *buf) EINA_ARG_NONNULL(1);
357 * 357 *
358 * This function returns the length of @p buf. 358 * This function returns the length of @p buf.
359 */ 359 */
360EAPI size_t eina_binbuf_length_get(const Eina_Binbuf *buf) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; 360EINA_API size_t eina_binbuf_length_get(const Eina_Binbuf *buf) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
361 361
362/** 362/**
363 * @brief Gets a read-only slice of the buffer contents. 363 * @brief Gets a read-only slice of the buffer contents.
@@ -368,7 +368,7 @@ EAPI size_t eina_binbuf_length_get(const Eina_Binbuf *buf) EINA_ARG_NONNULL(1) E
368 * 368 *
369 * @since 1.19 369 * @since 1.19
370 */ 370 */
371EAPI Eina_Slice eina_binbuf_slice_get(const Eina_Binbuf *buf) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1); 371EINA_API Eina_Slice eina_binbuf_slice_get(const Eina_Binbuf *buf) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
372 372
373/** 373/**
374 * @brief Gets a read-write slice of the buffer contents. 374 * @brief Gets a read-write slice of the buffer contents.
@@ -382,7 +382,7 @@ EAPI Eina_Slice eina_binbuf_slice_get(const Eina_Binbuf *buf) EINA_WARN_UNUSED_R
382 * 382 *
383 * @since 1.19 383 * @since 1.19
384 */ 384 */
385EAPI Eina_Rw_Slice eina_binbuf_rw_slice_get(const Eina_Binbuf *buf) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1); 385EINA_API Eina_Rw_Slice eina_binbuf_rw_slice_get(const Eina_Binbuf *buf) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
386 386
387/** 387/**
388 * @brief Frees the buffer, returning its old contents. 388 * @brief Frees the buffer, returning its old contents.
@@ -393,7 +393,7 @@ EAPI Eina_Rw_Slice eina_binbuf_rw_slice_get(const Eina_Binbuf *buf) EINA_WARN_UN
393 * 393 *
394 * @since 1.19 394 * @since 1.19
395 */ 395 */
396EAPI unsigned char* eina_binbuf_release(Eina_Binbuf *buf) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1); 396EINA_API unsigned char* eina_binbuf_release(Eina_Binbuf *buf) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
397 397
398/** 398/**
399 * @} 399 * @}
diff --git a/src/lib/eina/eina_binbuf_template_c.x b/src/lib/eina/eina_binbuf_template_c.x
index ef6a58befd..b693c44f8d 100644
--- a/src/lib/eina/eina_binbuf_template_c.x
+++ b/src/lib/eina/eina_binbuf_template_c.x
@@ -57,7 +57,7 @@ _FUNC_EXPAND(shutdown)(void)
57 * API * 57 * API *
58 *============================================================================*/ 58 *============================================================================*/
59 59
60EAPI _STRBUF_STRUCT_NAME * 60EINA_API _STRBUF_STRUCT_NAME *
61_FUNC_EXPAND(new)(void) 61_FUNC_EXPAND(new)(void)
62{ 62{
63 _STRBUF_STRUCT_NAME *buf = eina_strbuf_common_new(_STRBUF_CSIZE); 63 _STRBUF_STRUCT_NAME *buf = eina_strbuf_common_new(_STRBUF_CSIZE);
@@ -65,7 +65,7 @@ _FUNC_EXPAND(new)(void)
65 return buf; 65 return buf;
66} 66}
67 67
68EAPI _STRBUF_STRUCT_NAME * 68EINA_API _STRBUF_STRUCT_NAME *
69_FUNC_EXPAND(manage_new_length)(_STRBUF_DATA_TYPE *str, size_t length) 69_FUNC_EXPAND(manage_new_length)(_STRBUF_DATA_TYPE *str, size_t length)
70{ 70{
71 _STRBUF_STRUCT_NAME *buf = 71 _STRBUF_STRUCT_NAME *buf =
@@ -74,7 +74,7 @@ _FUNC_EXPAND(manage_new_length)(_STRBUF_DATA_TYPE *str, size_t length)
74 return buf; 74 return buf;
75} 75}
76 76
77EAPI _STRBUF_STRUCT_NAME * 77EINA_API _STRBUF_STRUCT_NAME *
78_FUNC_EXPAND(manage_read_only_new_length)(const _STRBUF_DATA_TYPE *str, size_t length) 78_FUNC_EXPAND(manage_read_only_new_length)(const _STRBUF_DATA_TYPE *str, size_t length)
79{ 79{
80 _STRBUF_STRUCT_NAME *buf = 80 _STRBUF_STRUCT_NAME *buf =
@@ -83,7 +83,7 @@ _FUNC_EXPAND(manage_read_only_new_length)(const _STRBUF_DATA_TYPE *str, size_t l
83 return buf; 83 return buf;
84} 84}
85 85
86EAPI void 86EINA_API void
87_FUNC_EXPAND(free)(_STRBUF_STRUCT_NAME *buf) 87_FUNC_EXPAND(free)(_STRBUF_STRUCT_NAME *buf)
88{ 88{
89 if (!buf) return ; 89 if (!buf) return ;
@@ -93,14 +93,14 @@ _FUNC_EXPAND(free)(_STRBUF_STRUCT_NAME *buf)
93 eina_strbuf_common_free(buf); 93 eina_strbuf_common_free(buf);
94} 94}
95 95
96EAPI void 96EINA_API void
97_FUNC_EXPAND(reset)(_STRBUF_STRUCT_NAME *buf) 97_FUNC_EXPAND(reset)(_STRBUF_STRUCT_NAME *buf)
98{ 98{
99 EINA_MAGIC_CHECK_STRBUF(buf); 99 EINA_MAGIC_CHECK_STRBUF(buf);
100 eina_strbuf_common_reset(_STRBUF_CSIZE, buf); 100 eina_strbuf_common_reset(_STRBUF_CSIZE, buf);
101} 101}
102 102
103EAPI Eina_Rw_Slice 103EINA_API Eina_Rw_Slice
104_FUNC_EXPAND(expand)(_STRBUF_STRUCT_NAME *buf, size_t minimum_unused_space) 104_FUNC_EXPAND(expand)(_STRBUF_STRUCT_NAME *buf, size_t minimum_unused_space)
105{ 105{
106 Eina_Rw_Slice ret = {.len = 0, .mem = NULL}; 106 Eina_Rw_Slice ret = {.len = 0, .mem = NULL};
@@ -108,28 +108,28 @@ _FUNC_EXPAND(expand)(_STRBUF_STRUCT_NAME *buf, size_t minimum_unused_space)
108 return eina_strbuf_common_expand(_STRBUF_CSIZE, buf, minimum_unused_space); 108 return eina_strbuf_common_expand(_STRBUF_CSIZE, buf, minimum_unused_space);
109} 109}
110 110
111EAPI Eina_Bool 111EINA_API Eina_Bool
112_FUNC_EXPAND(use)(_STRBUF_STRUCT_NAME *buf, size_t extra_bytes) 112_FUNC_EXPAND(use)(_STRBUF_STRUCT_NAME *buf, size_t extra_bytes)
113{ 113{
114 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE); 114 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE);
115 return eina_strbuf_common_use(buf, extra_bytes); 115 return eina_strbuf_common_use(buf, extra_bytes);
116} 116}
117 117
118EAPI Eina_Bool 118EINA_API Eina_Bool
119_FUNC_EXPAND(append_length)(_STRBUF_STRUCT_NAME *buf, const _STRBUF_DATA_TYPE *str, size_t length) 119_FUNC_EXPAND(append_length)(_STRBUF_STRUCT_NAME *buf, const _STRBUF_DATA_TYPE *str, size_t length)
120{ 120{
121 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE); 121 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE);
122 return eina_strbuf_common_append_length(_STRBUF_CSIZE, buf, (const void *) str, length); 122 return eina_strbuf_common_append_length(_STRBUF_CSIZE, buf, (const void *) str, length);
123} 123}
124 124
125EAPI Eina_Bool 125EINA_API Eina_Bool
126_FUNC_EXPAND(append_slice)(_STRBUF_STRUCT_NAME *buf, const Eina_Slice slice) 126_FUNC_EXPAND(append_slice)(_STRBUF_STRUCT_NAME *buf, const Eina_Slice slice)
127{ 127{
128 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE); 128 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE);
129 return eina_strbuf_common_append_length(_STRBUF_CSIZE, buf, slice.mem, slice.len); 129 return eina_strbuf_common_append_length(_STRBUF_CSIZE, buf, slice.mem, slice.len);
130} 130}
131 131
132EAPI Eina_Bool 132EINA_API Eina_Bool
133_FUNC_EXPAND(append_buffer)(_STRBUF_STRUCT_NAME *buf, const _STRBUF_STRUCT_NAME *data) 133_FUNC_EXPAND(append_buffer)(_STRBUF_STRUCT_NAME *buf, const _STRBUF_STRUCT_NAME *data)
134{ 134{
135 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE); 135 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE);
@@ -138,70 +138,70 @@ _FUNC_EXPAND(append_buffer)(_STRBUF_STRUCT_NAME *buf, const _STRBUF_STRUCT_NAME
138 return eina_strbuf_common_append_length(_STRBUF_CSIZE, buf, (_STRBUF_DATA_TYPE *) eina_strbuf_common_string_get(data), eina_strbuf_common_length_get(data)); 138 return eina_strbuf_common_append_length(_STRBUF_CSIZE, buf, (_STRBUF_DATA_TYPE *) eina_strbuf_common_string_get(data), eina_strbuf_common_length_get(data));
139} 139}
140 140
141EAPI Eina_Bool 141EINA_API Eina_Bool
142_FUNC_EXPAND(insert_length)(_STRBUF_STRUCT_NAME *buf, const _STRBUF_DATA_TYPE *str, size_t length, size_t pos) 142_FUNC_EXPAND(insert_length)(_STRBUF_STRUCT_NAME *buf, const _STRBUF_DATA_TYPE *str, size_t length, size_t pos)
143{ 143{
144 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE); 144 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE);
145 return eina_strbuf_common_insert_length(_STRBUF_CSIZE, buf, (const void *) str, length, pos); 145 return eina_strbuf_common_insert_length(_STRBUF_CSIZE, buf, (const void *) str, length, pos);
146} 146}
147 147
148EAPI Eina_Bool 148EINA_API Eina_Bool
149_FUNC_EXPAND(insert_slice)(_STRBUF_STRUCT_NAME *buf, const Eina_Slice slice, size_t pos) 149_FUNC_EXPAND(insert_slice)(_STRBUF_STRUCT_NAME *buf, const Eina_Slice slice, size_t pos)
150{ 150{
151 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE); 151 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE);
152 return eina_strbuf_common_insert_length(_STRBUF_CSIZE, buf, slice.mem, slice.len, pos); 152 return eina_strbuf_common_insert_length(_STRBUF_CSIZE, buf, slice.mem, slice.len, pos);
153} 153}
154 154
155EAPI Eina_Bool 155EINA_API Eina_Bool
156_FUNC_EXPAND(append_char)(_STRBUF_STRUCT_NAME *buf, _STRBUF_DATA_TYPE c) 156_FUNC_EXPAND(append_char)(_STRBUF_STRUCT_NAME *buf, _STRBUF_DATA_TYPE c)
157{ 157{
158 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE); 158 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE);
159 return eina_strbuf_common_append_char(_STRBUF_CSIZE, buf, (const void *) &c); 159 return eina_strbuf_common_append_char(_STRBUF_CSIZE, buf, (const void *) &c);
160} 160}
161 161
162EAPI Eina_Bool 162EINA_API Eina_Bool
163_FUNC_EXPAND(insert_char)(_STRBUF_STRUCT_NAME *buf, _STRBUF_DATA_TYPE c, size_t pos) 163_FUNC_EXPAND(insert_char)(_STRBUF_STRUCT_NAME *buf, _STRBUF_DATA_TYPE c, size_t pos)
164{ 164{
165 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE); 165 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE);
166 return eina_strbuf_common_insert_char(_STRBUF_CSIZE, buf, (const void *) &c, pos); 166 return eina_strbuf_common_insert_char(_STRBUF_CSIZE, buf, (const void *) &c, pos);
167} 167}
168 168
169EAPI Eina_Bool 169EINA_API Eina_Bool
170_FUNC_EXPAND(remove)(_STRBUF_STRUCT_NAME *buf, size_t start, size_t end) 170_FUNC_EXPAND(remove)(_STRBUF_STRUCT_NAME *buf, size_t start, size_t end)
171{ 171{
172 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE); 172 EINA_MAGIC_CHECK_STRBUF(buf, EINA_FALSE);
173 return eina_strbuf_common_remove(_STRBUF_CSIZE, buf, start, end); 173 return eina_strbuf_common_remove(_STRBUF_CSIZE, buf, start, end);
174} 174}
175 175
176EAPI const _STRBUF_DATA_TYPE * 176EINA_API const _STRBUF_DATA_TYPE *
177_FUNC_EXPAND(string_get)(const _STRBUF_STRUCT_NAME *buf) 177_FUNC_EXPAND(string_get)(const _STRBUF_STRUCT_NAME *buf)
178{ 178{
179 EINA_MAGIC_CHECK_STRBUF(buf, NULL); 179 EINA_MAGIC_CHECK_STRBUF(buf, NULL);
180 return (const _STRBUF_DATA_TYPE *) eina_strbuf_common_string_get(buf); 180 return (const _STRBUF_DATA_TYPE *) eina_strbuf_common_string_get(buf);
181} 181}
182 182
183EAPI _STRBUF_DATA_TYPE * 183EINA_API _STRBUF_DATA_TYPE *
184_FUNC_EXPAND(string_steal)(_STRBUF_STRUCT_NAME *buf) 184_FUNC_EXPAND(string_steal)(_STRBUF_STRUCT_NAME *buf)
185{ 185{
186 EINA_MAGIC_CHECK_STRBUF(buf, NULL); 186 EINA_MAGIC_CHECK_STRBUF(buf, NULL);
187 return (_STRBUF_DATA_TYPE *) eina_strbuf_common_string_steal(_STRBUF_CSIZE, buf); 187 return (_STRBUF_DATA_TYPE *) eina_strbuf_common_string_steal(_STRBUF_CSIZE, buf);
188} 188}
189 189
190EAPI void 190EINA_API void
191_FUNC_EXPAND(string_free)(_STRBUF_STRUCT_NAME *buf) 191_FUNC_EXPAND(string_free)(_STRBUF_STRUCT_NAME *buf)
192{ 192{
193 EINA_MAGIC_CHECK_STRBUF(buf); 193 EINA_MAGIC_CHECK_STRBUF(buf);
194 eina_strbuf_common_string_free(_STRBUF_CSIZE, buf); 194 eina_strbuf_common_string_free(_STRBUF_CSIZE, buf);
195} 195}
196 196
197EAPI size_t 197EINA_API size_t
198_FUNC_EXPAND(length_get)(const _STRBUF_STRUCT_NAME *buf) 198_FUNC_EXPAND(length_get)(const _STRBUF_STRUCT_NAME *buf)
199{ 199{
200 EINA_MAGIC_CHECK_STRBUF(buf, 0); 200 EINA_MAGIC_CHECK_STRBUF(buf, 0);
201 return eina_strbuf_common_length_get(buf); 201 return eina_strbuf_common_length_get(buf);
202} 202}
203 203
204EAPI Eina_Slice 204EINA_API Eina_Slice
205_FUNC_EXPAND(slice_get)(const _STRBUF_STRUCT_NAME *buf) 205_FUNC_EXPAND(slice_get)(const _STRBUF_STRUCT_NAME *buf)
206{ 206{
207 Eina_Slice ret = {.len = 0, .mem = NULL}; 207 Eina_Slice ret = {.len = 0, .mem = NULL};
@@ -209,7 +209,7 @@ _FUNC_EXPAND(slice_get)(const _STRBUF_STRUCT_NAME *buf)
209 return eina_strbuf_common_slice_get(buf); 209 return eina_strbuf_common_slice_get(buf);
210} 210}
211 211
212EAPI Eina_Rw_Slice 212EINA_API Eina_Rw_Slice
213_FUNC_EXPAND(rw_slice_get)(const _STRBUF_STRUCT_NAME *buf) 213_FUNC_EXPAND(rw_slice_get)(const _STRBUF_STRUCT_NAME *buf)
214{ 214{
215 Eina_Rw_Slice ret = {.len = 0, .mem = NULL}; 215 Eina_Rw_Slice ret = {.len = 0, .mem = NULL};
@@ -217,7 +217,7 @@ _FUNC_EXPAND(rw_slice_get)(const _STRBUF_STRUCT_NAME *buf)
217 return eina_strbuf_common_rw_slice_get(buf); 217 return eina_strbuf_common_rw_slice_get(buf);
218} 218}
219 219
220EAPI _STRBUF_DATA_TYPE* 220EINA_API _STRBUF_DATA_TYPE*
221_FUNC_EXPAND(release)(_STRBUF_STRUCT_NAME *buf) 221_FUNC_EXPAND(release)(_STRBUF_STRUCT_NAME *buf)
222{ 222{
223 _STRBUF_DATA_TYPE *result; 223 _STRBUF_DATA_TYPE *result;
diff --git a/src/lib/eina/eina_binshare.c b/src/lib/eina/eina_binshare.c
index 65edf841a4..84d0aa5208 100644
--- a/src/lib/eina/eina_binshare.c
+++ b/src/lib/eina/eina_binshare.c
@@ -83,7 +83,7 @@ static const char EINA_MAGIC_BINSHARE_NODE_STR[] = "Eina Binshare Node";
83 * 83 *
84 * @see eina_init() 84 * @see eina_init()
85 */ 85 */
86EAPI Eina_Bool 86EINA_API Eina_Bool
87eina_binshare_init(void) 87eina_binshare_init(void)
88{ 88{
89 Eina_Bool ret; 89 Eina_Bool ret;
@@ -124,7 +124,7 @@ eina_binshare_init(void)
124 * 124 *
125 * @see eina_shutdown() 125 * @see eina_shutdown()
126 */ 126 */
127EAPI Eina_Bool 127EINA_API Eina_Bool
128eina_binshare_shutdown(void) 128eina_binshare_shutdown(void)
129{ 129{
130 Eina_Bool ret; 130 Eina_Bool ret;
@@ -144,7 +144,7 @@ eina_binshare_shutdown(void)
144 * API * 144 * API *
145 *============================================================================*/ 145 *============================================================================*/
146 146
147EAPI void 147EINA_API void
148eina_binshare_del(const void *obj) 148eina_binshare_del(const void *obj)
149{ 149{
150 if (!obj) 150 if (!obj)
@@ -154,7 +154,7 @@ eina_binshare_del(const void *obj)
154 CRI("EEEK trying to del non-shared binshare %p", obj); 154 CRI("EEEK trying to del non-shared binshare %p", obj);
155} 155}
156 156
157EAPI const void * 157EINA_API const void *
158eina_binshare_add_length(const void *obj, unsigned int olen) 158eina_binshare_add_length(const void *obj, unsigned int olen)
159{ 159{
160 return eina_share_common_add_length(binshare_share, 160 return eina_share_common_add_length(binshare_share,
@@ -163,19 +163,19 @@ eina_binshare_add_length(const void *obj, unsigned int olen)
163 0); 163 0);
164} 164}
165 165
166EAPI const void * 166EINA_API const void *
167eina_binshare_ref(const void *obj) 167eina_binshare_ref(const void *obj)
168{ 168{
169 return eina_share_common_ref(binshare_share, obj); 169 return eina_share_common_ref(binshare_share, obj);
170} 170}
171 171
172EAPI int 172EINA_API int
173eina_binshare_length(const void *obj) 173eina_binshare_length(const void *obj)
174{ 174{
175 return eina_share_common_length(binshare_share, obj); 175 return eina_share_common_length(binshare_share, obj);
176} 176}
177 177
178EAPI void 178EINA_API void
179eina_binshare_dump(void) 179eina_binshare_dump(void)
180{ 180{
181 eina_share_common_dump(binshare_share, NULL, 0); 181 eina_share_common_dump(binshare_share, NULL, 0);
diff --git a/src/lib/eina/eina_binshare.h b/src/lib/eina/eina_binshare.h
index 6caee100b1..31ec3cd237 100644
--- a/src/lib/eina/eina_binshare.h
+++ b/src/lib/eina/eina_binshare.h
@@ -93,7 +93,7 @@
93 * 93 *
94 * @see eina_binshare_add() 94 * @see eina_binshare_add()
95 */ 95 */
96EAPI const void *eina_binshare_add_length(const void *obj, 96EINA_API const void *eina_binshare_add_length(const void *obj,
97 unsigned int olen) EINA_WARN_UNUSED_RESULT; 97 unsigned int olen) EINA_WARN_UNUSED_RESULT;
98 98
99/** 99/**
@@ -110,7 +110,7 @@ EAPI const void *eina_binshare_add_length(const void *obj,
110 * 110 *
111 * @note There is no unref since this is the work of eina_binshare_del(). 111 * @note There is no unref since this is the work of eina_binshare_del().
112 */ 112 */
113EAPI const void *eina_binshare_ref(const void *obj); 113EINA_API const void *eina_binshare_ref(const void *obj);
114 114
115/** 115/**
116 * @brief Notes that the given object has lost an instance. 116 * @brief Notes that the given object has lost an instance.
@@ -125,7 +125,7 @@ EAPI const void *eina_binshare_ref(const void *obj);
125 * @warning If the given pointer is not shared, bad things happen, mostly a 125 * @warning If the given pointer is not shared, bad things happen, mostly a
126 * segmentation fault. 126 * segmentation fault.
127 */ 127 */
128EAPI void eina_binshare_del(const void *obj); 128EINA_API void eina_binshare_del(const void *obj);
129 129
130/** 130/**
131 * @brief Notes that the given object @b must be shared. 131 * @brief Notes that the given object @b must be shared.
@@ -138,7 +138,7 @@ EAPI void eina_binshare_del(const void *obj);
138 * @warning If the given pointer is not shared, bad things happen, mostly a 138 * @warning If the given pointer is not shared, bad things happen, mostly a
139 * segmentation fault. If in doubt, try strlen(). 139 * segmentation fault. If in doubt, try strlen().
140 */ 140 */
141EAPI int eina_binshare_length(const void *obj) EINA_WARN_UNUSED_RESULT EINA_PURE; 141EINA_API int eina_binshare_length(const void *obj) EINA_WARN_UNUSED_RESULT EINA_PURE;
142 142
143/** 143/**
144 * @brief Dumps the contents of share_common. 144 * @brief Dumps the contents of share_common.
@@ -146,7 +146,7 @@ EAPI int eina_binshare_length(const void *obj) EINA_WARN_UNUSED_RESULT E
146 * @details This function dumps all the objects from share_common to stdout with a 146 * @details This function dumps all the objects from share_common to stdout with a
147 * DDD: prefix per line and a memory usage summary. 147 * DDD: prefix per line and a memory usage summary.
148 */ 148 */
149EAPI void eina_binshare_dump(void); 149EINA_API void eina_binshare_dump(void);
150 150
151/** 151/**
152 * @brief Retrieves an instance of a blob for use in a program. 152 * @brief Retrieves an instance of a blob for use in a program.
diff --git a/src/lib/eina/eina_convert.c b/src/lib/eina/eina_convert.c
index f210d14d8a..fdb259035d 100644
--- a/src/lib/eina/eina_convert.c
+++ b/src/lib/eina/eina_convert.c
@@ -90,9 +90,9 @@ static inline void reverse(char s[], int length)
90 * @cond LOCAL 90 * @cond LOCAL
91 */ 91 */
92 92
93EAPI Eina_Error EINA_ERROR_CONVERT_P_NOT_FOUND = 0; 93EINA_API Eina_Error EINA_ERROR_CONVERT_P_NOT_FOUND = 0;
94EAPI Eina_Error EINA_ERROR_CONVERT_0X_NOT_FOUND = 0; 94EINA_API Eina_Error EINA_ERROR_CONVERT_0X_NOT_FOUND = 0;
95EAPI Eina_Error EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH = 0; 95EINA_API Eina_Error EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH = 0;
96 96
97/** 97/**
98 * @endcond 98 * @endcond
@@ -149,7 +149,7 @@ eina_convert_shutdown(void)
149 * Come from the second edition of The C Programming Language ("K&R2") on page 64 149 * Come from the second edition of The C Programming Language ("K&R2") on page 64
150 */ 150 */
151 151
152EAPI int 152EINA_API int
153eina_convert_itoa(int n, char *s) 153eina_convert_itoa(int n, char *s)
154{ 154{
155 int i = 0; 155 int i = 0;
@@ -174,7 +174,7 @@ eina_convert_itoa(int n, char *s)
174 return i + r; 174 return i + r;
175} 175}
176 176
177EAPI int 177EINA_API int
178eina_convert_xtoa(unsigned int n, char *s) 178eina_convert_xtoa(unsigned int n, char *s)
179{ 179{
180 int i; 180 int i;
@@ -193,7 +193,7 @@ eina_convert_xtoa(unsigned int n, char *s)
193 return i; 193 return i;
194} 194}
195 195
196EAPI Eina_Bool 196EINA_API Eina_Bool
197eina_convert_atod(const char *src, int length, long long *m, long *e) 197eina_convert_atod(const char *src, int length, long long *m, long *e)
198{ 198{
199 const char *str = src; 199 const char *str = src;
@@ -285,7 +285,7 @@ on_length_error:
285 return EINA_FALSE; 285 return EINA_FALSE;
286} 286}
287 287
288EAPI int 288EINA_API int
289eina_convert_dtoa(double d, char *des) 289eina_convert_dtoa(double d, char *des)
290{ 290{
291 int length = 0; 291 int length = 0;
@@ -349,7 +349,7 @@ eina_convert_dtoa(double d, char *des)
349 return length + eina_convert_itoa(p, des); 349 return length + eina_convert_itoa(p, des);
350} 350}
351 351
352EAPI int 352EINA_API int
353eina_convert_fptoa(Eina_F32p32 fp, char *des) 353eina_convert_fptoa(Eina_F32p32 fp, char *des)
354{ 354{
355 int length = 0; 355 int length = 0;
@@ -433,7 +433,7 @@ eina_convert_fptoa(Eina_F32p32 fp, char *des)
433 return length + eina_convert_itoa(p, des); 433 return length + eina_convert_itoa(p, des);
434} 434}
435 435
436EAPI Eina_Bool 436EINA_API Eina_Bool
437eina_convert_atofp(const char *src, int length, Eina_F32p32 *fp) 437eina_convert_atofp(const char *src, int length, Eina_F32p32 *fp)
438{ 438{
439 long long m; 439 long long m;
@@ -467,7 +467,7 @@ eina_convert_atofp(const char *src, int length, Eina_F32p32 *fp)
467 * No hexadecimal form supported 467 * No hexadecimal form supported
468 * no sequence supported after NAN 468 * no sequence supported after NAN
469 */ 469 */
470EAPI double 470EINA_API double
471eina_convert_strtod_c(const char *nptr, char **endptr) 471eina_convert_strtod_c(const char *nptr, char **endptr)
472{ 472{
473 const char *iter; 473 const char *iter;
diff --git a/src/lib/eina/eina_convert.h b/src/lib/eina/eina_convert.h
index 314cd4cf92..8c41ac74dd 100644
--- a/src/lib/eina/eina_convert.h
+++ b/src/lib/eina/eina_convert.h
@@ -158,9 +158,9 @@
158 * @{ 158 * @{
159 */ 159 */
160 160
161EAPI extern Eina_Error EINA_ERROR_CONVERT_P_NOT_FOUND; /**< Not used, perhaps a placeholder? Defined as 0 in eina_convert.c*/ 161EINA_API extern Eina_Error EINA_ERROR_CONVERT_P_NOT_FOUND; /**< Not used, perhaps a placeholder? Defined as 0 in eina_convert.c*/
162EAPI extern Eina_Error EINA_ERROR_CONVERT_0X_NOT_FOUND; /**< Not used, perhaps a placeholder? Defined as 0 in eina_convert.c*/ 162EINA_API extern Eina_Error EINA_ERROR_CONVERT_0X_NOT_FOUND; /**< Not used, perhaps a placeholder? Defined as 0 in eina_convert.c*/
163EAPI extern Eina_Error EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH; /**< Not used, perhaps a placeholder? Defined as 0 in eina_convert.c*/ 163EINA_API extern Eina_Error EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH; /**< Not used, perhaps a placeholder? Defined as 0 in eina_convert.c*/
164 164
165/** 165/**
166 * @brief Converts an integer number to a string in decimal base. 166 * @brief Converts an integer number to a string in decimal base.
@@ -177,7 +177,7 @@ EAPI extern Eina_Error EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH; /**< Not used, p
177 * The returned value is the length of the string, including the null 177 * The returned value is the length of the string, including the null
178 * terminated character. 178 * terminated character.
179 */ 179 */
180EAPI int eina_convert_itoa(int n, char *s) EINA_ARG_NONNULL(2); 180EINA_API int eina_convert_itoa(int n, char *s) EINA_ARG_NONNULL(2);
181 181
182/** 182/**
183 * @brief Converts an integer number to a string in hexadecimal base. 183 * @brief Converts an integer number to a string in hexadecimal base.
@@ -195,7 +195,7 @@ EAPI int eina_convert_itoa(int n, char *s) EINA_ARG_NONNULL(2);
195 * The returned value is the length of the string, including the nul 195 * The returned value is the length of the string, including the nul
196 * terminated character. 196 * terminated character.
197 */ 197 */
198EAPI int eina_convert_xtoa(unsigned int n, char *s) EINA_ARG_NONNULL(2); 198EINA_API int eina_convert_xtoa(unsigned int n, char *s) EINA_ARG_NONNULL(2);
199 199
200 200
201/** 201/**
@@ -220,7 +220,7 @@ EAPI int eina_convert_xtoa(unsigned int n, char *s) EINA_ARG_NONNULL(2);
220 * The returned value is the length of the string, including the null 220 * The returned value is the length of the string, including the null
221 * character. 221 * character.
222 */ 222 */
223EAPI int eina_convert_dtoa(double d, char *des) EINA_ARG_NONNULL(2); 223EINA_API int eina_convert_dtoa(double d, char *des) EINA_ARG_NONNULL(2);
224 224
225/** 225/**
226 * @brief Converts a string to a double. 226 * @brief Converts a string to a double.
@@ -257,7 +257,7 @@ EAPI int eina_convert_dtoa(double d, char *des) EINA_ARG_NONNULL(2);
257 * If the string is invalid #EINA_FALSE is returned, otherwise #EINA_TRUE is 257 * If the string is invalid #EINA_FALSE is returned, otherwise #EINA_TRUE is
258 * returned. 258 * returned.
259 */ 259 */
260EAPI Eina_Bool eina_convert_atod(const char *src, 260EINA_API Eina_Bool eina_convert_atod(const char *src,
261 int length, 261 int length,
262 long long *m, 262 long long *m,
263 long *e) EINA_ARG_NONNULL(1, 3, 4); 263 long *e) EINA_ARG_NONNULL(1, 3, 4);
@@ -289,7 +289,7 @@ EAPI Eina_Bool eina_convert_atod(const char *src,
289 * implements the frexp() function for fixed point numbers and does 289 * implements the frexp() function for fixed point numbers and does
290 * some optimization. 290 * some optimization.
291 */ 291 */
292EAPI int eina_convert_fptoa(Eina_F32p32 fp, 292EINA_API int eina_convert_fptoa(Eina_F32p32 fp,
293 char *des) EINA_ARG_NONNULL(2); 293 char *des) EINA_ARG_NONNULL(2);
294 294
295/** 295/**
@@ -329,7 +329,7 @@ EAPI int eina_convert_fptoa(Eina_F32p32 fp,
329 * @note The code uses eina_convert_atod() and do the correct bit 329 * @note The code uses eina_convert_atod() and do the correct bit
330 * shift to compute the fixed point number. 330 * shift to compute the fixed point number.
331 */ 331 */
332EAPI Eina_Bool eina_convert_atofp(const char *src, 332EINA_API Eina_Bool eina_convert_atofp(const char *src,
333 int length, 333 int length,
334 Eina_F32p32 *fp) EINA_ARG_NONNULL(1, 3); 334 Eina_F32p32 *fp) EINA_ARG_NONNULL(1, 3);
335 335
@@ -347,7 +347,7 @@ EAPI Eina_Bool eina_convert_atofp(const char *src,
347 * without locale-dependency, this function can replace strtod. 347 * without locale-dependency, this function can replace strtod.
348 * For more information, please refer documents of strtod, strtod_l. 348 * For more information, please refer documents of strtod, strtod_l.
349 */ 349 */
350EAPI double eina_convert_strtod_c(const char *nptr, char **endptr); 350EINA_API double eina_convert_strtod_c(const char *nptr, char **endptr);
351 351
352/** 352/**
353 * @} 353 * @}
diff --git a/src/lib/eina/eina_counter.c b/src/lib/eina/eina_counter.c
index 1143c566fa..dc89f28f33 100644
--- a/src/lib/eina/eina_counter.c
+++ b/src/lib/eina/eina_counter.c
@@ -113,7 +113,7 @@ _eina_counter_asiprintf(char *base, int *position, const char *format, ...)
113 * API * 113 * API *
114 *============================================================================*/ 114 *============================================================================*/
115 115
116EAPI Eina_Counter * 116EINA_API Eina_Counter *
117eina_counter_new(const char *name) 117eina_counter_new(const char *name)
118{ 118{
119 Eina_Counter *counter; 119 Eina_Counter *counter;
@@ -131,7 +131,7 @@ eina_counter_new(const char *name)
131 return counter; 131 return counter;
132} 132}
133 133
134EAPI void 134EINA_API void
135eina_counter_free(Eina_Counter *counter) 135eina_counter_free(Eina_Counter *counter)
136{ 136{
137 EINA_SAFETY_ON_NULL_RETURN(counter); 137 EINA_SAFETY_ON_NULL_RETURN(counter);
@@ -147,7 +147,7 @@ eina_counter_free(Eina_Counter *counter)
147 free(counter); 147 free(counter);
148} 148}
149 149
150EAPI void 150EINA_API void
151eina_counter_start(Eina_Counter *counter) 151eina_counter_start(Eina_Counter *counter)
152{ 152{
153 Eina_Clock *clk; 153 Eina_Clock *clk;
@@ -165,7 +165,7 @@ eina_counter_start(Eina_Counter *counter)
165 clk->start = tp; 165 clk->start = tp;
166} 166}
167 167
168EAPI void 168EINA_API void
169eina_counter_stop(Eina_Counter *counter, int specimen) 169eina_counter_stop(Eina_Counter *counter, int specimen)
170{ 170{
171 Eina_Clock *clk; 171 Eina_Clock *clk;
@@ -185,7 +185,7 @@ eina_counter_stop(Eina_Counter *counter, int specimen)
185 clk->valid = EINA_TRUE; 185 clk->valid = EINA_TRUE;
186} 186}
187 187
188EAPI char * 188EINA_API char *
189eina_counter_dump(Eina_Counter *counter) 189eina_counter_dump(Eina_Counter *counter)
190{ 190{
191 Eina_Clock *clk; 191 Eina_Clock *clk;
diff --git a/src/lib/eina/eina_counter.h b/src/lib/eina/eina_counter.h
index 6cb15b982b..f498942d2e 100644
--- a/src/lib/eina/eina_counter.h
+++ b/src/lib/eina/eina_counter.h
@@ -124,7 +124,7 @@ typedef struct _Eina_Counter Eina_Counter;
124 * @note When the new counter is not needed anymore, use eina_counter_free() to 124 * @note When the new counter is not needed anymore, use eina_counter_free() to
125 * free the allocated memory. 125 * free the allocated memory.
126 */ 126 */
127EAPI Eina_Counter *eina_counter_new(const char *name) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1); 127EINA_API Eina_Counter *eina_counter_new(const char *name) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
128 128
129/** 129/**
130 * @brief Deletes a counter. 130 * @brief Deletes a counter.
@@ -135,7 +135,7 @@ EAPI Eina_Counter *eina_counter_new(const char *name) EINA_WARN_UNUSED_RESULT EI
135 * @param[in] counter The counter to delete 135 * @param[in] counter The counter to delete
136 * 136 *
137 */ 137 */
138EAPI void eina_counter_free(Eina_Counter *counter) EINA_ARG_NONNULL(1); 138EINA_API void eina_counter_free(Eina_Counter *counter) EINA_ARG_NONNULL(1);
139 139
140/** 140/**
141 * @brief Starts the time count. 141 * @brief Starts the time count.
@@ -152,7 +152,7 @@ EAPI void eina_counter_free(Eina_Counter *counter) EINA_ARG_NONNULL(1);
152 * @note To stop the timing, eina_counter_stop() must be called with the 152 * @note To stop the timing, eina_counter_stop() must be called with the
153 * same counter. 153 * same counter.
154 */ 154 */
155EAPI void eina_counter_start(Eina_Counter *counter) EINA_ARG_NONNULL(1); 155EINA_API void eina_counter_start(Eina_Counter *counter) EINA_ARG_NONNULL(1);
156 156
157/** 157/**
158 * @brief Stops the time count. 158 * @brief Stops the time count.
@@ -165,7 +165,7 @@ EAPI void eina_counter_start(Eina_Counter *counter) EINA_ARG_NONNULL(1)
165 * @param[in] specimen The number of the test 165 * @param[in] specimen The number of the test
166 * 166 *
167 */ 167 */
168EAPI void eina_counter_stop(Eina_Counter *counter, 168EINA_API void eina_counter_stop(Eina_Counter *counter,
169 int specimen) EINA_ARG_NONNULL(1); 169 int specimen) EINA_ARG_NONNULL(1);
170 170
171/** 171/**
@@ -185,7 +185,7 @@ EAPI void eina_counter_stop(Eina_Counter *counter,
185 * 185 *
186 * @note The unit of time is nanoseconds. 186 * @note The unit of time is nanoseconds.
187 */ 187 */
188EAPI char *eina_counter_dump(Eina_Counter *counter) EINA_ARG_NONNULL(1); 188EINA_API char *eina_counter_dump(Eina_Counter *counter) EINA_ARG_NONNULL(1);
189 189
190/** 190/**
191 * @} 191 * @}
diff --git a/src/lib/eina/eina_cow.c b/src/lib/eina/eina_cow.c
index 8737ff8e49..79c594a3f9 100644
--- a/src/lib/eina/eina_cow.c
+++ b/src/lib/eina/eina_cow.c
@@ -326,7 +326,7 @@ eina_cow_shutdown(void)
326 return EINA_TRUE; 326 return EINA_TRUE;
327} 327}
328 328
329EAPI Eina_Cow * 329EINA_API Eina_Cow *
330eina_cow_add(const char *name, unsigned int struct_size, unsigned int step, const void *default_value, Eina_Bool gc) 330eina_cow_add(const char *name, unsigned int struct_size, unsigned int step, const void *default_value, Eina_Bool gc)
331{ 331{
332 const char *choice, *tmp; 332 const char *choice, *tmp;
@@ -390,7 +390,7 @@ eina_cow_add(const char *name, unsigned int struct_size, unsigned int step, cons
390 return NULL; 390 return NULL;
391} 391}
392 392
393EAPI void 393EINA_API void
394eina_cow_del(Eina_Cow *cow) 394eina_cow_del(Eina_Cow *cow)
395{ 395{
396 if (!cow) return; 396 if (!cow) return;
@@ -405,7 +405,7 @@ eina_cow_del(Eina_Cow *cow)
405 free(cow); 405 free(cow);
406} 406}
407 407
408EAPI const Eina_Cow_Data * 408EINA_API const Eina_Cow_Data *
409eina_cow_alloc(Eina_Cow *cow) 409eina_cow_alloc(Eina_Cow *cow)
410{ 410{
411#ifdef EINA_COW_MAGIC_ON 411#ifdef EINA_COW_MAGIC_ON
@@ -415,7 +415,7 @@ eina_cow_alloc(Eina_Cow *cow)
415 return cow->default_value; 415 return cow->default_value;
416} 416}
417 417
418EAPI void 418EINA_API void
419eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data **data) 419eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data **data)
420{ 420{
421 Eina_Cow_Ptr *ref; 421 Eina_Cow_Ptr *ref;
@@ -451,7 +451,7 @@ eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data **data)
451 eina_mempool_free(cow->pool, (void*) ref); 451 eina_mempool_free(cow->pool, (void*) ref);
452} 452}
453 453
454EAPI void * 454EINA_API void *
455eina_cow_write(Eina_Cow *cow, 455eina_cow_write(Eina_Cow *cow,
456 const Eina_Cow_Data * const *data) 456 const Eina_Cow_Data * const *data)
457{ 457{
@@ -535,7 +535,7 @@ eina_cow_write(Eina_Cow *cow,
535 return (void *) *data; 535 return (void *) *data;
536} 536}
537 537
538EAPI void 538EINA_API void
539eina_cow_done(Eina_Cow *cow, 539eina_cow_done(Eina_Cow *cow,
540 const Eina_Cow_Data * const * dst, 540 const Eina_Cow_Data * const * dst,
541 const void *data, 541 const void *data,
@@ -569,7 +569,7 @@ eina_cow_done(Eina_Cow *cow,
569 _eina_cow_togc_add(cow, ref, (const Eina_Cow_Data **) dst); 569 _eina_cow_togc_add(cow, ref, (const Eina_Cow_Data **) dst);
570} 570}
571 571
572EAPI void 572EINA_API void
573eina_cow_memcpy(Eina_Cow *cow, 573eina_cow_memcpy(Eina_Cow *cow,
574 const Eina_Cow_Data * const *dst, 574 const Eina_Cow_Data * const *dst,
575 const Eina_Cow_Data *src) 575 const Eina_Cow_Data *src)
@@ -603,7 +603,7 @@ eina_cow_memcpy(Eina_Cow *cow,
603 *((const void**)dst) = src; 603 *((const void**)dst) = src;
604} 604}
605 605
606EAPI Eina_Bool 606EINA_API Eina_Bool
607eina_cow_gc(Eina_Cow *cow) 607eina_cow_gc(Eina_Cow *cow)
608{ 608{
609 Eina_Cow_GC *gc; 609 Eina_Cow_GC *gc;
diff --git a/src/lib/eina/eina_cow.h b/src/lib/eina/eina_cow.h
index 4836d3e870..f5a6473978 100644
--- a/src/lib/eina/eina_cow.h
+++ b/src/lib/eina/eina_cow.h
@@ -61,14 +61,14 @@ typedef void Eina_Cow_Data;
61 * @param[in] gc Is it possible to run garbage collection on this pool. 61 * @param[in] gc Is it possible to run garbage collection on this pool.
62 * @return A valid new Eina_Cow, or @c NULL on error. 62 * @return A valid new Eina_Cow, or @c NULL on error.
63 */ 63 */
64EAPI Eina_Cow *eina_cow_add(const char *name, unsigned int struct_size, unsigned int step, const void *default_value, Eina_Bool gc) EINA_WARN_UNUSED_RESULT; 64EINA_API Eina_Cow *eina_cow_add(const char *name, unsigned int struct_size, unsigned int step, const void *default_value, Eina_Bool gc) EINA_WARN_UNUSED_RESULT;
65 65
66/** 66/**
67 * @brief Destroys an Eina_Cow pool and all the allocated memory. 67 * @brief Destroys an Eina_Cow pool and all the allocated memory.
68 * 68 *
69 * @param[in] cow The pool to destroy 69 * @param[in] cow The pool to destroy
70 */ 70 */
71EAPI void eina_cow_del(Eina_Cow *cow); 71EINA_API void eina_cow_del(Eina_Cow *cow);
72 72
73/** 73/**
74 * @brief Returns an initialized pointer from the pool. 74 * @brief Returns an initialized pointer from the pool.
@@ -76,7 +76,7 @@ EAPI void eina_cow_del(Eina_Cow *cow);
76 * @param[in] cow The pool to take things from. 76 * @param[in] cow The pool to take things from.
77 * @return A pointer to the new pool instance 77 * @return A pointer to the new pool instance
78 */ 78 */
79EAPI const Eina_Cow_Data *eina_cow_alloc(Eina_Cow *cow) EINA_WARN_UNUSED_RESULT; 79EINA_API const Eina_Cow_Data *eina_cow_alloc(Eina_Cow *cow) EINA_WARN_UNUSED_RESULT;
80 80
81/** 81/**
82 * @brief Frees a pointer from the pool. 82 * @brief Frees a pointer from the pool.
@@ -87,7 +87,7 @@ EAPI const Eina_Cow_Data *eina_cow_alloc(Eina_Cow *cow) EINA_WARN_UNUSED_RESULT;
87 * @note To simplify the caller code *data will point to the default 87 * @note To simplify the caller code *data will point to the default
88 * read only state after the call to this function. 88 * read only state after the call to this function.
89 */ 89 */
90EAPI void eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data **data); 90EINA_API void eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data **data);
91 91
92/** 92/**
93 * @brief Gets a writeable pointer from a const pointer. 93 * @brief Gets a writeable pointer from a const pointer.
@@ -97,7 +97,7 @@ EAPI void eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data **data);
97 * 97 *
98 * @note This function is not thread safe. 98 * @note This function is not thread safe.
99 */ 99 */
100EAPI void *eina_cow_write(Eina_Cow *cow, 100EINA_API void *eina_cow_write(Eina_Cow *cow,
101 const Eina_Cow_Data * const *src) EINA_WARN_UNUSED_RESULT; 101 const Eina_Cow_Data * const *src) EINA_WARN_UNUSED_RESULT;
102 102
103/** 103/**
@@ -110,7 +110,7 @@ EAPI void *eina_cow_write(Eina_Cow *cow,
110 * 110 *
111 * @note This function is not thread safe. 111 * @note This function is not thread safe.
112 */ 112 */
113EAPI void eina_cow_done(Eina_Cow *cow, 113EINA_API void eina_cow_done(Eina_Cow *cow,
114 const Eina_Cow_Data * const *dst, 114 const Eina_Cow_Data * const *dst,
115 const void *data, 115 const void *data,
116 Eina_Bool needed_gc); 116 Eina_Bool needed_gc);
@@ -121,7 +121,7 @@ EAPI void eina_cow_done(Eina_Cow *cow,
121 * @param[in] dst The destination to update. 121 * @param[in] dst The destination to update.
122 * @param[in] src The source of information to copy. 122 * @param[in] src The source of information to copy.
123 */ 123 */
124EAPI void eina_cow_memcpy(Eina_Cow *cow, 124EINA_API void eina_cow_memcpy(Eina_Cow *cow,
125 const Eina_Cow_Data * const *dst, 125 const Eina_Cow_Data * const *dst,
126 const Eina_Cow_Data *src); 126 const Eina_Cow_Data *src);
127 127
@@ -135,7 +135,7 @@ EAPI void eina_cow_memcpy(Eina_Cow *cow,
135 * It does run a hash function on all possible common structures trying to 135 * It does run a hash function on all possible common structures trying to
136 * find the one that matches and merge them into one pointer. 136 * find the one that matches and merge them into one pointer.
137 */ 137 */
138EAPI Eina_Bool eina_cow_gc(Eina_Cow *cow); 138EINA_API Eina_Bool eina_cow_gc(Eina_Cow *cow);
139 139
140/** 140/**
141 * @def EINA_COW_WRITE_BEGIN 141 * @def EINA_COW_WRITE_BEGIN
diff --git a/src/lib/eina/eina_cpu.c b/src/lib/eina/eina_cpu.c
index bac68fee4a..366d5d871f 100644
--- a/src/lib/eina/eina_cpu.c
+++ b/src/lib/eina/eina_cpu.c
@@ -167,7 +167,7 @@ _ppc_cpu_features(Eina_Cpu_Features *features)
167/* FIXME the features checks should be called when this function is called? 167/* FIXME the features checks should be called when this function is called?
168 * or make it static by doing eina_cpu_init() and return a local var 168 * or make it static by doing eina_cpu_init() and return a local var
169 */ 169 */
170EAPI Eina_Cpu_Features eina_cpu_features = 0; 170EINA_API Eina_Cpu_Features eina_cpu_features = 0;
171 171
172Eina_Bool 172Eina_Bool
173eina_cpu_init(void) 173eina_cpu_init(void)
@@ -194,7 +194,7 @@ eina_cpu_shutdown(void)
194 * 194 *
195 * @return 195 * @return
196 */ 196 */
197EAPI Eina_Cpu_Features eina_cpu_features_get(void) 197EINA_API Eina_Cpu_Features eina_cpu_features_get(void)
198{ 198{
199 return eina_cpu_features; 199 return eina_cpu_features;
200} 200}
@@ -304,13 +304,13 @@ _eina_page_size(void)
304 } 304 }
305} 305}
306 306
307EAPI int eina_cpu_page_size(void) 307EINA_API int eina_cpu_page_size(void)
308{ 308{
309 if (_page_size == 0) _eina_page_size(); 309 if (_page_size == 0) _eina_page_size();
310 return _page_size; 310 return _page_size;
311} 311}
312 312
313EAPI int eina_cpu_count(void) 313EINA_API int eina_cpu_count(void)
314{ 314{
315 return _cpu_count; 315 return _cpu_count;
316} 316}
diff --git a/src/lib/eina/eina_cpu.h b/src/lib/eina/eina_cpu.h
index 35172a7a3b..69eb08bb4f 100644
--- a/src/lib/eina/eina_cpu.h
+++ b/src/lib/eina/eina_cpu.h
@@ -64,14 +64,14 @@ typedef enum _Eina_Cpu_Features
64 * 64 *
65 * @return the current cpu features 65 * @return the current cpu features
66 */ 66 */
67EAPI extern Eina_Cpu_Features eina_cpu_features; 67EINA_API extern Eina_Cpu_Features eina_cpu_features;
68 68
69/** 69/**
70 * @brief Cpu features accessor. 70 * @brief Cpu features accessor.
71 * 71 *
72 * @return the current cpu features 72 * @return the current cpu features
73 */ 73 */
74EAPI Eina_Cpu_Features eina_cpu_features_get(void); 74EINA_API Eina_Cpu_Features eina_cpu_features_get(void);
75 75
76/** 76/**
77 * @brief Gets the current number of processors. 77 * @brief Gets the current number of processors.
@@ -79,7 +79,7 @@ EAPI Eina_Cpu_Features eina_cpu_features_get(void);
79 * @return The number of processors that are online, that 79 * @return The number of processors that are online, that
80 * is available when the function is called. 80 * is available when the function is called.
81 */ 81 */
82EAPI int eina_cpu_count(void); 82EINA_API int eina_cpu_count(void);
83 83
84/** 84/**
85 * @brief Gets the current virtual page size. 85 * @brief Gets the current virtual page size.
@@ -88,7 +88,7 @@ EAPI int eina_cpu_count(void);
88 * allocation performed by the operating system on behalf of the program, and 88 * allocation performed by the operating system on behalf of the program, and
89 * for transfers between the main memory and any other auxiliary store. 89 * for transfers between the main memory and any other auxiliary store.
90 */ 90 */
91EAPI int eina_cpu_page_size(void); 91EINA_API int eina_cpu_page_size(void);
92 92
93/** 93/**
94 * @brief Reverses the byte order of a 16-bit (destination) register. 94 * @brief Reverses the byte order of a 16-bit (destination) register.
diff --git a/src/lib/eina/eina_crc.c b/src/lib/eina/eina_crc.c
index 69d0b2341c..616d07931c 100644
--- a/src/lib/eina/eina_crc.c
+++ b/src/lib/eina/eina_crc.c
@@ -287,7 +287,7 @@ static const unsigned int table[8][256] =
287 } 287 }
288}; 288};
289 289
290EAPI unsigned int 290EINA_API unsigned int
291_eina_crc(const char *data, int len, unsigned int seed, Eina_Bool start_stream) 291_eina_crc(const char *data, int len, unsigned int seed, Eina_Bool start_stream)
292{ 292{
293 unsigned int crc; 293 unsigned int crc;
diff --git a/src/lib/eina/eina_debug.c b/src/lib/eina/eina_debug.c
index d615338ebb..d8fe318ac2 100644
--- a/src/lib/eina/eina_debug.c
+++ b/src/lib/eina/eina_debug.c
@@ -141,7 +141,7 @@ static void _opcodes_register_all(Eina_Debug_Session *session);
141#endif 141#endif
142static void _thread_start(Eina_Debug_Session *session); 142static void _thread_start(Eina_Debug_Session *session);
143 143
144EAPI int 144EINA_API int
145eina_debug_session_send(Eina_Debug_Session *session, int dest, int op, void *data, int size) 145eina_debug_session_send(Eina_Debug_Session *session, int dest, int op, void *data, int size)
146{ 146{
147 Eina_Debug_Packet_Header hdr; 147 Eina_Debug_Packet_Header hdr;
@@ -261,13 +261,13 @@ end:
261} 261}
262#endif 262#endif
263 263
264EAPI void 264EINA_API void
265eina_debug_disable() 265eina_debug_disable()
266{ 266{
267 _debug_disabled = EINA_TRUE; 267 _debug_disabled = EINA_TRUE;
268} 268}
269 269
270EAPI void 270EINA_API void
271eina_debug_session_terminate(Eina_Debug_Session *session) 271eina_debug_session_terminate(Eina_Debug_Session *session)
272{ 272{
273 /* Close fd here so the thread terminates its own session by itself */ 273 /* Close fd here so the thread terminates its own session by itself */
@@ -286,7 +286,7 @@ eina_debug_session_terminate(Eina_Debug_Session *session)
286 } 286 }
287} 287}
288 288
289EAPI void 289EINA_API void
290eina_debug_session_dispatch_override(Eina_Debug_Session *session, Eina_Debug_Dispatch_Cb disp_cb) 290eina_debug_session_dispatch_override(Eina_Debug_Session *session, Eina_Debug_Dispatch_Cb disp_cb)
291{ 291{
292 if (!session) return; 292 if (!session) return;
@@ -294,7 +294,7 @@ eina_debug_session_dispatch_override(Eina_Debug_Session *session, Eina_Debug_Dis
294 session->dispatch_cb = disp_cb; 294 session->dispatch_cb = disp_cb;
295} 295}
296 296
297EAPI Eina_Debug_Dispatch_Cb 297EINA_API Eina_Debug_Dispatch_Cb
298eina_debug_session_dispatch_get(Eina_Debug_Session *session) 298eina_debug_session_dispatch_get(Eina_Debug_Session *session)
299{ 299{
300 if (session) return session->dispatch_cb; 300 if (session) return session->dispatch_cb;
@@ -461,7 +461,7 @@ _session_create(int fd)
461 return session; 461 return session;
462} 462}
463 463
464EAPI Eina_Debug_Session * 464EINA_API Eina_Debug_Session *
465eina_debug_remote_connect(int port) 465eina_debug_remote_connect(int port)
466{ 466{
467 int fd; 467 int fd;
@@ -491,7 +491,7 @@ err:
491 return NULL; 491 return NULL;
492} 492}
493 493
494EAPI Eina_Debug_Session * 494EINA_API Eina_Debug_Session *
495eina_debug_local_connect(Eina_Bool is_master) 495eina_debug_local_connect(Eina_Bool is_master)
496{ 496{
497#ifndef _WIN32 497#ifndef _WIN32
@@ -635,7 +635,7 @@ _thread_start(Eina_Debug_Session *session)
635 * - Pointer to ops: returned in the response to determine which opcodes have been added 635 * - Pointer to ops: returned in the response to determine which opcodes have been added
636 * - List of opcode names separated by \0 636 * - List of opcode names separated by \0
637 */ 637 */
638EAPI void 638EINA_API void
639eina_debug_opcodes_register(Eina_Debug_Session *session, const Eina_Debug_Opcode ops[], 639eina_debug_opcodes_register(Eina_Debug_Session *session, const Eina_Debug_Opcode ops[],
640 Eina_Debug_Opcode_Status_Cb status_cb, void *data) 640 Eina_Debug_Opcode_Status_Cb status_cb, void *data)
641{ 641{
@@ -657,7 +657,7 @@ eina_debug_opcodes_register(Eina_Debug_Session *session, const Eina_Debug_Opcode
657 _opcodes_registration_send(session, info); 657 _opcodes_registration_send(session, info);
658} 658}
659 659
660EAPI Eina_Bool 660EINA_API Eina_Bool
661eina_debug_dispatch(Eina_Debug_Session *session, void *buffer) 661eina_debug_dispatch(Eina_Debug_Session *session, void *buffer)
662{ 662{
663 Eina_Debug_Packet_Header *hdr = buffer; 663 Eina_Debug_Packet_Header *hdr = buffer;
@@ -682,13 +682,13 @@ eina_debug_dispatch(Eina_Debug_Session *session, void *buffer)
682 return EINA_TRUE; 682 return EINA_TRUE;
683} 683}
684 684
685EAPI void 685EINA_API void
686eina_debug_session_data_set(Eina_Debug_Session *session, void *data) 686eina_debug_session_data_set(Eina_Debug_Session *session, void *data)
687{ 687{
688 if (session) session->data = data; 688 if (session) session->data = data;
689} 689}
690 690
691EAPI void * 691EINA_API void *
692eina_debug_session_data_get(Eina_Debug_Session *session) 692eina_debug_session_data_get(Eina_Debug_Session *session)
693{ 693{
694 if (session) return session->data; 694 if (session) return session->data;
@@ -745,7 +745,7 @@ eina_debug_shutdown(void)
745 return EINA_TRUE; 745 return EINA_TRUE;
746} 746}
747 747
748EAPI void 748EINA_API void
749eina_debug_fork_reset(void) 749eina_debug_fork_reset(void)
750{ 750{
751 extern Eina_Bool fork_resetting; 751 extern Eina_Bool fork_resetting;
diff --git a/src/lib/eina/eina_debug.h b/src/lib/eina/eina_debug.h
index dbc36caf5d..a19d04d83a 100644
--- a/src/lib/eina/eina_debug.h
+++ b/src/lib/eina/eina_debug.h
@@ -162,7 +162,7 @@ typedef struct
162 * of them. 162 * of them.
163 * Need to be invoked before eina_init. Otherwise it won't have any effect. 163 * Need to be invoked before eina_init. Otherwise it won't have any effect.
164 */ 164 */
165EAPI void eina_debug_disable(void); 165EINA_API void eina_debug_disable(void);
166 166
167/** 167/**
168 * @brief Connect to the local daemon 168 * @brief Connect to the local daemon
@@ -171,7 +171,7 @@ EAPI void eina_debug_disable(void);
171 * 171 *
172 * @return The session on success or NULL otherwise. 172 * @return The session on success or NULL otherwise.
173 */ 173 */
174EAPI Eina_Debug_Session *eina_debug_local_connect(Eina_Bool is_master); 174EINA_API Eina_Debug_Session *eina_debug_local_connect(Eina_Bool is_master);
175 175
176/** 176/**
177 * @brief Connect to remote daemon 177 * @brief Connect to remote daemon
@@ -182,14 +182,14 @@ EAPI Eina_Debug_Session *eina_debug_local_connect(Eina_Bool is_master);
182 * 182 *
183 * @return The session on success or NULL otherwise. 183 * @return The session on success or NULL otherwise.
184 */ 184 */
185EAPI Eina_Debug_Session *eina_debug_remote_connect(int port); 185EINA_API Eina_Debug_Session *eina_debug_remote_connect(int port);
186 186
187/** 187/**
188 * @brief Terminate the session 188 * @brief Terminate the session
189 * 189 *
190 * @param[in,out] session the session to terminate 190 * @param[in,out] session the session to terminate
191 */ 191 */
192EAPI void eina_debug_session_terminate(Eina_Debug_Session *session); 192EINA_API void eina_debug_session_terminate(Eina_Debug_Session *session);
193 193
194/** 194/**
195 * @brief Override the dispatcher of a specific session 195 * @brief Override the dispatcher of a specific session
@@ -201,7 +201,7 @@ EAPI void eina_debug_session_terminate(Eina_Debug_Session *session);
201 * @param[in,out] session the session 201 * @param[in,out] session the session
202 * @param[in] disp_cb the new dispatcher for the given session 202 * @param[in] disp_cb the new dispatcher for the given session
203 */ 203 */
204EAPI void eina_debug_session_dispatch_override(Eina_Debug_Session *session, Eina_Debug_Dispatch_Cb disp_cb); 204EINA_API void eina_debug_session_dispatch_override(Eina_Debug_Session *session, Eina_Debug_Dispatch_Cb disp_cb);
205 205
206/** 206/**
207 * @brief Get the dispatcher of a specific session 207 * @brief Get the dispatcher of a specific session
@@ -210,7 +210,7 @@ EAPI void eina_debug_session_dispatch_override(Eina_Debug_Session *session, Eina
210 * 210 *
211 * @return The session dispatcher. 211 * @return The session dispatcher.
212 */ 212 */
213EAPI Eina_Debug_Dispatch_Cb eina_debug_session_dispatch_get(Eina_Debug_Session *session); 213EINA_API Eina_Debug_Dispatch_Cb eina_debug_session_dispatch_get(Eina_Debug_Session *session);
214 214
215/** 215/**
216 * @brief Dispatch a given packet according to its header. 216 * @brief Dispatch a given packet according to its header.
@@ -224,7 +224,7 @@ EAPI Eina_Debug_Dispatch_Cb eina_debug_session_dispatch_get(Eina_Debug_Session *
224 * 224 *
225 * @return True on success, false if the connection seems compromised. 225 * @return True on success, false if the connection seems compromised.
226 */ 226 */
227EAPI Eina_Bool eina_debug_dispatch(Eina_Debug_Session *session, void *buffer); 227EINA_API Eina_Bool eina_debug_dispatch(Eina_Debug_Session *session, void *buffer);
228 228
229/** 229/**
230 * @brief Set data to a session 230 * @brief Set data to a session
@@ -232,7 +232,7 @@ EAPI Eina_Bool eina_debug_dispatch(Eina_Debug_Session *session, void *buffer);
232 * @param[in,out] session the session 232 * @param[in,out] session the session
233 * @param[in] data the data to set 233 * @param[in] data the data to set
234 */ 234 */
235EAPI void eina_debug_session_data_set(Eina_Debug_Session *session, void *data); 235EINA_API void eina_debug_session_data_set(Eina_Debug_Session *session, void *data);
236 236
237/** 237/**
238 * @brief Get the data attached to a session 238 * @brief Get the data attached to a session
@@ -241,7 +241,7 @@ EAPI void eina_debug_session_data_set(Eina_Debug_Session *session, void *data);
241 * 241 *
242 * @return The data of the session. 242 * @return The data of the session.
243 */ 243 */
244EAPI void *eina_debug_session_data_get(Eina_Debug_Session *session); 244EINA_API void *eina_debug_session_data_get(Eina_Debug_Session *session);
245 245
246/** 246/**
247 * @brief Register opcodes to a session 247 * @brief Register opcodes to a session
@@ -257,7 +257,7 @@ EAPI void *eina_debug_session_data_get(Eina_Debug_Session *session);
257 * @param[in] status_cb a function to call when the opcodes are received 257 * @param[in] status_cb a function to call when the opcodes are received
258 * @param[in] status_data the data to give to status_cb 258 * @param[in] status_data the data to give to status_cb
259 */ 259 */
260EAPI void eina_debug_opcodes_register(Eina_Debug_Session *session, 260EINA_API void eina_debug_opcodes_register(Eina_Debug_Session *session,
261 const Eina_Debug_Opcode ops[], 261 const Eina_Debug_Opcode ops[],
262 Eina_Debug_Opcode_Status_Cb status_cb, void *status_data); 262 Eina_Debug_Opcode_Status_Cb status_cb, void *status_data);
263 263
@@ -274,7 +274,7 @@ EAPI void eina_debug_opcodes_register(Eina_Debug_Session *session,
274 * 274 *
275 * @return The number of sent bytes. 275 * @return The number of sent bytes.
276 */ 276 */
277EAPI int eina_debug_session_send(Eina_Debug_Session *session, int dest_id, int op, void *data, int size); 277EINA_API int eina_debug_session_send(Eina_Debug_Session *session, int dest_id, int op, void *data, int size);
278 278
279/** 279/**
280 * @brief Add a timer 280 * @brief Add a timer
@@ -285,7 +285,7 @@ EAPI int eina_debug_session_send(Eina_Debug_Session *session, int dest_id, int o
285 * 285 *
286 * @return The timer handle, NULL on error. 286 * @return The timer handle, NULL on error.
287 */ 287 */
288EAPI Eina_Debug_Timer *eina_debug_timer_add(unsigned int timeout_ms, Eina_Debug_Timer_Cb cb, void *data); 288EINA_API Eina_Debug_Timer *eina_debug_timer_add(unsigned int timeout_ms, Eina_Debug_Timer_Cb cb, void *data);
289 289
290/** 290/**
291 * @brief Delete a timer 291 * @brief Delete a timer
@@ -295,7 +295,7 @@ EAPI Eina_Debug_Timer *eina_debug_timer_add(unsigned int timeout_ms, Eina_Debug_
295 * If the timer reaches the end and has not be renewed, trying to delete it will lead to a crash, as 295 * If the timer reaches the end and has not be renewed, trying to delete it will lead to a crash, as
296 * it has already been deleted internally. 296 * it has already been deleted internally.
297 */ 297 */
298EAPI void eina_debug_timer_del(Eina_Debug_Timer *timer); 298EINA_API void eina_debug_timer_del(Eina_Debug_Timer *timer);
299 299
300/** 300/**
301 * @brief Reset the eina debug system after forking 301 * @brief Reset the eina debug system after forking
@@ -303,7 +303,7 @@ EAPI void eina_debug_timer_del(Eina_Debug_Timer *timer);
303 * Call this any time the application forks 303 * Call this any time the application forks
304 * @since 1.21 304 * @since 1.21
305 * */ 305 * */
306EAPI void eina_debug_fork_reset(void); 306EINA_API void eina_debug_fork_reset(void);
307/** 307/**
308 * @} 308 * @}
309 */ 309 */
diff --git a/src/lib/eina/eina_debug_timer.c b/src/lib/eina/eina_debug_timer.c
index 2b3c1d2c74..b33d92480e 100644
--- a/src/lib/eina/eina_debug_timer.c
+++ b/src/lib/eina/eina_debug_timer.c
@@ -146,7 +146,7 @@ _monitor(void *_data EINA_UNUSED)
146 return NULL; 146 return NULL;
147} 147}
148 148
149EAPI Eina_Debug_Timer * 149EINA_API Eina_Debug_Timer *
150eina_debug_timer_add(unsigned int timeout_ms, Eina_Debug_Timer_Cb cb, void *data) 150eina_debug_timer_add(unsigned int timeout_ms, Eina_Debug_Timer_Cb cb, void *data)
151{ 151{
152 if (!cb || !timeout_ms) return NULL; 152 if (!cb || !timeout_ms) return NULL;
@@ -190,7 +190,7 @@ eina_debug_timer_add(unsigned int timeout_ms, Eina_Debug_Timer_Cb cb, void *data
190 return t; 190 return t;
191} 191}
192 192
193EAPI void 193EINA_API void
194eina_debug_timer_del(Eina_Debug_Timer *t) 194eina_debug_timer_del(Eina_Debug_Timer *t)
195{ 195{
196 eina_spinlock_take(&_lock); 196 eina_spinlock_take(&_lock);
diff --git a/src/lib/eina/eina_error.c b/src/lib/eina/eina_error.c
index 7922933e59..f185cfd530 100644
--- a/src/lib/eina/eina_error.c
+++ b/src/lib/eina/eina_error.c
@@ -132,7 +132,7 @@ static inline int strerror_r(int errnum, char *buf, size_t buflen)
132 * @cond LOCAL 132 * @cond LOCAL
133 */ 133 */
134 134
135EAPI Eina_Error EINA_ERROR_OUT_OF_MEMORY = ENOMEM; 135EINA_API Eina_Error EINA_ERROR_OUT_OF_MEMORY = ENOMEM;
136 136
137/** 137/**
138 * @endcond 138 * @endcond
@@ -219,7 +219,7 @@ eina_error_shutdown(void)
219* API * 219* API *
220*============================================================================*/ 220*============================================================================*/
221 221
222EAPI Eina_Error 222EINA_API Eina_Error
223eina_error_msg_register(const char *msg) 223eina_error_msg_register(const char *msg)
224{ 224{
225 Eina_Error_Message *eem; 225 Eina_Error_Message *eem;
@@ -241,7 +241,7 @@ eina_error_msg_register(const char *msg)
241 return EINA_ERROR_FROM_INDEX(_eina_errors_count); /* identifier = index + 1 (== _count). */ 241 return EINA_ERROR_FROM_INDEX(_eina_errors_count); /* identifier = index + 1 (== _count). */
242} 242}
243 243
244EAPI Eina_Error 244EINA_API Eina_Error
245eina_error_msg_static_register(const char *msg) 245eina_error_msg_static_register(const char *msg)
246{ 246{
247 Eina_Error_Message *eem; 247 Eina_Error_Message *eem;
@@ -257,7 +257,7 @@ eina_error_msg_static_register(const char *msg)
257 return EINA_ERROR_FROM_INDEX(_eina_errors_count); /* identifier = index + 1 (== _count). */ 257 return EINA_ERROR_FROM_INDEX(_eina_errors_count); /* identifier = index + 1 (== _count). */
258} 258}
259 259
260EAPI Eina_Bool 260EINA_API Eina_Bool
261eina_error_msg_modify(Eina_Error error, const char *msg) 261eina_error_msg_modify(Eina_Error error, const char *msg)
262{ 262{
263 EINA_SAFETY_ON_NULL_RETURN_VAL(msg, EINA_FALSE); 263 EINA_SAFETY_ON_NULL_RETURN_VAL(msg, EINA_FALSE);
@@ -285,7 +285,7 @@ eina_error_msg_modify(Eina_Error error, const char *msg)
285 return EINA_TRUE; 285 return EINA_TRUE;
286} 286}
287 287
288EAPI const char * 288EINA_API const char *
289eina_error_msg_get(Eina_Error error) 289eina_error_msg_get(Eina_Error error)
290{ 290{
291 if (!EINA_ERROR_REGISTERED_CHECK(error)) 291 if (!EINA_ERROR_REGISTERED_CHECK(error))
@@ -379,7 +379,7 @@ eina_error_msg_get(Eina_Error error)
379 return _eina_errors[error - 1].string; 379 return _eina_errors[error - 1].string;
380} 380}
381 381
382EAPI Eina_Error 382EINA_API Eina_Error
383eina_error_get(void) 383eina_error_get(void)
384{ 384{
385 if (eina_main_loop_is()) 385 if (eina_main_loop_is())
@@ -388,7 +388,7 @@ eina_error_get(void)
388 return (Eina_Error)(uintptr_t) eina_tls_get(_eina_last_key); 388 return (Eina_Error)(uintptr_t) eina_tls_get(_eina_last_key);
389} 389}
390 390
391EAPI void 391EINA_API void
392eina_error_set(Eina_Error err) 392eina_error_set(Eina_Error err)
393{ 393{
394 if (eina_main_loop_is()) 394 if (eina_main_loop_is())
@@ -397,7 +397,7 @@ eina_error_set(Eina_Error err)
397 eina_tls_set(_eina_last_key, (void*)(uintptr_t) err); 397 eina_tls_set(_eina_last_key, (void*)(uintptr_t) err);
398} 398}
399 399
400EAPI Eina_Error 400EINA_API Eina_Error
401eina_error_find(const char *msg) 401eina_error_find(const char *msg)
402{ 402{
403 size_t i; 403 size_t i;
diff --git a/src/lib/eina/eina_error.h b/src/lib/eina/eina_error.h
index 313548bb66..406de0964e 100644
--- a/src/lib/eina/eina_error.h
+++ b/src/lib/eina/eina_error.h
@@ -112,7 +112,7 @@ typedef Eina_Bool Eina_Success_Flag;
112 * 112 *
113 * @deprecated since 1.19, same as @c ENOMEM from @c errno.h 113 * @deprecated since 1.19, same as @c ENOMEM from @c errno.h
114 */ 114 */
115EAPI extern Eina_Error EINA_ERROR_OUT_OF_MEMORY EINA_DEPRECATED; /* use ENOMEM */ 115EINA_API extern Eina_Error EINA_ERROR_OUT_OF_MEMORY EINA_DEPRECATED; /* use ENOMEM */
116 116
117/** 117/**
118 * @brief Registers a new error type. 118 * @brief Registers a new error type.
@@ -130,7 +130,7 @@ EAPI extern Eina_Error EINA_ERROR_OUT_OF_MEMORY EINA_DEPRECATED; /* use ENOMEM *
130 * 130 *
131 * @see eina_error_msg_static_register() 131 * @see eina_error_msg_static_register()
132 */ 132 */
133EAPI Eina_Error eina_error_msg_register(const char *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; 133EINA_API Eina_Error eina_error_msg_register(const char *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
134 134
135/** 135/**
136 * @brief Registers a new error type, statically allocated message. 136 * @brief Registers a new error type, statically allocated message.
@@ -149,7 +149,7 @@ EAPI Eina_Error eina_error_msg_register(const char *msg) EINA_ARG_NONNULL(1) EI
149 * 149 *
150 * @see eina_error_msg_register() 150 * @see eina_error_msg_register()
151 */ 151 */
152EAPI Eina_Error eina_error_msg_static_register(const char *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; 152EINA_API Eina_Error eina_error_msg_static_register(const char *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
153 153
154/** 154/**
155 * @brief Changes the message of an already registered message. 155 * @brief Changes the message of an already registered message.
@@ -170,7 +170,7 @@ EAPI Eina_Error eina_error_msg_static_register(const char *msg) EINA_ARG_NONNUL
170 * 170 *
171 * @see eina_error_msg_register() 171 * @see eina_error_msg_register()
172 */ 172 */
173EAPI Eina_Bool eina_error_msg_modify(Eina_Error error, 173EINA_API Eina_Bool eina_error_msg_modify(Eina_Error error,
174 const char *msg) EINA_ARG_NONNULL(2); 174 const char *msg) EINA_ARG_NONNULL(2);
175 175
176/** 176/**
@@ -182,7 +182,7 @@ EAPI Eina_Bool eina_error_msg_modify(Eina_Error error,
182 * 182 *
183 * @note This function is thread safe @since 1.10, but slower to use. 183 * @note This function is thread safe @since 1.10, but slower to use.
184 */ 184 */
185EAPI Eina_Error eina_error_get(void); 185EINA_API Eina_Error eina_error_get(void);
186 186
187/** 187/**
188 * @brief Sets the last error. 188 * @brief Sets the last error.
@@ -196,7 +196,7 @@ EAPI Eina_Error eina_error_get(void);
196 * 196 *
197 * @note This function is thread safe @since 1.10, but slower to use. 197 * @note This function is thread safe @since 1.10, but slower to use.
198 */ 198 */
199EAPI void eina_error_set(Eina_Error err); 199EINA_API void eina_error_set(Eina_Error err);
200 200
201/** 201/**
202 * @brief Returns the description of the given error number. 202 * @brief Returns the description of the given error number.
@@ -207,7 +207,7 @@ EAPI void eina_error_set(Eina_Error err);
207 * @return The description of the error 207 * @return The description of the error
208 * 208 *
209 */ 209 */
210EAPI const char *eina_error_msg_get(Eina_Error error) EINA_PURE; 210EINA_API const char *eina_error_msg_get(Eina_Error error) EINA_PURE;
211 211
212/** 212/**
213 * @brief Finds the #Eina_Error corresponding to a message string. 213 * @brief Finds the #Eina_Error corresponding to a message string.
@@ -222,7 +222,7 @@ EAPI const char *eina_error_msg_get(Eina_Error error) EINA_PURE;
222 * eina_error_msg_static_register() or modified with 222 * eina_error_msg_static_register() or modified with
223 * eina_error_msg_modify(). 223 * eina_error_msg_modify().
224 */ 224 */
225EAPI Eina_Error eina_error_find(const char *msg) EINA_ARG_NONNULL(1) EINA_PURE; 225EINA_API Eina_Error eina_error_find(const char *msg) EINA_ARG_NONNULL(1) EINA_PURE;
226 226
227/** 227/**
228 * @} 228 * @}
diff --git a/src/lib/eina/eina_evlog.c b/src/lib/eina/eina_evlog.c
index 3b427e0944..61ba73cc4b 100644
--- a/src/lib/eina/eina_evlog.c
+++ b/src/lib/eina/eina_evlog.c
@@ -150,7 +150,7 @@ push_buf(Eina_Evlog_Buf *b, unsigned int size)
150 return ptr; 150 return ptr;
151} 151}
152 152
153EAPI void 153EINA_API void
154eina_evlog(const char *event, void *obj, double srctime, const char *detail) 154eina_evlog(const char *event, void *obj, double srctime, const char *detail)
155{ 155{
156 Eina_Evlog_Item *item; 156 Eina_Evlog_Item *item;
@@ -186,7 +186,7 @@ eina_evlog(const char *event, void *obj, double srctime, const char *detail)
186 eina_spinlock_release(&_evlog_lock); 186 eina_spinlock_release(&_evlog_lock);
187} 187}
188 188
189EAPI Eina_Evlog_Buf * 189EINA_API Eina_Evlog_Buf *
190eina_evlog_steal(void) 190eina_evlog_steal(void)
191{ 191{
192 Eina_Evlog_Buf *stolen = NULL; 192 Eina_Evlog_Buf *stolen = NULL;
@@ -210,7 +210,7 @@ eina_evlog_steal(void)
210 return stolen; 210 return stolen;
211} 211}
212 212
213EAPI void 213EINA_API void
214eina_evlog_start(void) 214eina_evlog_start(void)
215{ 215{
216 eina_spinlock_take(&_evlog_lock); 216 eina_spinlock_take(&_evlog_lock);
@@ -224,7 +224,7 @@ eina_evlog_start(void)
224 eina_spinlock_release(&_evlog_lock); 224 eina_spinlock_release(&_evlog_lock);
225} 225}
226 226
227EAPI void 227EINA_API void
228eina_evlog_stop(void) 228eina_evlog_stop(void)
229{ 229{
230 eina_spinlock_take(&_evlog_lock); 230 eina_spinlock_take(&_evlog_lock);
diff --git a/src/lib/eina/eina_evlog.h b/src/lib/eina/eina_evlog.h
index 6843602ff7..4c6a4255db 100644
--- a/src/lib/eina/eina_evlog.h
+++ b/src/lib/eina/eina_evlog.h
@@ -113,7 +113,7 @@ struct _Eina_Evlog_Buf
113 * 113 *
114 * @since 1.15 114 * @since 1.15
115 */ 115 */
116EAPI void 116EINA_API void
117eina_evlog(const char *event, void *obj, double srctime, const char *detail); 117eina_evlog(const char *event, void *obj, double srctime, const char *detail);
118 118
119/** 119/**
@@ -126,7 +126,7 @@ eina_evlog(const char *event, void *obj, double srctime, const char *detail);
126 * 126 *
127 * @since 1.15 127 * @since 1.15
128 */ 128 */
129EAPI Eina_Evlog_Buf * 129EINA_API Eina_Evlog_Buf *
130eina_evlog_steal(void); 130eina_evlog_steal(void);
131 131
132/** 132/**
@@ -134,7 +134,7 @@ eina_evlog_steal(void);
134 * 134 *
135 * @since 1.15 135 * @since 1.15
136 */ 136 */
137EAPI void 137EINA_API void
138eina_evlog_start(void); 138eina_evlog_start(void);
139 139
140/** 140/**
@@ -145,7 +145,7 @@ eina_evlog_start(void);
145 * 145 *
146 * @since 1.15 146 * @since 1.15
147 */ 147 */
148EAPI void 148EINA_API void
149eina_evlog_stop(void); 149eina_evlog_stop(void);
150 150
151/** 151/**
diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c
index 0d9486568f..5e8c393e76 100644
--- a/src/lib/eina/eina_file.c
+++ b/src/lib/eina/eina_file.c
@@ -554,7 +554,7 @@ eina_file_cleanup(Eina_Tmpstr *path)
554 554
555 555
556 556
557EAPI Eina_Bool 557EINA_API Eina_Bool
558eina_file_dir_list(const char *dir, 558eina_file_dir_list(const char *dir,
559 Eina_Bool recursive, 559 Eina_Bool recursive,
560 Eina_File_Dir_List_Cb cb, 560 Eina_File_Dir_List_Cb cb,
@@ -586,7 +586,7 @@ eina_file_dir_list(const char *dir,
586 return EINA_TRUE; 586 return EINA_TRUE;
587} 587}
588 588
589EAPI Eina_Array * 589EINA_API Eina_Array *
590eina_file_split(char *path) 590eina_file_split(char *path)
591{ 591{
592 Eina_Array *ea; 592 Eina_Array *ea;
@@ -619,7 +619,7 @@ eina_file_split(char *path)
619 return ea; 619 return ea;
620} 620}
621 621
622EAPI Eina_Iterator * 622EINA_API Eina_Iterator *
623eina_file_ls(const char *dir) 623eina_file_ls(const char *dir)
624{ 624{
625#ifdef HAVE_DIRENT_H 625#ifdef HAVE_DIRENT_H
@@ -667,7 +667,7 @@ eina_file_ls(const char *dir)
667#endif 667#endif
668} 668}
669 669
670EAPI Eina_Iterator * 670EINA_API Eina_Iterator *
671eina_file_direct_ls(const char *dir) 671eina_file_direct_ls(const char *dir)
672{ 672{
673#ifdef HAVE_DIRENT_H 673#ifdef HAVE_DIRENT_H
@@ -727,7 +727,7 @@ eina_file_direct_ls(const char *dir)
727#endif 727#endif
728} 728}
729 729
730EAPI Eina_Iterator * 730EINA_API Eina_Iterator *
731eina_file_stat_ls(const char *dir) 731eina_file_stat_ls(const char *dir)
732{ 732{
733#ifdef HAVE_DIRENT_H 733#ifdef HAVE_DIRENT_H
@@ -787,7 +787,7 @@ eina_file_stat_ls(const char *dir)
787#endif 787#endif
788} 788}
789 789
790EAPI Eina_File * 790EINA_API Eina_File *
791eina_file_open(const char *path, Eina_Bool shared) 791eina_file_open(const char *path, Eina_Bool shared)
792{ 792{
793 Eina_File *file; 793 Eina_File *file;
@@ -896,7 +896,7 @@ eina_file_open(const char *path, Eina_Bool shared)
896 return NULL; 896 return NULL;
897} 897}
898 898
899EAPI Eina_Bool 899EINA_API Eina_Bool
900eina_file_refresh(Eina_File *file) 900eina_file_refresh(Eina_File *file)
901{ 901{
902 struct stat file_stat; 902 struct stat file_stat;
@@ -929,7 +929,7 @@ eina_file_refresh(Eina_File *file)
929 return r; 929 return r;
930} 930}
931 931
932EAPI Eina_Bool 932EINA_API Eina_Bool
933eina_file_unlink(const char *pathname) 933eina_file_unlink(const char *pathname)
934{ 934{
935 if ( unlink(pathname) < 0) 935 if ( unlink(pathname) < 0)
@@ -939,7 +939,7 @@ eina_file_unlink(const char *pathname)
939 return EINA_TRUE; 939 return EINA_TRUE;
940} 940}
941 941
942EAPI void * 942EINA_API void *
943eina_file_map_all(Eina_File *file, Eina_File_Populate rule) 943eina_file_map_all(Eina_File *file, Eina_File_Populate rule)
944{ 944{
945 int flags = MAP_SHARED; 945 int flags = MAP_SHARED;
@@ -990,7 +990,7 @@ eina_file_map_all(Eina_File *file, Eina_File_Populate rule)
990 return ret; 990 return ret;
991} 991}
992 992
993EAPI void * 993EINA_API void *
994eina_file_map_new(Eina_File *file, Eina_File_Populate rule, 994eina_file_map_new(Eina_File *file, Eina_File_Populate rule,
995 unsigned long int offset, unsigned long int length) 995 unsigned long int offset, unsigned long int length)
996{ 996{
@@ -1069,7 +1069,7 @@ eina_file_map_new(Eina_File *file, Eina_File_Populate rule,
1069 return NULL; 1069 return NULL;
1070} 1070}
1071 1071
1072EAPI void 1072EINA_API void
1073eina_file_map_free(Eina_File *file, void *map) 1073eina_file_map_free(Eina_File *file, void *map)
1074{ 1074{
1075 EINA_SAFETY_ON_NULL_RETURN(file); 1075 EINA_SAFETY_ON_NULL_RETURN(file);
@@ -1100,7 +1100,7 @@ eina_file_map_free(Eina_File *file, void *map)
1100 eina_lock_release(&file->lock); 1100 eina_lock_release(&file->lock);
1101} 1101}
1102 1102
1103EAPI void 1103EINA_API void
1104eina_file_map_populate(Eina_File *file, Eina_File_Populate rule, const void *map, 1104eina_file_map_populate(Eina_File *file, Eina_File_Populate rule, const void *map,
1105 unsigned long int offset, unsigned long int length) 1105 unsigned long int offset, unsigned long int length)
1106{ 1106{
@@ -1115,7 +1115,7 @@ eina_file_map_populate(Eina_File *file, Eina_File_Populate rule, const void *map
1115 eina_lock_release(&file->lock); 1115 eina_lock_release(&file->lock);
1116} 1116}
1117 1117
1118EAPI Eina_Bool 1118EINA_API Eina_Bool
1119eina_file_map_faulted(Eina_File *file, void *map) 1119eina_file_map_faulted(Eina_File *file, void *map)
1120{ 1120{
1121 Eina_Bool r = EINA_FALSE; 1121 Eina_Bool r = EINA_FALSE;
@@ -1157,7 +1157,7 @@ eina_file_map_faulted(Eina_File *file, void *map)
1157 return r; 1157 return r;
1158} 1158}
1159 1159
1160EAPI Eina_Iterator * 1160EINA_API Eina_Iterator *
1161eina_file_xattr_get(Eina_File *file) 1161eina_file_xattr_get(Eina_File *file)
1162{ 1162{
1163 EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL); 1163 EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
@@ -1167,7 +1167,7 @@ eina_file_xattr_get(Eina_File *file)
1167 return eina_xattr_fd_ls(file->fd); 1167 return eina_xattr_fd_ls(file->fd);
1168} 1168}
1169 1169
1170EAPI Eina_Iterator * 1170EINA_API Eina_Iterator *
1171eina_file_xattr_value_get(Eina_File *file) 1171eina_file_xattr_value_get(Eina_File *file)
1172{ 1172{
1173 EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL); 1173 EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
@@ -1177,7 +1177,7 @@ eina_file_xattr_value_get(Eina_File *file)
1177 return eina_xattr_value_fd_ls(file->fd); 1177 return eina_xattr_value_fd_ls(file->fd);
1178} 1178}
1179 1179
1180EAPI int 1180EINA_API int
1181eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *st) 1181eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *st)
1182{ 1182{
1183 struct stat buf; 1183 struct stat buf;
@@ -1252,7 +1252,7 @@ eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *st)
1252 return 0; 1252 return 0;
1253} 1253}
1254 1254
1255EAPI void 1255EINA_API void
1256eina_file_close_from(int fd, int *except_fd) 1256eina_file_close_from(int fd, int *except_fd)
1257{ 1257{
1258#if defined(_WIN32) 1258#if defined(_WIN32)
diff --git a/src/lib/eina/eina_file.h b/src/lib/eina/eina_file.h
index 404dea1ccb..622ab02b5d 100644
--- a/src/lib/eina/eina_file.h
+++ b/src/lib/eina/eina_file.h
@@ -264,7 +264,7 @@ struct _Eina_File_Line
264 * @param[in] data The data to pass to the callback 264 * @param[in] data The data to pass to the callback
265 * @return #EINA_TRUE on success, otherwise #EINA_FALSE 265 * @return #EINA_TRUE on success, otherwise #EINA_FALSE
266 */ 266 */
267EAPI Eina_Bool eina_file_dir_list(const char *dir, 267EINA_API Eina_Bool eina_file_dir_list(const char *dir,
268 Eina_Bool recursive, 268 Eina_Bool recursive,
269 Eina_File_Dir_List_Cb cb, 269 Eina_File_Dir_List_Cb cb,
270 void *data) EINA_ARG_NONNULL(1, 3); 270 void *data) EINA_ARG_NONNULL(1, 3);
@@ -280,7 +280,7 @@ EAPI Eina_Bool eina_file_dir_list(const char *dir,
280 * @return An array of the parts of the path to split 280 * @return An array of the parts of the path to split
281 * 281 *
282 */ 282 */
283EAPI Eina_Array *eina_file_split(char *path) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; 283EINA_API Eina_Array *eina_file_split(char *path) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
284 284
285/** 285/**
286 * @brief Gets an iterator to list the content of a directory. 286 * @brief Gets an iterator to list the content of a directory.
@@ -300,7 +300,7 @@ EAPI Eina_Array *eina_file_split(char *path) EINA_WARN_UNUSED_RESULT EINA_ARG
300 * 300 *
301 * @see eina_file_direct_ls() 301 * @see eina_file_direct_ls()
302 */ 302 */
303EAPI Eina_Iterator *eina_file_ls(const char *dir) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; 303EINA_API Eina_Iterator *eina_file_ls(const char *dir) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
304 304
305/** 305/**
306 * @brief Gets an iterator to list the content of a directory, with direct 306 * @brief Gets an iterator to list the content of a directory, with direct
@@ -327,7 +327,7 @@ EAPI Eina_Iterator *eina_file_ls(const char *dir) EINA_WARN_UNUSED_RESULT EINA_A
327 * 327 *
328 * @see eina_file_direct_ls() 328 * @see eina_file_direct_ls()
329 */ 329 */
330EAPI Eina_Iterator *eina_file_stat_ls(const char *dir) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; 330EINA_API Eina_Iterator *eina_file_stat_ls(const char *dir) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
331 331
332/** 332/**
333 * @brief Uses information provided by #Eina_Iterator of eina_file_stat_ls() or eina_file_direct_ls() 333 * @brief Uses information provided by #Eina_Iterator of eina_file_stat_ls() or eina_file_direct_ls()
@@ -345,7 +345,7 @@ EAPI Eina_Iterator *eina_file_stat_ls(const char *dir) EINA_WARN_UNUSED_RESULT E
345 * 345 *
346 * @since 1.2 346 * @since 1.2
347 */ 347 */
348EAPI int eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *buf) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1, 2, 3); 348EINA_API int eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *buf) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1, 2, 3);
349 349
350/** 350/**
351 * @brief Close all file descriptors that are open at or above the given fd 351 * @brief Close all file descriptors that are open at or above the given fd
@@ -362,7 +362,7 @@ EAPI int eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Sta
362 * 362 *
363 * @since 1.24 363 * @since 1.24
364 */ 364 */
365EAPI void eina_file_close_from(int fd, int *except_fd); 365EINA_API void eina_file_close_from(int fd, int *except_fd);
366 366
367/** 367/**
368 * @brief Generates and creates a uniquely named temporary file from a template name. 368 * @brief Generates and creates a uniquely named temporary file from a template name.
@@ -393,7 +393,7 @@ EAPI void eina_file_close_from(int fd, int *except_fd);
393 * @see eina_file_mkdtemp() 393 * @see eina_file_mkdtemp()
394 * @since 1.8 394 * @since 1.8
395 */ 395 */
396EAPI int eina_file_mkstemp(const char *templatename, Eina_Tmpstr **path) EINA_ARG_NONNULL(1); 396EINA_API int eina_file_mkstemp(const char *templatename, Eina_Tmpstr **path) EINA_ARG_NONNULL(1);
397 397
398/** 398/**
399 * @brief Generates and creates a uniquely named temporary directory from a template name. 399 * @brief Generates and creates a uniquely named temporary directory from a template name.
@@ -417,7 +417,7 @@ EAPI int eina_file_mkstemp(const char *templatename, Eina_Tmpstr **path) EINA_AR
417 * @see eina_file_mkstemp() 417 * @see eina_file_mkstemp()
418 * @since 1.8 418 * @since 1.8
419 */ 419 */
420EAPI Eina_Bool eina_file_mkdtemp(const char *templatename, Eina_Tmpstr **path) EINA_ARG_NONNULL(1,2); 420EINA_API Eina_Bool eina_file_mkdtemp(const char *templatename, Eina_Tmpstr **path) EINA_ARG_NONNULL(1,2);
421 421
422/** 422/**
423 * @brief Gets an iterator to list the content of a directory, with direct 423 * @brief Gets an iterator to list the content of a directory, with direct
@@ -446,7 +446,7 @@ EAPI Eina_Bool eina_file_mkdtemp(const char *templatename, Eina_Tmpstr **path) E
446 * 446 *
447 * @see eina_file_ls() 447 * @see eina_file_ls()
448 */ 448 */
449EAPI Eina_Iterator *eina_file_direct_ls(const char *dir) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; 449EINA_API Eina_Iterator *eina_file_direct_ls(const char *dir) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
450 450
451/** 451/**
452 * @brief Sanitizes the file path. 452 * @brief Sanitizes the file path.
@@ -460,7 +460,7 @@ EAPI Eina_Iterator *eina_file_direct_ls(const char *dir) EINA_WARN_UNUSED_RESULT
460 * 460 *
461 * @since 1.1 461 * @since 1.1
462 */ 462 */
463EAPI char *eina_file_path_sanitize(const char *path); 463EINA_API char *eina_file_path_sanitize(const char *path);
464 464
465/** 465/**
466 * @typedef Eina_File_Copy_Progress 466 * @typedef Eina_File_Copy_Progress
@@ -497,7 +497,7 @@ typedef enum {
497 * 497 *
498 * @note During the progress it may call back @p cb with the progress summary. 498 * @note During the progress it may call back @p cb with the progress summary.
499 */ 499 */
500EAPI Eina_Bool eina_file_copy(const char *src, const char *dst, Eina_File_Copy_Flags flags, Eina_File_Copy_Progress cb, const void *cb_data) EINA_ARG_NONNULL(1, 2); 500EINA_API Eina_Bool eina_file_copy(const char *src, const char *dst, Eina_File_Copy_Flags flags, Eina_File_Copy_Progress cb, const void *cb_data) EINA_ARG_NONNULL(1, 2);
501 501
502/** 502/**
503 * @brief Gets a read-only handler to a file. 503 * @brief Gets a read-only handler to a file.
@@ -512,7 +512,7 @@ EAPI Eina_Bool eina_file_copy(const char *src, const char *dst, Eina_File_Copy_F
512 * 512 *
513 * @since 1.1 513 * @since 1.1
514 */ 514 */
515EAPI Eina_File *eina_file_open(const char *name, Eina_Bool shared) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; 515EINA_API Eina_File *eina_file_open(const char *name, Eina_Bool shared) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
516 516
517/** 517/**
518 * @brief Creates a virtual file from a memory pointer. 518 * @brief Creates a virtual file from a memory pointer.
@@ -525,7 +525,7 @@ EAPI Eina_File *eina_file_open(const char *name, Eina_Bool shared) EINA_WARN_UNU
525 * 525 *
526 * @since 1.8 526 * @since 1.8
527 */ 527 */
528EAPI Eina_File * 528EINA_API Eina_File *
529eina_file_virtualize(const char *virtual_name, const void *data, unsigned long long length, Eina_Bool copy) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1); 529eina_file_virtualize(const char *virtual_name, const void *data, unsigned long long length, Eina_Bool copy) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
530 530
531/** 531/**
@@ -536,7 +536,7 @@ eina_file_virtualize(const char *virtual_name, const void *data, unsigned long l
536 * 536 *
537 * @since 1.8 537 * @since 1.8
538 */ 538 */
539EAPI Eina_Bool 539EINA_API Eina_Bool
540eina_file_virtual(Eina_File *file) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1); 540eina_file_virtual(Eina_File *file) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
541 541
542/** 542/**
@@ -549,7 +549,7 @@ eina_file_virtual(Eina_File *file) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1);
549 * 549 *
550 * @since 1.8 550 * @since 1.8
551 */ 551 */
552EAPI Eina_Bool eina_file_refresh(Eina_File *file); 552EINA_API Eina_Bool eina_file_refresh(Eina_File *file);
553 553
554/** 554/**
555 * @brief Duplicates a read-only handler of a previously open file. 555 * @brief Duplicates a read-only handler of a previously open file.
@@ -561,7 +561,7 @@ EAPI Eina_Bool eina_file_refresh(Eina_File *file);
561 * 561 *
562 * @since 1.8 562 * @since 1.8
563 */ 563 */
564EAPI Eina_File * eina_file_dup(const Eina_File *file); 564EINA_API Eina_File * eina_file_dup(const Eina_File *file);
565 565
566/** 566/**
567 * @brief Unrefs the file handler. 567 * @brief Unrefs the file handler.
@@ -571,7 +571,7 @@ EAPI Eina_File * eina_file_dup(const Eina_File *file);
571 * 571 *
572 * @since 1.1 572 * @since 1.1
573 */ 573 */
574EAPI void eina_file_close(Eina_File *file); 574EINA_API void eina_file_close(Eina_File *file);
575 575
576/** 576/**
577 * @brief Gets the file size at open time. 577 * @brief Gets the file size at open time.
@@ -581,7 +581,7 @@ EAPI void eina_file_close(Eina_File *file);
581 * 581 *
582 * @since 1.1 582 * @since 1.1
583 */ 583 */
584EAPI size_t eina_file_size_get(const Eina_File *file); 584EINA_API size_t eina_file_size_get(const Eina_File *file);
585 585
586/** 586/**
587 * @brief Gets the last modification time of an open file. 587 * @brief Gets the last modification time of an open file.
@@ -591,7 +591,7 @@ EAPI size_t eina_file_size_get(const Eina_File *file);
591 * 591 *
592 * @since 1.1 592 * @since 1.1
593 */ 593 */
594EAPI time_t eina_file_mtime_get(const Eina_File *file); 594EINA_API time_t eina_file_mtime_get(const Eina_File *file);
595 595
596/** 596/**
597 * @brief Gets the filename of an open file. 597 * @brief Gets the filename of an open file.
@@ -601,7 +601,7 @@ EAPI time_t eina_file_mtime_get(const Eina_File *file);
601 * 601 *
602 * @since 1.1 602 * @since 1.1
603 */ 603 */
604EAPI const char *eina_file_filename_get(const Eina_File *file); 604EINA_API const char *eina_file_filename_get(const Eina_File *file);
605 605
606/** 606/**
607 * @brief Gets the extended attribute of an open file. 607 * @brief Gets the extended attribute of an open file.
@@ -614,7 +614,7 @@ EAPI const char *eina_file_filename_get(const Eina_File *file);
614 * 614 *
615 * @since 1.2 615 * @since 1.2
616 */ 616 */
617EAPI Eina_Iterator *eina_file_xattr_get(Eina_File *file); 617EINA_API Eina_Iterator *eina_file_xattr_get(Eina_File *file);
618 618
619/** 619/**
620 * @brief Gets the extended attribute of an open file. 620 * @brief Gets the extended attribute of an open file.
@@ -628,7 +628,7 @@ EAPI Eina_Iterator *eina_file_xattr_get(Eina_File *file);
628 * 628 *
629 * @since 1.2 629 * @since 1.2
630 */ 630 */
631EAPI Eina_Iterator *eina_file_xattr_value_get(Eina_File *file); 631EINA_API Eina_Iterator *eina_file_xattr_value_get(Eina_File *file);
632 632
633/** 633/**
634 * @brief Maps all the files to a buffer. 634 * @brief Maps all the files to a buffer.
@@ -640,7 +640,7 @@ EAPI Eina_Iterator *eina_file_xattr_value_get(Eina_File *file);
640 * 640 *
641 * @since 1.1 641 * @since 1.1
642 */ 642 */
643EAPI void *eina_file_map_all(Eina_File *file, Eina_File_Populate rule); 643EINA_API void *eina_file_map_all(Eina_File *file, Eina_File_Populate rule);
644 644
645/** 645/**
646 * @brief Maps a part of the file. 646 * @brief Maps a part of the file.
@@ -656,7 +656,7 @@ EAPI void *eina_file_map_all(Eina_File *file, Eina_File_Populate rule);
656 * 656 *
657 * @since 1.1 657 * @since 1.1
658 */ 658 */
659EAPI void *eina_file_map_new(Eina_File *file, Eina_File_Populate rule, 659EINA_API void *eina_file_map_new(Eina_File *file, Eina_File_Populate rule,
660 unsigned long int offset, unsigned long int length); 660 unsigned long int offset, unsigned long int length);
661 661
662/** 662/**
@@ -667,7 +667,7 @@ EAPI void *eina_file_map_new(Eina_File *file, Eina_File_Populate rule,
667 * 667 *
668 * @since 1.1 668 * @since 1.1
669 */ 669 */
670EAPI void eina_file_map_free(Eina_File *file, void *map); 670EINA_API void eina_file_map_free(Eina_File *file, void *map);
671 671
672/** 672/**
673 * @brief Asks the OS to populate or otherwise pages of memory in file mapping. 673 * @brief Asks the OS to populate or otherwise pages of memory in file mapping.
@@ -683,7 +683,7 @@ EAPI void eina_file_map_free(Eina_File *file, void *map);
683 * 683 *
684 * @since 1.8 684 * @since 1.8
685 */ 685 */
686EAPI void 686EINA_API void
687eina_file_map_populate(Eina_File *file, Eina_File_Populate rule, const void *map, 687eina_file_map_populate(Eina_File *file, Eina_File_Populate rule, const void *map,
688 unsigned long int offset, unsigned long int length); 688 unsigned long int offset, unsigned long int length);
689 689
@@ -698,7 +698,7 @@ eina_file_map_populate(Eina_File *file, Eina_File_Populate rule, const void *map
698 * 698 *
699 * @since 1.3 699 * @since 1.3
700 */ 700 */
701EAPI Eina_Iterator *eina_file_map_lines(Eina_File *file); 701EINA_API Eina_Iterator *eina_file_map_lines(Eina_File *file);
702 702
703/** 703/**
704 * @brief Tells whether there has been an IO error during the life of a mmaped file. 704 * @brief Tells whether there has been an IO error during the life of a mmaped file.
@@ -709,7 +709,7 @@ EAPI Eina_Iterator *eina_file_map_lines(Eina_File *file);
709 * 709 *
710 * @since 1.2 710 * @since 1.2
711 */ 711 */
712EAPI Eina_Bool eina_file_map_faulted(Eina_File *file, void *map); 712EINA_API Eina_Bool eina_file_map_faulted(Eina_File *file, void *map);
713 713
714/** 714/**
715 * @brief Joins two paths of known length. 715 * @brief Joins two paths of known length.
@@ -768,7 +768,7 @@ static inline size_t eina_file_path_join(char *dst,
768 * 768 *
769 * @since 1.19 769 * @since 1.19
770 */ 770 */
771EAPI Eina_Bool eina_file_unlink(const char *pathname); 771EINA_API Eina_Bool eina_file_unlink(const char *pathname);
772 772
773/** 773/**
774 * @brief Make sure a file descriptor will be closed on exec. 774 * @brief Make sure a file descriptor will be closed on exec.
@@ -781,7 +781,7 @@ EAPI Eina_Bool eina_file_unlink(const char *pathname);
781 * 781 *
782 * @since 1.20 782 * @since 1.20
783 */ 783 */
784EAPI Eina_Bool eina_file_close_on_exec(int fd, Eina_Bool on); 784EINA_API Eina_Bool eina_file_close_on_exec(int fd, Eina_Bool on);
785 785
786#include "eina_inline_file.x" 786#include "eina_inline_file.x"
787 787
@@ -796,26 +796,26 @@ typedef unsigned int Eina_Statgen;
796 * @brief Force the stat generation counter to tick over so any following i/o does real i/o and stat calls 796 * @brief Force the stat generation counter to tick over so any following i/o does real i/o and stat calls
797 * @since 1.23 797 * @since 1.23
798 */ 798 */
799EAPI void eina_file_statgen_next(void); 799EINA_API void eina_file_statgen_next(void);
800 800
801/** 801/**
802 * @brief Get the current stat generation counter value 802 * @brief Get the current stat generation counter value
803 * @return 0 if you should always do stat calls and compare, or some other value that changes like a generation counter 803 * @return 0 if you should always do stat calls and compare, or some other value that changes like a generation counter
804 * @since 1.23 804 * @since 1.23
805 */ 805 */
806EAPI Eina_Statgen eina_file_statgen_get(void); 806EINA_API Eina_Statgen eina_file_statgen_get(void);
807 807
808/** 808/**
809 * @brief Enable stat generation count optimiziing to only stat/do file i/o between generation counts changing 809 * @brief Enable stat generation count optimiziing to only stat/do file i/o between generation counts changing
810 * @since 1.23 810 * @since 1.23
811 */ 811 */
812EAPI void eina_file_statgen_enable(void); 812EINA_API void eina_file_statgen_enable(void);
813 813
814/** 814/**
815 * @brief Disable stat generation count optimiziing to only stat/do file i/o between generation counts changing 815 * @brief Disable stat generation count optimiziing to only stat/do file i/o between generation counts changing
816 * @since 1.23 816 * @since 1.23
817 */ 817 */
818EAPI void eina_file_statgen_disable(void); 818EINA_API void eina_file_statgen_disable(void);
819 819
820/** 820/**
821 * @} 821 * @}
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index e70d9ef1cb..35d60a5412 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -73,7 +73,7 @@ Eina_Lock _eina_file_lock_cache;
73static Eina_Spinlock _eina_statgen_lock; 73static Eina_Spinlock _eina_statgen_lock;
74static Eina_Statgen _eina_statgen = 0; 74static Eina_Statgen _eina_statgen = 0;
75 75
76EAPI void 76EINA_API void
77eina_file_statgen_next(void) 77eina_file_statgen_next(void)
78{ 78{
79 eina_spinlock_take(&_eina_statgen_lock); 79 eina_spinlock_take(&_eina_statgen_lock);
@@ -85,7 +85,7 @@ eina_file_statgen_next(void)
85 eina_spinlock_release(&_eina_statgen_lock); 85 eina_spinlock_release(&_eina_statgen_lock);
86} 86}
87 87
88EAPI Eina_Statgen 88EINA_API Eina_Statgen
89eina_file_statgen_get(void) 89eina_file_statgen_get(void)
90{ 90{
91 Eina_Statgen s; 91 Eina_Statgen s;
@@ -95,7 +95,7 @@ eina_file_statgen_get(void)
95 return s; 95 return s;
96} 96}
97 97
98EAPI void 98EINA_API void
99eina_file_statgen_enable(void) 99eina_file_statgen_enable(void)
100{ 100{
101 eina_spinlock_take(&_eina_statgen_lock); 101 eina_spinlock_take(&_eina_statgen_lock);
@@ -103,7 +103,7 @@ eina_file_statgen_enable(void)
103 eina_spinlock_release(&_eina_statgen_lock); 103 eina_spinlock_release(&_eina_statgen_lock);
104} 104}
105 105
106EAPI void 106EINA_API void
107eina_file_statgen_disable(void) 107eina_file_statgen_disable(void)
108{ 108{
109 eina_spinlock_take(&_eina_statgen_lock); 109 eina_spinlock_take(&_eina_statgen_lock);
@@ -405,7 +405,7 @@ _eina_file_map_close(Eina_File_Map *map)
405 405
406// Global API 406// Global API
407 407
408EAPI char * 408EINA_API char *
409eina_file_path_sanitize(const char *path) 409eina_file_path_sanitize(const char *path)
410{ 410{
411 Eina_Tmpstr *result = NULL; 411 Eina_Tmpstr *result = NULL;
@@ -430,7 +430,7 @@ eina_file_path_sanitize(const char *path)
430 return r; 430 return r;
431} 431}
432 432
433EAPI Eina_File * 433EINA_API Eina_File *
434eina_file_virtualize(const char *virtual_name, const void *data, unsigned long long length, Eina_Bool copy) 434eina_file_virtualize(const char *virtual_name, const void *data, unsigned long long length, Eina_Bool copy)
435{ 435{
436 Eina_File *file; 436 Eina_File *file;
@@ -494,7 +494,7 @@ eina_file_virtualize(const char *virtual_name, const void *data, unsigned long l
494 return file; 494 return file;
495} 495}
496 496
497EAPI Eina_Bool 497EINA_API Eina_Bool
498eina_file_virtual(Eina_File *file) 498eina_file_virtual(Eina_File *file)
499{ 499{
500 if (!file) return EINA_FALSE; 500 if (!file) return EINA_FALSE;
@@ -502,7 +502,7 @@ eina_file_virtual(Eina_File *file)
502 return file->virtual; 502 return file->virtual;
503} 503}
504 504
505EAPI Eina_File * 505EINA_API Eina_File *
506eina_file_dup(const Eina_File *f) 506eina_file_dup(const Eina_File *f)
507{ 507{
508 Eina_File *file = (Eina_File*) f; 508 Eina_File *file = (Eina_File*) f;
@@ -544,7 +544,7 @@ eina_file_clean_close(Eina_File *file)
544 free(file); 544 free(file);
545} 545}
546 546
547EAPI void 547EINA_API void
548eina_file_close(Eina_File *file) 548eina_file_close(Eina_File *file)
549{ 549{
550 Eina_Bool leave = EINA_TRUE; 550 Eina_Bool leave = EINA_TRUE;
@@ -574,21 +574,21 @@ eina_file_close(Eina_File *file)
574 eina_lock_release(&_eina_file_lock_cache); 574 eina_lock_release(&_eina_file_lock_cache);
575} 575}
576 576
577EAPI size_t 577EINA_API size_t
578eina_file_size_get(const Eina_File *file) 578eina_file_size_get(const Eina_File *file)
579{ 579{
580 EINA_FILE_MAGIC_CHECK(file, 0); 580 EINA_FILE_MAGIC_CHECK(file, 0);
581 return file->length; 581 return file->length;
582} 582}
583 583
584EAPI time_t 584EINA_API time_t
585eina_file_mtime_get(const Eina_File *file) 585eina_file_mtime_get(const Eina_File *file)
586{ 586{
587 EINA_FILE_MAGIC_CHECK(file, 0); 587 EINA_FILE_MAGIC_CHECK(file, 0);
588 return file->mtime; 588 return file->mtime;
589} 589}
590 590
591EAPI const char * 591EINA_API const char *
592eina_file_filename_get(const Eina_File *file) 592eina_file_filename_get(const Eina_File *file)
593{ 593{
594 EINA_FILE_MAGIC_CHECK(file, NULL); 594 EINA_FILE_MAGIC_CHECK(file, NULL);
@@ -695,7 +695,7 @@ _eina_file_map_lines_iterator_free(Eina_Lines_Iterator *it)
695 free(it); 695 free(it);
696} 696}
697 697
698EAPI Eina_Iterator * 698EINA_API Eina_Iterator *
699eina_file_map_lines(Eina_File *file) 699eina_file_map_lines(Eina_File *file)
700{ 700{