diff options
Diffstat (limited to 'libraries/embryo/src/lib/embryo_main.c')
-rw-r--r-- | libraries/embryo/src/lib/embryo_main.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/libraries/embryo/src/lib/embryo_main.c b/libraries/embryo/src/lib/embryo_main.c deleted file mode 100644 index 0b01b11..0000000 --- a/libraries/embryo/src/lib/embryo_main.c +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include "config.h" | ||
3 | #endif | ||
4 | |||
5 | #include <stdlib.h> | ||
6 | #include <time.h> | ||
7 | |||
8 | #include "Embryo.h" | ||
9 | #include "embryo_private.h" | ||
10 | |||
11 | static Embryo_Version _version = { VMAJ, VMIN, VMIC, VREV }; | ||
12 | EAPI Embryo_Version *embryo_version = &_version; | ||
13 | |||
14 | static int _embryo_init_count = 0; | ||
15 | |||
16 | /*** EXPORTED CALLS ***/ | ||
17 | |||
18 | EAPI int | ||
19 | embryo_init(void) | ||
20 | { | ||
21 | if (++_embryo_init_count != 1) | ||
22 | return _embryo_init_count; | ||
23 | |||
24 | srand(time(NULL)); | ||
25 | |||
26 | return _embryo_init_count; | ||
27 | } | ||
28 | |||
29 | EAPI int | ||
30 | embryo_shutdown(void) | ||
31 | { | ||
32 | if (--_embryo_init_count != 0) | ||
33 | return _embryo_init_count; | ||
34 | |||
35 | return _embryo_init_count; | ||
36 | } | ||