efl/legacy/embryo/src/lib/embryo_main.c

37 lines
595 B
C
Raw Normal View History

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdlib.h>
2004-03-29 03:58:57 -08:00
#include <time.h>
#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 ***/
2006-01-06 10:02:51 -08:00
EAPI int
embryo_init(void)
{
if (++_embryo_init_count != 1)
return _embryo_init_count;
2004-03-29 03:58:57 -08:00
srand(time(NULL));
return _embryo_init_count;
}
2006-01-06 10:02:51 -08:00
EAPI int
embryo_shutdown(void)
{
if (--_embryo_init_count != 0)
return _embryo_init_count;
return _embryo_init_count;
}