fix up some warnings

SVN revision: 19563
This commit is contained in:
Carsten Haitzler 2006-01-06 17:58:12 +00:00
parent e886d21d78
commit 12aa35dd99
21 changed files with 229 additions and 228 deletions

View File

@ -40,7 +40,7 @@ int _ecore_fps_debug = 0;
* }
* @endcode
*/
int
EAPI int
ecore_init(void)
{
if (++_ecore_init_count == 1)
@ -70,7 +70,7 @@ ecore_init(void)
* Do not call this function from any callback that may be called from the main
* loop, as the main loop will then fall over and not function properly.
*/
int
EAPI int
ecore_shutdown(void)
{
if (--_ecore_init_count)

View File

@ -25,7 +25,7 @@ static double animators_frametime = 1.0 / 30.0;
* 0 it will be deleted automatically making any references/handles for it
* invalid.
*/
Ecore_Animator *
EAPI Ecore_Animator *
ecore_animator_add(int (*func) (void *data), const void *data)
{
Ecore_Animator *animator;
@ -54,7 +54,7 @@ ecore_animator_add(int (*func) (void *data), const void *data)
* call returns the specified animator object @p animator is invalid and should not
* be used again. It will not get called again after deletion.
*/
void *
EAPI void *
ecore_animator_del(Ecore_Animator *animator)
{
if (!ECORE_MAGIC_CHECK(animator, ECORE_MAGIC_ANIMATOR))
@ -75,7 +75,7 @@ ecore_animator_del(Ecore_Animator *animator)
*
* This function sets the time interval (in seconds) inbetween animator ticks.
*/
void
EAPI void
ecore_animator_frametime_set(double frametime)
{
if (frametime < 0.0) frametime = 0.0;
@ -96,7 +96,7 @@ ecore_animator_frametime_set(double frametime)
*
* this function retrieves the time inbetween animator ticks, in seconds.
*/
double
EAPI double
ecore_animator_frametime_get(void)
{
return animators_frametime;

View File

@ -12,7 +12,7 @@ static char **app_argv = NULL;
* A call to this function will store the programs command-line arguments
* for later use by ecore_app_restart() or ecore_app_args_get().
*/
void
EAPI void
ecore_app_args_set(int argc, const char **argv)
{
if ((argc < 1) ||
@ -32,7 +32,7 @@ ecore_app_args_set(int argc, const char **argv)
* also if the pointer is not NULL. The values they are filled with will be the
* same set by ecore_app_args_set().
*/
void
EAPI void
ecore_app_args_get(int *argc, char ***argv)
{
if (argc) *argc = app_argc;
@ -49,7 +49,7 @@ ecore_app_args_get(int *argc, char ***argv)
*
* FIXME: Currently not implimented.
*/
void
EAPI void
ecore_app_restart(void)
{
char **args;

View File

@ -40,7 +40,7 @@ static void *ecore_raw_event_event = NULL;
* particular event, so all handler set to handle that event type that have not
* already been called, will not be.
*/
Ecore_Event_Handler *
EAPI Ecore_Event_Handler *
ecore_event_handler_add(int type, int (*func) (void *data, int type, void *event), const void *data)
{
Ecore_Event_Handler *eh;
@ -90,7 +90,7 @@ ecore_event_handler_add(int type, int (*func) (void *data, int type, void *event
* handler was added by ecore_event_handler_add(). On failure NULL will be
* returned. Once a handler is deleted it will no longer be called.
*/
void *
EAPI void *
ecore_event_handler_del(Ecore_Event_Handler *event_handler)
{
Ecore_List2_Data *node;
@ -131,7 +131,7 @@ static void _ecore_event_generic_free (void *data __UNUSED__, void *event)
* with the private structure pointer.
* func_free is passed @p data as its data parameter.
*/
Ecore_Event *
EAPI Ecore_Event *
ecore_event_add(int type, void *ev, void (*func_free) (void *data, void *ev), void *data)
{
if (!ev) return NULL;
@ -152,7 +152,7 @@ ecore_event_add(int type, void *ev, void (*func_free) (void *data, void *ev), vo
* cleanup, and so if the free function depends on the data pointer to work,
* you should defer cleaning of this till the free function is called later.
*/
void *
EAPI void *
ecore_event_del(Ecore_Event *event)
{
if (!ECORE_MAGIC_CHECK(event, ECORE_MAGIC_EVENT))
@ -175,7 +175,7 @@ ecore_event_del(Ecore_Event *event)
* it is calculated, except that the ID will be unique to the current instance
* of the process.
*/
int
EAPI int
ecore_event_type_new(void)
{
event_id_max++;
@ -202,7 +202,7 @@ ecore_event_type_new(void)
* processing is finished @p func_end is called and is passed the loop_data
* and @p data pointer to clean up.
*/
Ecore_Event_Filter *
EAPI Ecore_Event_Filter *
ecore_event_filter_add(void * (*func_start) (void *data), int (*func_filter) (void *data, void *loop_data, int type, void *event), void (*func_end) (void *data, void *loop_data), const void *data)
{
Ecore_Event_Filter *ef;
@ -228,7 +228,7 @@ ecore_event_filter_add(void * (*func_start) (void *data), int (*func_filter) (vo
* will return the data pointer set when this filter was added. On failure
* NULL is returned.
*/
void *
EAPI void *
ecore_event_filter_del(Ecore_Event_Filter *ef)
{
if (!ECORE_MAGIC_CHECK(ef, ECORE_MAGIC_EVENT_FILTER))
@ -256,7 +256,7 @@ ecore_event_filter_del(Ecore_Event_Filter *ef)
* the program know if the event type being handled is one it wants to get more
* information about.
*/
int
EAPI int
ecore_event_current_type_get(void)
{
return ecore_raw_event_type;
@ -276,7 +276,7 @@ ecore_event_current_type_get(void)
* the program access the event data if the type of the event is handled by
* the program.
*/
void *
EAPI void *
ecore_event_current_event_get(void)
{
return ecore_raw_event_event;
@ -476,7 +476,7 @@ _ecore_event_exe_exit_free(void *data __UNUSED__, void *ev)
}
#endif
void *
EAPI void *
_ecore_event_signal_user_new(void)
{
Ecore_Event_Signal_User *e;

View File

@ -27,7 +27,7 @@ static char *shell = NULL;
/* FIXME: This errno checking stuff should be put elsewhere for everybody to use.
* For now it lives here though, just to make testing easier.
*/
int _ecore_exe_check_errno(int result, char *file, int line);
static int _ecore_exe_check_errno(int result, char *file, int line);
#define E_IF_NO_ERRNO(result, foo, ok) \
while (((ok) = _ecore_exe_check_errno( (result) = (foo), __FILE__, __LINE__)) == -1) sleep(1); \
if (ok)
@ -38,7 +38,8 @@ int _ecore_exe_check_errno(int result, char *file, int line);
#define E_IF_NO_ERRNO_NOLOOP(result, foo, ok) \
if (((ok) = _ecore_exe_check_errno( (result) = (foo), __FILE__, __LINE__)))
int _ecore_exe_check_errno(int result, char *file, int line)
static int
_ecore_exe_check_errno(int result, char *file, int line)
{
int saved_errno = errno;
@ -187,7 +188,7 @@ int _ecore_exe_check_errno(int result, char *file, int line)
* @return A process handle to the spawned process.
* @ingroup Ecore_Exe_Basic_Group
*/
Ecore_Exe *
EAPI Ecore_Exe *
ecore_exe_run(const char *exe_cmd, const void *data)
{
Ecore_Exe *exe;
@ -235,7 +236,7 @@ ecore_exe_run(const char *exe_cmd, const void *data)
* @return A process handle to the spawned process.
* @ingroup Ecore_Exe_Basic_Group
*/
Ecore_Exe *
EAPI Ecore_Exe *
ecore_exe_pipe_run(const char *exe_cmd, Ecore_Exe_Flags flags, const void *data)
{
/* FIXME: Maybe we should allow STDERR reading as well. */
@ -424,7 +425,7 @@ ecore_exe_pipe_run(const char *exe_cmd, Ecore_Exe_Flags flags, const void *data)
* @return 1 if successful, 0 on failure.
* @ingroup Ecore_Exe_Basic_Group
*/
int
EAPI int
ecore_exe_send(Ecore_Exe *exe, void *data, int size)
{
void *buf;
@ -448,7 +449,7 @@ ecore_exe_send(Ecore_Exe *exe, void *data, int size)
* @param exe The child process
* @ingroup Ecore_Exe_Basic_Group
*/
void
EAPI void
ecore_exe_close_stdin(Ecore_Exe *exe)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -468,7 +469,7 @@ ecore_exe_close_stdin(Ecore_Exe *exe)
* @param tag The string tag to set on the process handle.
* @ingroup Ecore_Exe_Basic_Group
*/
void
EAPI void
ecore_exe_tag_set(Ecore_Exe *exe, const char *tag)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -491,7 +492,7 @@ ecore_exe_tag_set(Ecore_Exe *exe, const char *tag)
* @return The string attached to @p exe.
* @ingroup Ecore_Exe_Basic_Group
*/
char *
EAPI char *
ecore_exe_tag_get(Ecore_Exe *exe)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -514,7 +515,7 @@ ecore_exe_tag_get(Ecore_Exe *exe)
* called.
* @ingroup Ecore_Exe_Basic_Group
*/
void *
EAPI void *
ecore_exe_free(Ecore_Exe *exe)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -532,7 +533,7 @@ ecore_exe_free(Ecore_Exe *exe)
* @return The process ID on success. @c -1 otherwise.
* @ingroup Ecore_Exe_Basic_Group
*/
pid_t
EAPI pid_t
ecore_exe_pid_get(Ecore_Exe *exe)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -550,7 +551,7 @@ ecore_exe_pid_get(Ecore_Exe *exe)
* @return The data pointer attached to @p exe.
* @ingroup Ecore_Exe_Basic_Group
*/
void *
EAPI void *
ecore_exe_data_get(Ecore_Exe *exe)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -573,7 +574,7 @@ ecore_exe_data_get(Ecore_Exe *exe)
* @param exe Process handle to the given process.
* @ingroup Ecore_Exe_Signal_Group
*/
void
EAPI void
ecore_exe_pause(Ecore_Exe *exe)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -590,7 +591,7 @@ ecore_exe_pause(Ecore_Exe *exe)
* @param exe Process handle to the given process.
* @ingroup Ecore_Exe_Signal_Group
*/
void
EAPI void
ecore_exe_continue(Ecore_Exe *exe)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -607,7 +608,7 @@ ecore_exe_continue(Ecore_Exe *exe)
* @param exe Process handle to the given process.
* @ingroup Ecore_Exe_Signal_Group
*/
void
EAPI void
ecore_exe_terminate(Ecore_Exe *exe)
{
struct _ecore_exe_dead_exe *dead;
@ -635,7 +636,7 @@ ecore_exe_terminate(Ecore_Exe *exe)
* @param exe Process handle to the given process.
* @ingroup Ecore_Exe_Signal_Group
*/
void
EAPI void
ecore_exe_kill(Ecore_Exe *exe)
{
struct _ecore_exe_dead_exe *dead;
@ -665,7 +666,7 @@ ecore_exe_kill(Ecore_Exe *exe)
* the signal will be ignored.
* @ingroup Ecore_Exe_Signal_Group
*/
void
EAPI void
ecore_exe_signal(Ecore_Exe *exe, int num)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -685,7 +686,7 @@ ecore_exe_signal(Ecore_Exe *exe, int num)
* @param exe Process handle to the given process.
* @ingroup Ecore_Exe_Signal_Group
*/
void
EAPI void
ecore_exe_hup(Ecore_Exe *exe)
{
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
@ -974,7 +975,7 @@ _ecore_exe_data_read_handler(void *data, Ecore_Fd_Handler *fd_handler)
int last = 0;
char *c;
c = inbuf;
c = (char *)inbuf;
for (i = 0; i < inbuf_num; i++) /* Find the lines. */
{
if (inbuf[i] == '\n')
@ -1002,7 +1003,7 @@ _ecore_exe_data_read_handler(void *data, Ecore_Fd_Handler *fd_handler)
e->lines[count].line = c;
e->lines[count].size = i - last;
last = i + 1;
c = &inbuf[last];
c = (char *)&inbuf[last];
count++;
}
}

View File

@ -48,7 +48,7 @@ static int _ecore_hash_node_destroy(Ecore_Hash_Node *node, Ecore_Free_Cb keyd,
* @return @c NULL on error, a new hash on success.
* @ingroup Ecore_Data_Hash_ADT_Creation_Group
*/
Ecore_Hash *ecore_hash_new(Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare)
EAPI Ecore_Hash *ecore_hash_new(Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare)
{
Ecore_Hash *new_hash = (Ecore_Hash *)malloc(sizeof(Ecore_Hash));
if (!new_hash)
@ -70,7 +70,7 @@ Ecore_Hash *ecore_hash_new(Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare)
* @return @c TRUE on success, @c FALSE on an error.
* @ingroup Ecore_Data_Hash_ADT_Creation_Group
*/
int ecore_hash_init(Ecore_Hash *hash, Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare)
EAPI int ecore_hash_init(Ecore_Hash *hash, Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare)
{
CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE);
@ -100,7 +100,7 @@ int ecore_hash_init(Ecore_Hash *hash, Ecore_Hash_Cb hash_func, Ecore_Compare_Cb
* @return @c TRUE on success, @c FALSE on error.
* @ingroup Ecore_Data_Hash_ADT_Destruction_Group
*/
int ecore_hash_set_free_key(Ecore_Hash *hash, Ecore_Free_Cb function)
EAPI int ecore_hash_set_free_key(Ecore_Hash *hash, Ecore_Free_Cb function)
{
CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE);
CHECK_PARAM_POINTER_RETURN("function", function, FALSE);
@ -119,7 +119,7 @@ int ecore_hash_set_free_key(Ecore_Hash *hash, Ecore_Free_Cb function)
* @return @c TRUE on success, @c FALSE on error
* @ingroup Ecore_Data_Hash_ADT_Destruction_Group
*/
int ecore_hash_set_free_value(Ecore_Hash *hash, Ecore_Free_Cb function)
EAPI int ecore_hash_set_free_value(Ecore_Hash *hash, Ecore_Free_Cb function)
{
CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE);
CHECK_PARAM_POINTER_RETURN("function", function, FALSE);
@ -145,7 +145,7 @@ int ecore_hash_set_free_value(Ecore_Hash *hash, Ecore_Free_Cb function)
* @return @c TRUE if successful, @c FALSE if not.
* @ingroup Ecore_Data_Hash_ADT_Data_Group
*/
int ecore_hash_set(Ecore_Hash *hash, void *key, void *value)
EAPI int ecore_hash_set(Ecore_Hash *hash, void *key, void *value)
{
int ret = FALSE;
Ecore_Hash_Node *node;
@ -172,7 +172,7 @@ int ecore_hash_set(Ecore_Hash *hash, void *key, void *value)
* @return @c TRUE on success, @c FALSE on error.
* @ingroup Ecore_Data_Hash_ADT_Destruction_Group
*/
void ecore_hash_destroy(Ecore_Hash *hash)
EAPI void ecore_hash_destroy(Ecore_Hash *hash)
{
unsigned int i = 0;
@ -223,7 +223,7 @@ void ecore_hash_destroy(Ecore_Hash *hash)
* @return TRUE on success, FALSE otherwise.
* @ingroup Ecore_Data_Hash_ADT_Traverse_Group
*/
int ecore_hash_for_each_node(Ecore_Hash *hash, Ecore_For_Each for_each_func,
EAPI int ecore_hash_for_each_node(Ecore_Hash *hash, Ecore_For_Each for_each_func,
void *user_data)
{
unsigned int i = 0;
@ -255,7 +255,7 @@ int ecore_hash_for_each_node(Ecore_Hash *hash, Ecore_For_Each for_each_func,
* @return new ecore_list on success, NULL otherwise
* @ingroup Ecore_Data_Hash_ADT_Traverse_Group
*/
Ecore_List *ecore_hash_keys(Ecore_Hash *hash)
EAPI Ecore_List *ecore_hash_keys(Ecore_Hash *hash)
{
unsigned int i = 0;
Ecore_List *keys;
@ -288,7 +288,7 @@ Ecore_List *ecore_hash_keys(Ecore_Hash *hash)
* Prints the distribution of the given hash table for graphing.
* @param hash The given hash table.
*/
void
EAPI void
ecore_hash_dump_graph(Ecore_Hash *hash)
{
unsigned int i;
@ -360,7 +360,7 @@ _ecore_hash_add_node(Ecore_Hash *hash, Ecore_Hash_Node *node)
* @return The value corresponding to key on success, @c NULL otherwise.
* @ingroup Ecore_Data_Hash_ADT_Data_Group
*/
void *ecore_hash_get(Ecore_Hash *hash, void *key)
EAPI void *ecore_hash_get(Ecore_Hash *hash, void *key)
{
void *data;
Ecore_Hash_Node *node;
@ -388,7 +388,7 @@ void *ecore_hash_get(Ecore_Hash *hash, void *key)
* returned if there is an error.
* @ingroup Ecore_Data_Hash_ADT_Data_Group
*/
void *ecore_hash_remove(Ecore_Hash *hash, void *key)
EAPI void *ecore_hash_remove(Ecore_Hash *hash, void *key)
{
Ecore_Hash_Node *node = NULL;
Ecore_Hash_Node *list;

View File

@ -12,7 +12,7 @@ static int idle_enterers_delete_me = 0;
* NULL is returned.
* @ingroup Idle_Group
*/
Ecore_Idle_Enterer *
EAPI Ecore_Idle_Enterer *
ecore_idle_enterer_add(int (*func) (void *data), const void *data)
{
Ecore_Idle_Enterer *ie;
@ -34,7 +34,7 @@ ecore_idle_enterer_add(int (*func) (void *data), const void *data)
* NULL otherwise.
* @ingroup Idle_Group
*/
void *
EAPI void *
ecore_idle_enterer_del(Ecore_Idle_Enterer *idle_enterer)
{
if (!ECORE_MAGIC_CHECK(idle_enterer, ECORE_MAGIC_IDLE_ENTERER))

View File

@ -11,7 +11,7 @@ static int idle_exiters_delete_me = 0;
* @return A handle to the idle exiter callback on success. NULL otherwise.
* @ingroup Idle_Group
*/
Ecore_Idle_Exiter *
EAPI Ecore_Idle_Exiter *
ecore_idle_exiter_add(int (*func) (void *data), const void *data)
{
Ecore_Idle_Exiter *ie;
@ -33,7 +33,7 @@ ecore_idle_exiter_add(int (*func) (void *data), const void *data)
* successful. NULL otherwise.
* @ingroup Idle_Group
*/
void *
EAPI void *
ecore_idle_exiter_del(Ecore_Idle_Exiter *idle_exiter)
{
if (!ECORE_MAGIC_CHECK(idle_exiter, ECORE_MAGIC_IDLE_EXITER))

View File

@ -11,7 +11,7 @@ static int idlers_delete_me = 0;
* @return A idler handle if successfully added. NULL otherwise.
* @ingroup Idle_Group
*/
Ecore_Idler *
EAPI Ecore_Idler *
ecore_idler_add(int (*func) (void *data), const void *data)
{
Ecore_Idler *ie;
@ -33,7 +33,7 @@ ecore_idler_add(int (*func) (void *data), const void *data)
* otherwise.
* @ingroup Idle_Group
*/
void *
EAPI void *
ecore_idler_del(Ecore_Idler *idler)
{
if (!ECORE_MAGIC_CHECK(idler, ECORE_MAGIC_IDLER))

View File

@ -32,7 +32,7 @@ static void *_ecore_dlist_remove_first(Ecore_DList *list);
static void *_ecore_dlist_goto_index(Ecore_DList *list, int index);
/* XXX: Begin deprecated code */
void *
EAPI void *
_ecore_list2_append(void *in_list, void *in_item)
{
Ecore_List2 *l, *new_l;
@ -56,7 +56,7 @@ _ecore_list2_append(void *in_list, void *in_item)
return list;
}
void *
EAPI void *
_ecore_list2_prepend(void *in_list, void *in_item)
{
Ecore_List2 *new_l;
@ -79,7 +79,7 @@ _ecore_list2_prepend(void *in_list, void *in_item)
return new_l;
}
void *
EAPI void *
_ecore_list2_append_relative(void *in_list, void *in_item, void *in_relative)
{
Ecore_List2 *l;
@ -112,7 +112,7 @@ _ecore_list2_append_relative(void *in_list, void *in_item, void *in_relative)
return _ecore_list2_append(list, item);
}
void *
EAPI void *
_ecore_list2_prepend_relative(void *in_list, void *in_item, void *in_relative)
{
Ecore_List2 *l;
@ -154,7 +154,7 @@ _ecore_list2_prepend_relative(void *in_list, void *in_item, void *in_relative)
return _ecore_list2_prepend(list, item);
}
void *
EAPI void *
_ecore_list2_remove(void *in_list, void *in_item)
{
Ecore_List2 *return_l;
@ -187,7 +187,7 @@ _ecore_list2_remove(void *in_list, void *in_item)
return return_l;
}
void *
EAPI void *
_ecore_list2_find(void *in_list, void *in_item)
{
Ecore_List2 *l;
@ -214,7 +214,7 @@ Functions that create, initialize and destroy Ecore_Lists.
* @return A new initialized list on success, @c NULL on failure.
* @ingroup Ecore_Data_List_Creation_Group
*/
Ecore_List *ecore_list_new()
EAPI Ecore_List *ecore_list_new()
{
Ecore_List *list;
@ -236,7 +236,7 @@ Ecore_List *ecore_list_new()
* @return @c TRUE if successful, @c FALSE if an error occurs.
* @ingroup Ecore_Data_List_Creation_Group
*/
int ecore_list_init(Ecore_List *list)
EAPI int ecore_list_init(Ecore_List *list)
{
CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
@ -250,7 +250,7 @@ int ecore_list_init(Ecore_List *list)
* @param list The list to be freed.
* @ingroup Ecore_Data_List_Creation_Group
*/
void ecore_list_destroy(Ecore_List * list)
EAPI void ecore_list_destroy(Ecore_List * list)
{
void *data;
@ -272,7 +272,7 @@ void ecore_list_destroy(Ecore_List * list)
* @param free_func The function that will free the key data.
* @return @c TRUE on successful set, @c FALSE otherwise.
*/
int ecore_list_set_free_cb(Ecore_List * list, Ecore_Free_Cb free_func)
EAPI int ecore_list_set_free_cb(Ecore_List * list, Ecore_Free_Cb free_func)
{
CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
@ -286,7 +286,7 @@ int ecore_list_set_free_cb(Ecore_List * list, Ecore_Free_Cb free_func)
* @param list The list to check for nodes
* @return @c TRUE if no nodes in list, @c FALSE if the list contains nodes
*/
int ecore_list_is_empty(Ecore_List * list)
EAPI int ecore_list_is_empty(Ecore_List * list)
{
int ret = TRUE;
@ -303,7 +303,7 @@ int ecore_list_is_empty(Ecore_List * list)
* @param list The list to return the number of the current node.
* @return The number of the current node in the list.
*/
int ecore_list_index(Ecore_List * list)
EAPI int ecore_list_index(Ecore_List * list)
{
int ret;
@ -319,7 +319,7 @@ int ecore_list_index(Ecore_List * list)
* @param list The list to find the number of nodes
* @return The number of nodes in the list.
*/
int ecore_list_nodes(Ecore_List * list)
EAPI int ecore_list_nodes(Ecore_List * list)
{
int ret = 0;
@ -343,7 +343,7 @@ Functions that are used to add nodes to an Ecore_List.
* @return @c FALSE if an error occurs, @c TRUE if appended successfully
* @ingroup Ecore_Data_List_Add_Item_Group
*/
inline int ecore_list_append(Ecore_List * list, void *data)
EAPI inline int ecore_list_append(Ecore_List * list, void *data)
{
int ret;
Ecore_List_Node *node;
@ -388,7 +388,7 @@ static int _ecore_list_append_0(Ecore_List * list, Ecore_List_Node *end)
* @return @c FALSE if an error occurs, @c TRUE if prepended successfully.
* @ingroup Ecore_Data_List_Add_Item_Group
*/
inline int ecore_list_prepend(Ecore_List * list, void *data)
EAPI inline int ecore_list_prepend(Ecore_List * list, void *data)
{
int ret;
Ecore_List_Node *node;
@ -428,7 +428,7 @@ static int _ecore_list_prepend_0(Ecore_List * list, Ecore_List_Node *start)
* @return @c FALSE if there is an error, @c TRUE on success
* @ingroup Ecore_Data_List_Add_Item_Group
*/
inline int ecore_list_insert(Ecore_List * list, void *data)
EAPI inline int ecore_list_insert(Ecore_List * list, void *data)
{
int ret;
Ecore_List_Node *node;
@ -490,7 +490,7 @@ Functions that remove nodes from an Ecore_List.
* @return A pointer to the removed data on success, @c NULL on failure.
* @ingroup Ecore_Data_List_Remove_Item_Group
*/
inline void *ecore_list_remove(Ecore_List * list)
EAPI inline void *ecore_list_remove(Ecore_List * list)
{
void *ret;
@ -545,7 +545,7 @@ static void *_ecore_list_remove_0(Ecore_List * list)
* @return @c TRUE on success, @c FALSE on error
* @ingroup Ecore_Data_List_Remove_Item_Group
*/
int ecore_list_remove_destroy(Ecore_List *list)
EAPI int ecore_list_remove_destroy(Ecore_List *list)
{
void *data;
@ -565,7 +565,7 @@ int ecore_list_remove_destroy(Ecore_List *list)
* failure.
* @ingroup Ecore_Data_List_Remove_Item_Group
*/
inline void *ecore_list_remove_first(Ecore_List * list)
EAPI inline void *ecore_list_remove_first(Ecore_List * list)
{
void *ret;
@ -618,7 +618,7 @@ static void *_ecore_list_remove_first(Ecore_List * list)
* @return A pointer to the removed data on success, @c NULL on failure.
* @ingroup Ecore_Data_List_Remove_Item_Group
*/
inline void *ecore_list_remove_last(Ecore_List * list)
EAPI inline void *ecore_list_remove_last(Ecore_List * list)
{
void *ret;
@ -685,7 +685,7 @@ Functions that can be used to traverse an Ecore_List.
* @return A pointer to new current item on success, @c NULL on failure.
* @ingroup Ecore_Data_List_Traverse_Group
*/
inline void *ecore_list_goto_index(Ecore_List * list, int index)
EAPI inline void *ecore_list_goto_index(Ecore_List * list, int index)
{
void *ret;
@ -730,7 +730,7 @@ static void *_ecore_list_goto_index(Ecore_List *list, int index)
* @return A pointer to @p data on success, @c NULL on failure.
* @ingroup Ecore_Data_List_Traverse_Group
*/
inline void *ecore_list_goto(Ecore_List * list, void *data)
EAPI inline void *ecore_list_goto(Ecore_List * list, void *data)
{
void *ret;
@ -781,7 +781,7 @@ static void *_ecore_list_goto(Ecore_List * list, void *data)
* @return A pointer to the first item on success, @c NULL on failure
* @ingroup Ecore_Data_List_Traverse_Group
*/
inline void *ecore_list_goto_first(Ecore_List *list)
EAPI inline void *ecore_list_goto_first(Ecore_List *list)
{
void *ret;
@ -810,7 +810,7 @@ static void *_ecore_list_goto_first(Ecore_List * list)
* @return A pointer to the last item on success, @c NULL on failure.
* @ingroup Ecore_Data_List_Traverse_Group
*/
inline void *ecore_list_goto_last(Ecore_List * list)
EAPI inline void *ecore_list_goto_last(Ecore_List * list)
{
void *ret;
@ -838,7 +838,7 @@ static void *_ecore_list_goto_last(Ecore_List * list)
* @param list The list.
* @return Returns the data at current position, can be @c NULL.
*/
inline void *ecore_list_current(Ecore_List * list)
EAPI inline void *ecore_list_current(Ecore_List * list)
{
void *ret;
@ -866,7 +866,7 @@ static void *_ecore_list_current(Ecore_List * list)
* @param list The list to retrieve data from.
* @return The current item in the list on success, @c NULL on failure.
*/
inline void *ecore_list_next(Ecore_List * list)
EAPI inline void *ecore_list_next(Ecore_List * list)
{
void *data;
@ -905,7 +905,7 @@ static void *_ecore_list_next(Ecore_List * list)
* @note The data for each item on the list is not freed by
* @c ecore_list_clear().
*/
int ecore_list_clear(Ecore_List * list)
EAPI int ecore_list_clear(Ecore_List * list)
{
CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
@ -922,7 +922,7 @@ int ecore_list_clear(Ecore_List * list)
* @return Returns @c TRUE on success, @c FALSE on failure.
* @ingroup Ecore_Data_List_Traverse_Group
*/
int ecore_list_for_each(Ecore_List *list, Ecore_For_Each function,
EAPI int ecore_list_for_each(Ecore_List *list, Ecore_For_Each function,
void *user_data)
{
int ret;
@ -951,7 +951,7 @@ static int _ecore_list_for_each(Ecore_List *list, Ecore_For_Each function,
}
/* Initialize a node to starting values */
int ecore_list_node_init(Ecore_List_Node * node)
EAPI int ecore_list_node_init(Ecore_List_Node * node)
{
CHECK_PARAM_POINTER_RETURN("node", node, FALSE);
@ -974,7 +974,7 @@ Ecore_List nodes.
* @return A new Ecore_List_Node on success, @c NULL otherwise.
* @ingroup Ecore_Data_List_Node_Group
*/
Ecore_List_Node *ecore_list_node_new()
EAPI Ecore_List_Node *ecore_list_node_new()
{
Ecore_List_Node *new_node;
@ -995,7 +995,7 @@ Ecore_List_Node *ecore_list_node_new()
* @return @c TRUE.
* @ingroup Ecore_Data_List_Node_Group
*/
int ecore_list_node_destroy(Ecore_List_Node * node, Ecore_Free_Cb free_func)
EAPI int ecore_list_node_destroy(Ecore_List_Node * node, Ecore_Free_Cb free_func)
{
CHECK_PARAM_POINTER_RETURN("node", node, FALSE);
@ -1019,7 +1019,7 @@ int ecore_list_node_destroy(Ecore_List_Node * node, Ecore_Free_Cb free_func)
* on failure.
* @ingroup Ecore_Data_DList_Creation_Group
*/
Ecore_DList *ecore_dlist_new()
EAPI Ecore_DList *ecore_dlist_new()
{
Ecore_DList *list = NULL;
@ -1041,7 +1041,7 @@ Ecore_DList *ecore_dlist_new()
* @return @c TRUE if successful, @c FALSE if an error occurs.
* @ingroup Ecore_Data_DList_Creation_Group
*/
int ecore_dlist_init(Ecore_DList *list)
EAPI int ecore_dlist_init(Ecore_DList *list)
{
CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
@ -1055,7 +1055,7 @@ int ecore_dlist_init(Ecore_DList *list)
* @param list The doubly linked list to be freed.
* @ingroup Ecore_Data_DList_Creation_Group
*/
void ecore_dlist_destroy(Ecore_DList * list)
EAPI void ecore_dlist_destroy(Ecore_DList * list)
{
void *data;
CHECK_PARAM_POINTER("list", list);
@ -1077,7 +1077,7 @@ void ecore_dlist_destroy(Ecore_DList * list)
* @return @c TRUE on success, @c FALSE on failure.
* @ingroup Ecore_Data_DList_Creation_Group
*/
int ecore_dlist_set_free_cb(Ecore_DList * list, Ecore_Free_Cb free_func)
EAPI int ecore_dlist_set_free_cb(Ecore_DList * list, Ecore_Free_Cb free_func)
{
CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
@ -1089,7 +1089,7 @@ int ecore_dlist_set_free_cb(Ecore_DList * list, Ecore_Free_Cb free_func)
* @param list The given doubly linked list.
* @return @c TRUE if there are nodes, @c FALSE otherwise.
*/
int ecore_dlist_is_empty(Ecore_DList * list)
EAPI int ecore_dlist_is_empty(Ecore_DList * list)
{
CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
@ -1101,7 +1101,7 @@ int ecore_dlist_is_empty(Ecore_DList * list)
* @param list The given doubly linked list.
* @return The index of the current node.
*/
inline int ecore_dlist_index(Ecore_DList * list)
EAPI inline int ecore_dlist_index(Ecore_DList * list)
{
CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
@ -1121,7 +1121,7 @@ inline int ecore_dlist_index(Ecore_DList * list)
* @return @c TRUE if the data is successfully appended, @c FALSE otherwise.
* @ingroup Ecore_Data_DList_Add_Item_Group
*/
int ecore_dlist_append(Ecore_DList * list, void *data)
EAPI int ecore_dlist_append(Ecore_DList * list, void *data)
{
int ret;
Ecore_DList_Node *prev;
@ -1148,7 +1148,7 @@ int ecore_dlist_append(Ecore_DList * list, void *data)
* @return @c TRUE if the data is successfully prepended, @c FALSE otherwise.
* @ingroup Ecore_Data_DList_Add_Item_Group
*/
int ecore_dlist_prepend(Ecore_DList * list, void *data)
EAPI int ecore_dlist_prepend(Ecore_DList * list, void *data)
{
int ret;
Ecore_DList_Node *prev;
@ -1174,7 +1174,7 @@ int ecore_dlist_prepend(Ecore_DList * list, void *data)
* @return @c TRUE on success, @c FALSE otherwise.
* @ingroup Ecore_Data_DList_Add_Item_Group
*/
int ecore_dlist_insert(Ecore_DList * list, void *data)
EAPI int ecore_dlist_insert(Ecore_DList * list, void *data)
{
int ret;
Ecore_DList_Node *prev;
@ -1218,7 +1218,7 @@ int ecore_dlist_insert(Ecore_DList * list, void *data)
* @return A pointer to the removed data on success, @c NULL otherwise.
* @ingroup Ecore_Data_DList_Remove_Item_Group
*/
void *ecore_dlist_remove(Ecore_DList * list)
EAPI void *ecore_dlist_remove(Ecore_DList * list)
{
void *ret;
Ecore_List *l2 = ECORE_LIST(list);
@ -1242,7 +1242,7 @@ void *ecore_dlist_remove(Ecore_DList * list)
* @return A pointer to the removed data on success, @c NULL on failure.
* @ingroup Ecore_Data_DList_Remove_Item_Group
*/
void *ecore_dlist_remove_first(Ecore_DList * list)
EAPI void *ecore_dlist_remove_first(Ecore_DList * list)
{
void *ret;
@ -1260,7 +1260,7 @@ void *ecore_dlist_remove_first(Ecore_DList * list)
* @return @c TRUE on success, @c FALSE otherwise.
* @ingroup Ecore_Data_DList_Remove_Item_Group
*/
int ecore_dlist_remove_destroy(Ecore_DList *list)
EAPI int ecore_dlist_remove_destroy(Ecore_DList *list)
{
void *data;
@ -1296,7 +1296,7 @@ static void *_ecore_dlist_remove_first(Ecore_DList *list)
* @return A pointer to the removed data on success, @c NULL otherwise.
* @ingroup Ecore_Data_DList_Remove_Item_Group
*/
void *ecore_dlist_remove_last(Ecore_DList * list)
EAPI void *ecore_dlist_remove_last(Ecore_DList * list)
{
void *ret;
@ -1313,7 +1313,7 @@ void *ecore_dlist_remove_last(Ecore_DList * list)
* @param index The position to move the current item
* @return The node at specified index on success, @c NULL on error.
*/
void *ecore_dlist_goto_index(Ecore_DList * list, int index)
EAPI void *ecore_dlist_goto_index(Ecore_DList * list, int index)
{
void *ret;
@ -1364,7 +1364,7 @@ static void *_ecore_dlist_goto_index(Ecore_DList *list, int index)
*
* @return Returns specified data on success, NULL on error
*/
void *ecore_dlist_goto(Ecore_DList * list, void *data)
EAPI void *ecore_dlist_goto(Ecore_DList * list, void *data)
{
void *ret;
@ -1381,7 +1381,7 @@ void *ecore_dlist_goto(Ecore_DList * list, void *data)
*
* @return Returns a pointer to the first item on success, NULL on failure.
*/
void *ecore_dlist_goto_first(Ecore_DList *list)
EAPI void *ecore_dlist_goto_first(Ecore_DList *list)
{
void *ret;
@ -1397,7 +1397,7 @@ void *ecore_dlist_goto_first(Ecore_DList *list)
* @param list: the list to move the current item pointer to the last
* @return Returns a pointer to the last item in the list , NULL if empty.
*/
void *ecore_dlist_goto_last(Ecore_DList * list)
EAPI void *ecore_dlist_goto_last(Ecore_DList * list)
{
void *ret;
@ -1413,7 +1413,7 @@ void *ecore_dlist_goto_last(Ecore_DList * list)
* @param list: the list to the return the current data
* @return Returns value of the current data item, NULL if no current item
*/
void *ecore_dlist_current(Ecore_DList * list)
EAPI void *ecore_dlist_current(Ecore_DList * list)
{
void *ret;
@ -1427,7 +1427,7 @@ void *ecore_dlist_current(Ecore_DList * list)
* @param list: the list to move to the next item in.
* @return Returns data in the current list node, or NULL on error
*/
void *ecore_dlist_next(Ecore_DList * list)
EAPI void *ecore_dlist_next(Ecore_DList * list)
{
void *data;
@ -1441,7 +1441,7 @@ void *ecore_dlist_next(Ecore_DList * list)
* @param list: the list to move to the previous item in.
* @return Returns data in the current list node, or NULL on error
*/
void *ecore_dlist_previous(Ecore_DList * list)
EAPI void *ecore_dlist_previous(Ecore_DList * list)
{
void *data;
@ -1475,7 +1475,7 @@ static void *_ecore_dlist_previous(Ecore_DList * list)
*
* @return Returns TRUE on success, FALSE on errors
*/
int ecore_dlist_clear(Ecore_DList * list)
EAPI int ecore_dlist_clear(Ecore_DList * list)
{
CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
@ -1489,7 +1489,7 @@ int ecore_dlist_clear(Ecore_DList * list)
* @param node: the node to initialize
* @return Returns TRUE on success, FALSE on errors
*/
int ecore_dlist_node_init(Ecore_DList_Node * node)
EAPI int ecore_dlist_node_init(Ecore_DList_Node * node)
{
int ret;
@ -1506,7 +1506,7 @@ int ecore_dlist_node_init(Ecore_DList_Node * node)
* @brief Allocate and initialize a new list node
* @return Returns NULL on error, new list node on success
*/
Ecore_DList_Node *ecore_dlist_node_new()
EAPI Ecore_DList_Node *ecore_dlist_node_new()
{
Ecore_DList_Node *new_node;
@ -1529,7 +1529,7 @@ Ecore_DList_Node *ecore_dlist_node_new()
* @param free_func: the callback function to execute on the data
* @return Returns TRUE on success, FALSE on error
*/
int ecore_dlist_node_destroy(Ecore_DList_Node * node, Ecore_Free_Cb free_func)
EAPI int ecore_dlist_node_destroy(Ecore_DList_Node * node, Ecore_Free_Cb free_func)
{
CHECK_PARAM_POINTER_RETURN("node", node,
FALSE);

View File

@ -60,7 +60,7 @@ static double t2 = 0.0;
* queue.
* @ingroup Ecore_Main_Loop_Group
*/
void
EAPI void
ecore_main_loop_iterate(void)
{
_ecore_main_loop_iterate_internal(1);
@ -73,7 +73,7 @@ ecore_main_loop_iterate(void)
*
* @ingroup Ecore_Main_Loop_Group
*/
void
EAPI void
ecore_main_loop_begin(void)
{
in_main_loop++;
@ -87,7 +87,7 @@ ecore_main_loop_begin(void)
* been processed.
* @ingroup Ecore_Main_Loop_Group
*/
void
EAPI void
ecore_main_loop_quit(void)
{
do_quit = 1;
@ -130,7 +130,7 @@ ecore_main_loop_quit(void)
* @return A fd handler handle if successful. @c NULL otherwise.
* @ingroup Ecore_FD_Handler_Group
*/
Ecore_Fd_Handler *
EAPI Ecore_Fd_Handler *
ecore_main_fd_handler_add(int fd, Ecore_Fd_Handler_Flags flags, int (*func) (void *data, Ecore_Fd_Handler *fd_handler), const void *data, int (*buf_func) (void *buf_data, Ecore_Fd_Handler *fd_handler), const void *buf_data)
{
Ecore_Fd_Handler *fdh;
@ -162,7 +162,7 @@ ecore_main_fd_handler_add(int fd, Ecore_Fd_Handler_Flags flags, int (*func) (voi
* for @p fd_handler on success. @c NULL otherwise.
* @ingroup Ecore_FD_Handler_Group
*/
void *
EAPI void *
ecore_main_fd_handler_del(Ecore_Fd_Handler *fd_handler)
{
if (!ECORE_MAGIC_CHECK(fd_handler, ECORE_MAGIC_FD_HANDLER))
@ -176,7 +176,7 @@ ecore_main_fd_handler_del(Ecore_Fd_Handler *fd_handler)
return fd_handler->data;
}
void
EAPI void
ecore_main_fd_handler_prepare_callback_set(Ecore_Fd_Handler *fd_handler, void (*func) (void *data, Ecore_Fd_Handler *fd_handler), const void *data)
{
if (!ECORE_MAGIC_CHECK(fd_handler, ECORE_MAGIC_FD_HANDLER))
@ -195,7 +195,7 @@ ecore_main_fd_handler_prepare_callback_set(Ecore_Fd_Handler *fd_handler, void (*
* @return The file descriptor the handler is watching.
* @ingroup Ecore_FD_Handler_Group
*/
int
EAPI int
ecore_main_fd_handler_fd_get(Ecore_Fd_Handler *fd_handler)
{
if (!ECORE_MAGIC_CHECK(fd_handler, ECORE_MAGIC_FD_HANDLER))
@ -216,7 +216,7 @@ ecore_main_fd_handler_fd_get(Ecore_Fd_Handler *fd_handler)
* @return @c 1 if any of the given flags are active. @c 0 otherwise.
* @ingroup Ecore_FD_Handler_Group
*/
int
EAPI int
ecore_main_fd_handler_active_get(Ecore_Fd_Handler *fd_handler, Ecore_Fd_Handler_Flags flags)
{
int ret;
@ -240,7 +240,7 @@ ecore_main_fd_handler_active_get(Ecore_Fd_Handler *fd_handler, Ecore_Fd_Handler_
* @param flags The flags to be watching.
* @ingroup Ecore_FD_Handler_Group
*/
void
EAPI void
ecore_main_fd_handler_active_set(Ecore_Fd_Handler *fd_handler, Ecore_Fd_Handler_Flags flags)
{
if (!ECORE_MAGIC_CHECK(fd_handler, ECORE_MAGIC_FD_HANDLER))

View File

@ -20,7 +20,7 @@ Ecore_Path_Group *__ecore_path_group_find_id(int id);
* @return @c 0 on error, the integer id of the new group on success.
* @ingroup Ecore_Path_Group
*/
int
EAPI int
ecore_path_group_new(char *group_name)
{
Ecore_Path_Group *last;
@ -54,7 +54,7 @@ ecore_path_group_new(char *group_name)
* @param group_id The unique identifier for the group.
* @ingroup Ecore_Path_Group
*/
void
EAPI void
ecore_path_group_del(int group_id)
{
Ecore_Path_Group *group;
@ -80,7 +80,7 @@ ecore_path_group_del(int group_id)
* @param path The new path to be added to the group.
* @ingroup Ecore_Path_Group
*/
void
EAPI void
ecore_path_group_add(int group_id, char *path)
{
Ecore_Path_Group *group;
@ -104,7 +104,7 @@ ecore_path_group_add(int group_id, char *path)
* @param path The path of the directory to be removed.
* @ingroup Ecore_Path_Group
*/
void
EAPI void
ecore_path_group_remove(int group_id, char *path)
{
char *found;
@ -143,7 +143,7 @@ ecore_path_group_remove(int group_id, char *path)
* on success. @c NULL on failure.
* @ingroup Ecore_Path_Group
*/
char *
EAPI char *
ecore_path_group_find(int group_id, char *name)
{
int r;
@ -180,7 +180,7 @@ ecore_path_group_find(int group_id, char *name)
* identified by @p group_id. @c NULL otherwise.
* @ingroup Ecore_Path_Group
*/
Ecore_List *
EAPI Ecore_List *
ecore_path_group_available(int group_id)
{
Ecore_List *avail = NULL;

View File

@ -19,7 +19,7 @@ static Ecore_List *loaded_plugins = NULL;
* failure.
* @ingroup Ecore_Plugin
*/
Ecore_Plugin *
EAPI Ecore_Plugin *
ecore_plugin_load(int group_id, char *plugin_name)
{
char *path;
@ -67,7 +67,7 @@ ecore_plugin_load(int group_id, char *plugin_name)
* @param plugin The given plugin.
* @ingroup Ecore_Plugin
*/
void
EAPI void
ecore_plugin_unload(Ecore_Plugin * plugin)
{
CHECK_PARAM_POINTER("plugin", plugin);
@ -91,7 +91,7 @@ ecore_plugin_unload(Ecore_Plugin * plugin)
* @return Address of the given symbol if successful. Otherwise, @c NULL.
* @ingroup Ecore_Plugin
*/
void *