From dd7595a3475407a7fa96a97393bae8c5220e8762 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 4 Jan 2012 18:41:13 +1000 Subject: Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje. Note that embryo wont be used, but I'm not sure yet if you can build edje without it. --- libraries/embryo/src/lib/embryo_main.c | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 libraries/embryo/src/lib/embryo_main.c (limited to 'libraries/embryo/src/lib/embryo_main.c') diff --git a/libraries/embryo/src/lib/embryo_main.c b/libraries/embryo/src/lib/embryo_main.c new file mode 100644 index 0000000..0b01b11 --- /dev/null +++ b/libraries/embryo/src/lib/embryo_main.c @@ -0,0 +1,36 @@ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include + +#include "Embryo.h" +#include "embryo_private.h" + +static Embryo_Version _version = { VMAJ, VMIN, VMIC, VREV }; +EAPI Embryo_Version *embryo_version = &_version; + +static int _embryo_init_count = 0; + +/*** EXPORTED CALLS ***/ + +EAPI int +embryo_init(void) +{ + if (++_embryo_init_count != 1) + return _embryo_init_count; + + srand(time(NULL)); + + return _embryo_init_count; +} + +EAPI int +embryo_shutdown(void) +{ + if (--_embryo_init_count != 0) + return _embryo_init_count; + + return _embryo_init_count; +} -- cgit v1.1