Tizen Native API
5.0
|
Functions | |
int | ecore_init (void) |
int | ecore_shutdown (void) |
int ecore_init | ( | void | ) |
Sets up connections, signal handlers, sockets etc.
1
or greater on success, 0
otherwise.This function sets up all singal handlers and the basic event loop. If it succeeds, 1
will be returned, otherwise 0
will be returned.
#include <Ecore.h> int main(int argc, char **argv) { if (!ecore_init()) { printf("ERROR: Cannot init Ecore!\n"); return -1; } ecore_main_loop_begin(); ecore_shutdown(); }
int ecore_shutdown | ( | void | ) |
Shuts down connections, signal handlers sockets etc.
0
if ecore shuts down, greater than 0
otherwise. This function shuts down all things set up in ecore_init() and cleans up all event queues, handlers, filters, timers, idlers, idle enterers/exiters etc. set up after ecore_init() was called.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.