static Eina_Bool _thaw_third_anim(void *data);
int
-main(int argc, char *argv[])
+main(void)
{
Evas_Object *rect, *bg, *rect2;
Ecore_Evas *ee;
static int del = 0;
Eina_Bool
-_add(void *data, int type, Ecore_Con_Event_Server_Add *ev)
+_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Add *ev EINA_UNUSED)
{
++add;
printf("Connection #%i!\n", add);
}
Eina_Bool
-_del(void *data, int type, Ecore_Con_Event_Server_Add *ev)
+_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Add *ev EINA_UNUSED)
{
++del;
printf("Connection lost! #%i!\n", del);
}
static void
-_spawn(void *data)
+_spawn(void *data EINA_UNUSED)
{
int x;
#endif
Eina_Bool
-_add(void *data, int type, Ecore_Con_Event_Server_Add *ev)
+_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Add *ev)
{
printf("Server with ip %s connected!\n", ecore_con_server_ip_get(ev->server));
ecore_con_server_send(ev->server, "hello!", 6);
}
Eina_Bool
-_del(void *data, int type, Ecore_Con_Event_Server_Del *ev)
+_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Del *ev)
{
printf("Lost server with ip %s!\n", ecore_con_server_ip_get(ev->server));
ecore_main_loop_quit();
}
Eina_Bool
-_data(void *data, int type, Ecore_Con_Event_Server_Data *ev)
+_data(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Server_Data *ev)
{
char fmt[128];
#include <Ecore_Con.h>
static void
-_lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data)
+_lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data EINA_UNUSED)
{
printf("canonname = %s\n", canonname);
printf("ip = %s\n", ip);
#endif
Eina_Bool
-_add(void *data, int type, Ecore_Con_Event_Client_Add *ev)
+_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Add *ev)
{
printf("Client with ip %s connected!\n", ecore_con_client_ip_get(ev->client));
ecore_con_client_send(ev->client, "hello!", 6);
}
Eina_Bool
-_del(void *data, int type, Ecore_Con_Event_Client_Del *ev)
+_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Del *ev)
{
printf("Lost client with ip %s!\n", ecore_con_client_ip_get(ev->client));
ecore_main_loop_quit();
}
Eina_Bool
-_data(void *data, int type, Ecore_Con_Event_Client_Data *ev)
+_data(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Data *ev)
{
char fmt[128];
};
static Eina_Bool
-_url_progress_cb(void *data, int type, void *event_info)
+_url_progress_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
{
Ecore_Con_Event_Url_Progress *url_progress = event_info;
float percent;
}
static Eina_Bool
-_url_complete_cb(void *data, int type, void *event_info)
+_url_complete_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
{
Ecore_Con_Event_Url_Complete *url_complete = event_info;
#include <Ecore_Con.h>
static Eina_Bool
-_url_data_cb(void *data, int type, void *event_info)
+_url_data_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
{
Ecore_Con_Event_Url_Data *url_data = event_info;
int i;
}
static Eina_Bool
-_url_complete_cb(void *data, int type, void *event_info)
+_url_complete_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
{
Ecore_Con_Event_Url_Complete *url_complete = event_info;
const Eina_List *headers, *l;
#include <unistd.h>
static Eina_Bool
-_stdin_cb(void *data, Ecore_Fd_Handler *handler)
+_stdin_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *handler EINA_UNUSED)
{
Eina_List *l;
Ecore_Evas *ee;
#include <Ecore_Evas.h>
static void
-_destroy(Ecore_Evas *ee)
+_destroy(Ecore_Evas *ee EINA_UNUSED)
{
printf("destroy\n");
ecore_main_loop_quit();
}
static void
-_delete(Ecore_Evas *ee)
+_delete(Ecore_Evas *ee EINA_UNUSED)
{
printf("delete\n");
ecore_main_loop_quit();
}
static void
-_focus_in(Ecore_Evas *ee)
+_focus_in(Ecore_Evas *ee EINA_UNUSED)
{
printf("focus_in\n");
}
static void
-_focus_out(Ecore_Evas *ee)
+_focus_out(Ecore_Evas *ee EINA_UNUSED)
{
printf("focus_out\n");
}
static void
-_hide(Ecore_Evas *ee)
+_hide(Ecore_Evas *ee EINA_UNUSED)
{
printf("hide\n");
}
static void
-_mouse_in(Ecore_Evas *ee)
+_mouse_in(Ecore_Evas *ee EINA_UNUSED)
{
printf("mouse_in\n");
}
static void
-_show(Ecore_Evas *ee)
+_show(Ecore_Evas *ee EINA_UNUSED)
{
printf("show\n");
}
static void
-_mouse_out(Ecore_Evas *ee)
+_mouse_out(Ecore_Evas *ee EINA_UNUSED)
{
printf("mouse_out\n");
}
static void
-_move(Ecore_Evas *ee)
+_move(Ecore_Evas *ee EINA_UNUSED)
{
printf("move\n");
}
static void
-_post_render(Ecore_Evas *ee)
+_post_render(Ecore_Evas *ee EINA_UNUSED)
{
printf("post_render\n");
}
static void
-_pre_free(Ecore_Evas *ee)
+_pre_free(Ecore_Evas *ee EINA_UNUSED)
{
printf("pre_free\n");
}
static void
-_pre_render(Ecore_Evas *ee)
+_pre_render(Ecore_Evas *ee EINA_UNUSED)
{
printf("pre_render\n");
}
static void
-_resize(Ecore_Evas *ee)
+_resize(Ecore_Evas *ee EINA_UNUSED)
{
printf("resize\n");
}
{
Ecore_Evas *ee;
Evas_Object *bg;
-
+
ecore_evas_init();
ee = ecore_evas_new(NULL, 0, 0, 200, 100, NULL);
evas_object_color_set(bg, 255, 128, 0, 255);
evas_object_resize(bg, 9999, 9999);
evas_object_show(bg);
-
+
//callbacks
ecore_evas_callback_delete_request_set(ee, _delete);
ecore_evas_callback_destroy_set(ee, _destroy);
#include <ctype.h>
static Eina_Bool
-_wm_win_add(void *data, int type, void *event_info)
+_wm_win_add(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
{
Ecore_Evas *ee = event_info;
printf("WM: new window=%p\n", ee);
}
static Eina_Bool
-_wm_win_move(void *data, int type, void *event_info)
+_wm_win_move(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
{
Ecore_Evas *ee = event_info;
int x, y;
}
static Eina_Bool
-_wm_win_resize(void *data, int type, void *event_info)
+_wm_win_resize(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
{
Ecore_Evas *ee = event_info;
int w, h;
}
static Eina_Bool
-_wm_win_show(void *data, int type, void *event_info)
+_wm_win_show(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
{
Ecore_Evas *ee = event_info;
printf("WM: show window=%p\n", ee);
}
static Eina_Bool
-_stdin_cb(void *data, Ecore_Fd_Handler *handler)
+_stdin_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *handler EINA_UNUSED)
{
const Eina_List *l;
Ecore_Evas *ee;
#include <Ecore.h>
static Eina_Bool
-_quitter(void *data, int ev_type, void *event)
+_quitter(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *event EINA_UNUSED)
{
printf("Leaving already?\n");
ecore_main_loop_quit();
}
int
-main(int argc, char **argv)
+main(void)
{
ecore_init();
static int _event_type = 0; // a new type of event will be defined and stored here
static Eina_Bool
-_event_handler1_cb(void *data, int type, void *event)
+_event_handler1_cb(void *data, int type EINA_UNUSED, void *event)
{
int *number = event;
const char *str = data;
}
static Eina_Bool
-_event_handler2_cb(void *data, int type, void *event) // event callback
+_event_handler2_cb(void *data, int type EINA_UNUSED, void *event) // event callback
{
struct context *ctxt = data;
int *number = event;
}
int
-main(int argc, char **argv)
+main(void)
{
struct context ctxt = {0};
int i;
#define BUFFER_SIZE 1024
static Eina_Bool
-_msg_from_child_handler(void *data, int type, void *event)
+_msg_from_child_handler(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
Ecore_Exe_Event_Data *dataFromProcess = (Ecore_Exe_Event_Data *)event;
char msg[BUFFER_SIZE];
fprintf(stdout, "Data too big for bugger. error\n");
return ECORE_CALLBACK_DONE;
}
-
+
strncpy(msg, dataFromProcess->data, dataFromProcess->size);
msg[dataFromProcess->size] = 0;
-
+
if (strcmp(msg, "quit") == 0)
{
fprintf(stdout, "My child said to me, QUIT!\n");
}
int
-main(int argc, char **argv)
+main(void)
{
pid_t childPid;
Ecore_Exe *childHandle;
#define BUFFER_SIZE 1024
static Eina_Bool
-_fd_handler_cb(void *data, Ecore_Fd_Handler
- *fd_handler)
+_fd_handler_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *fd_handler EINA_UNUSED)
{
static int numberOfMessages = 0;
char message[BUFFER_SIZE];
}
int
-main(int argc, char **argv)
+main(void)
{
if (!ecore_init())
goto error;
};
static void
-_fd_prepare_cb(void *data, Ecore_Fd_Handler *handler)
+_fd_prepare_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *handler EINA_UNUSED)
{
printf("prepare_cb called.\n");
}
}
static Eina_Bool
-_timer_cb(void *data)
+_timer_cb(void *data EINA_UNUSED)
{
printf("Timer expired after 5 seconds...\n");
}
int
-main(int argc, char **argv)
+main(void)
{
struct context ctxt = {0};
#define DST_MIME "[x-gzip]linux-1.0.tar.gz"
void
-completion_cb(void *data, const char *file, int status)
+completion_cb(void *data EINA_UNUSED, const char *file EINA_UNUSED, int status)
{
printf("Done (status: %d)\n", status);
ecore_main_loop_quit();
}
int
-progress_cb(void *data, const char *file,
+progress_cb(void *data EINA_UNUSED, const char *file EINA_UNUSED,
long int dltotal, long int dlnow,
- long int ultotal, long int ulnow)
+ long int ultotal EINA_UNUSED, long int ulnow EINA_UNUSED)
{
printf("Progress: %ld/%ld\n", dlnow, dltotal);
return ECORE_FILE_PROGRESS_CONTINUE; // continue the download
static int _event_type = 0; // a new type of event will be defined and stored here
static Eina_Bool
-_enterer_cb(void *data) // the idle enterer callback
+_enterer_cb(void *data EINA_UNUSED) // the idle enterer callback
{
printf("IDLE ENTERER: Ecore entering in idle state.\n");
}
static Eina_Bool
-_exiter_cb(void *data) // the idle exiter callback
+_exiter_cb(void *data EINA_UNUSED) // the idle exiter callback
{
printf("IDLE EXITER: Ecore exiting idle state.\n");
}
static Eina_Bool
-_event_handler_cb(void *data, int type, void *event) // event callback
+_event_handler_cb(void *data, int type EINA_UNUSED, void *event EINA_UNUSED) // event callback
{
struct context *ctxt = data;
}
int
-main(int argc, char **argv)
+main(void)
{
struct context ctxt = {0};
static void _imf_cursor_info_set(Entry *en);
static void
-_mouse_down_cb(void *data, Evas *e, Evas_Object *o, void *event_info)
+_mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
{
Entry *en = data;
Evas_Event_Mouse_Down *ev = event_info;
}
static void
-_mouse_up_cb(void *data, Evas *e, Evas_Object *o, void *event_info)
+_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
{
Entry *en = data;
Evas_Event_Mouse_Up *ev = event_info;
}
static void
-_entry_focus_in_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_entry_focus_in_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
{
Entry *en = data;
if (!en) return;
}
static void
-_entry_focus_out_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_entry_focus_out_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
{
Entry *en = data;
if (!en) return;
}
static void
-_canvas_focus_in_cb(void *data, Evas *e, void *event_info)
+_canvas_focus_in_cb(void *data EINA_UNUSED, Evas *e, void *event_info EINA_UNUSED)
{
Entry *en;
Evas_Object *obj = evas_focus_get(e);
}
static void
-_canvas_focus_out_cb(void *data, Evas *e, void *event_info)
+_canvas_focus_out_cb(void *data EINA_UNUSED, Evas *e, void *event_info EINA_UNUSED)
{
Entry *en;
Evas_Object *obj = evas_focus_get(e);
}
static Eina_Bool
-_ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **text, int *cursor_pos)
+_ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx EINA_UNUSED, char **text, int *cursor_pos)
{
// This callback will be called when the Input Method Context module requests the surrounding context.
Entry *en = data;
}
static void
-_ecore_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx, void *event_info)
+_ecore_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx EINA_UNUSED, void *event_info)
{
// called when the input method needs to delete all or part of the context surrounding the cursor
Entry *en = data;
}
static void
-_ecore_imf_event_commit_cb(void *data, Ecore_IMF_Context *ctx, void *event_info)
+_ecore_imf_event_commit_cb(void *data, Ecore_IMF_Context *ctx EINA_UNUSED, void *event_info)
{
Entry *en = data;
char *commit_str = (char *)event_info;
}
static void
-_ecore_imf_event_preedit_changed_cb(void *data, Ecore_IMF_Context *ctx, void *event_info)
+_ecore_imf_event_preedit_changed_cb(void *data, Ecore_IMF_Context *ctx, void *event_info EINA_UNUSED)
{
// example how to get preedit string
Entry *en = data;
}
static void
-_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
{
Entry *en = data;
Evas_Event_Key_Down *ev = event_info;
}
static void
-_key_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_key_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
{
Entry *en = data;
Evas_Event_Key_Up *ev = event_info;
}
int
-main(int argc, char *argv[])
+main(void)
{
Ecore_Evas *ee;
Evas *evas;
}
static void
-_job_quit_cb(void *data)
+_job_quit_cb(void *data EINA_UNUSED)
{
ecore_main_loop_quit();
}
int
-main(int argc, char **argv)
+main(void)
{
Ecore_Job *job1, *job2, *job3, *job_quit;
char *str1 = "Job 1 started.";
ecore_main_loop_begin();
ecore_shutdown();
+
+ return 0;
}
}
static void
-handler(void *data, void *buf, unsigned int len)
+handler(void *data EINA_UNUSED, void *buf, unsigned int len)
{
char *str = malloc(sizeof(char) * len + 1);
memcpy(str, buf, len);
}
int
-main(int argc, char *argv[])
+main(void)
{
Ecore_Pipe *pipe;
pid_t child_pid;
}
static Eina_Bool
-_poller_quit_cb(void *data)
+_poller_quit_cb(void *data EINA_UNUSED)
{
ecore_main_loop_quit();
}
int
-main(int argc, char **argv)
+main(void)
{
double interval = 0.3; // tick each 0.3 seconds
Ecore_Poller *poller1, *poller2, *poller3;
static int del;
Eina_Bool
-_add(void *data, int type, Ecore_Con_Event_Client_Add *ev)
+_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Add *ev EINA_UNUSED)
{
++add;
// printf ("%s ", ecore_con_client_ip_get(ev->client));
}
Eina_Bool
-_del(void *data, int type, Ecore_Con_Event_Client_Del *ev)
+_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Del *ev EINA_UNUSED)
{
++del;
printf("Disconnected #%i!\n", del);
}
static void
-_short_job(void *data, Ecore_Thread *th)
+_short_job(void *data EINA_UNUSED, Ecore_Thread *th)
{
Thread_Data *td;
int i;
}
static void
-_feedback_job(void *data, Ecore_Thread *th)
+_feedback_job(void *data EINA_UNUSED, Ecore_Thread *th)
{
time_t t;
int i, count;
}
static Eina_Bool
-_status_timer_cb(void *data)
+_status_timer_cb(void *data EINA_UNUSED)
{
_print_status();
return 0;
}
-
#include <unistd.h>
static Eina_Bool
-_timer_cb(void *data)
+_timer_cb(void *data EINA_UNUSED)
{
printf("ecore time: %0.3f\n", ecore_time_get());
printf("loop time: %0.3f\n", ecore_loop_time_get());
}
int
-main(int argc, char **argv)
+main(void)
{
if (!ecore_init())
{
}
static Eina_Bool
-_timer1_cb(void *data)
+_timer1_cb(void *data EINA_UNUSED)
{
printf("Timer1 expired after %0.3f seconds.\n", _get_current_time());
return ECORE_CALLBACK_RENEW;
}
int
-main(int argc, char **argv)
+main(void)
{
struct context ctxt = {0};
} /* _my_cache_new */
static Eina_Bool
-_my_cache_account_free_cb(const Eina_Hash *hash,
- const void *key,
+_my_cache_account_free_cb(const Eina_Hash *hash EINA_UNUSED,
+ const void *key EINA_UNUSED,
void *data,
- void *fdata)
+ void *fdata EINA_UNUSED)
{
_my_account_free(data);
return EINA_TRUE;
}
static Eina_Bool
-process_input(void *data)
+process_input(void *data EINA_UNUSED)
{
Eina_Iterator *itr;
Eina_Rectangle r, *r1;
}
static void
-_on_keydown(void *data, Evas *e, Evas_Object *o, void *event)
+_on_keydown(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event)
{
App_Data *ad = data;
Evas_Event_Key_Down *ev = event;
static Evas_Smart_Example_Interface iface1;
static Eina_Bool
-_iface1_add(Evas_Object *obj)
+_iface1_add(Evas_Object *obj EINA_UNUSED)
{
printf("iface1's add()!\n");
}
static void
-_iface1_custom_fn(Evas_Object *obj)
+_iface1_custom_fn(Evas_Object *obj EINA_UNUSED)
{
printf("iface1's custom_fn()!\n");
}