MOCreateInstance

C Specification

#include <mo/Mobiclip.h>

MOResult MOCreateInstance(MOInstance  **ppInstance, MO_MEDIUM_CONTROL *pControlFunc, MO_DEBUG_FUNCS *pDebugFuncs);

Arguments

ppInstance The created instance. If MOCreateInstance fails, instance will be set to NULL.
pControlFunc Set of functions to access a medium.
pDebugFuncs Callbacks to retrieve logs and fatalError from libMobiclip.

Return Values

MO_RESULT_OK Success.
MO_RESULT_OUT_OF_MEMORY Not enough memory.
MO_RESULT_NULL MOInstance** or MO_MEDIUM_CONTROL is NULL.
MO_RESULT_NOT_INITIALIZED MOInit has not been called yet.

Description

That function is used to create a MOInstance handle.

See Also

MODestroyInstance

Revision History

02/24/2010 Added a Description section.

03/26/2009 Parameter renaming done. Added description of MO_RESULT_NOT_INITIALIZED return value.

08/25/2008 Initial version.