Esempio n. 1
0
/*
 * Initialize a new mobicore API instance object
 *
 * @return Instance or NULL if no allocation was possible.
 */
struct mc_instance *mobicore_open(void)
{
	struct mc_instance *instance = mc_alloc_instance();
	if (instance)
		instance->admin = true;
	return instance;
}
Esempio n. 2
0
File: api.c Progetto: aijiekj/m35x
/**
 * Initialize a new mobicore API instance object
 *
 * @return Instance or NULL if no allocation was possible.
 */
struct mc_instance *mobicore_open(void)
{
	return mc_alloc_instance();
}