Lines Matching refs:system

54 int is_valid_system_handle(pico_System system)  in is_valid_system_handle()  argument
56 return (system != NULL) && CHECK_MAGIC_NUMBER(system); in is_valid_system_handle()
76 pico_System *system in pico_initialize_priv() argument
89 } else if (system == NULL) { in pico_initialize_priv()
124 *system = sys; in pico_initialize_priv()
128 if (system != NULL) { in pico_initialize_priv()
129 *system = NULL; in pico_initialize_priv()
148 pico_System *system in pico_initialize() argument
151 return pico_initialize_priv(memory, size, /*enableMemProt*/ FALSE, system); in pico_initialize()
162 pico_System *system in pico_terminate() argument
167 if ((system == NULL) || !is_valid_system_handle(*system)) { in pico_terminate()
170 pico_System sys = *system; in pico_terminate()
179 *system = NULL; in pico_terminate()
202 pico_System system, in pico_getSystemStatusMessage() argument
209 if (!is_valid_system_handle(system)) { in pico_getSystemStatusMessage()
217 if (picoos_emGetExceptionCode(system->common->em) == PICO_OK) { in pico_getSystemStatusMessage()
225 … picoos_emGetExceptionMessage(system->common->em, (picoos_char *) outMessage, PICO_RETSTRINGSIZE); in pico_getSystemStatusMessage()
242 pico_System system, in pico_getNrSystemWarnings() argument
248 if (!is_valid_system_handle(system)) { in pico_getNrSystemWarnings()
256 *outNrOfWarnings = picoos_emGetNumOfWarnings(system->common->em); in pico_getNrSystemWarnings()
274 pico_System system, in pico_getSystemWarning() argument
282 if (!is_valid_system_handle(system)) { in pico_getSystemWarning()
292 *outCode = picoos_emGetWarningCode(system->common->em, warningIndex); in pico_getSystemWarning()
293 …picoos_emGetWarningMessage(system->common->em, warningIndex, (picoos_char *) outMessage, (picoos_u… in pico_getSystemWarning()
314 pico_System system, in pico_loadResource() argument
321 if (!is_valid_system_handle(system)) { in pico_loadResource()
327 picoos_showMemUsage(system->common->mm, FALSE, TRUE); in pico_loadResource()
328 picoos_emReset(system->common->em); in pico_loadResource()
329 …status = picorsrc_loadResource(system->rm, (picoos_char *) lingwareFileName, (picorsrc_Resource *)… in pico_loadResource()
331 picoos_showMemUsage(system->common->mm, TRUE, FALSE); in pico_loadResource()
347 pico_System system, in pico_unloadResource() argument
353 if (!is_valid_system_handle(system)) { in pico_unloadResource()
361 picoos_showMemUsage(system->common->mm, FALSE, TRUE); in pico_unloadResource()
362 picoos_emReset(system->common->em); in pico_unloadResource()
363 status = picorsrc_unloadResource(system->rm, (picorsrc_Resource *) inoutLingware); in pico_unloadResource()
365 picoos_showMemUsage(system->common->mm, TRUE, FALSE); in pico_unloadResource()
383 pico_System system, in pico_getResourceName() argument
387 if (!is_valid_system_handle(system)) { in pico_getResourceName()
408 pico_System system, in pico_createVoiceDefinition() argument
414 if (!is_valid_system_handle(system)) { in pico_createVoiceDefinition()
421 picoos_emReset(system->common->em); in pico_createVoiceDefinition()
422 status = picorsrc_createVoiceDefinition(system->rm, (picoos_char *) voiceName); in pico_createVoiceDefinition()
439 pico_System system, in pico_addResourceToVoiceDefinition() argument
446 if (!is_valid_system_handle(system)) { in pico_addResourceToVoiceDefinition()
457 picoos_emReset(system->common->em); in pico_addResourceToVoiceDefinition()
458 …status = picorsrc_addResourceToVoiceDefinition(system->rm, (picoos_char *) voiceName, (picoos_char… in pico_addResourceToVoiceDefinition()
474 pico_System system, in pico_releaseVoiceDefinition() argument
480 if (!is_valid_system_handle(system)) { in pico_releaseVoiceDefinition()
487 picoos_emReset(system->common->em); in pico_releaseVoiceDefinition()
488 status = picorsrc_releaseVoiceDefinition(system->rm, (picoos_char *) voiceName); in pico_releaseVoiceDefinition()
509 pico_System system, in pico_newEngine() argument
518 if (!is_valid_system_handle(system)) { in pico_newEngine()
527 picoos_emReset(system->common->em); in pico_newEngine()
528 if (system->engine == NULL) { in pico_newEngine()
529 … *outEngine = (pico_Engine) picoctrl_newEngine(system->common->mm, system->rm, voiceName); in pico_newEngine()
531 system->engine = (picoctrl_Engine) *outEngine; in pico_newEngine()
533 status = picoos_emRaiseException(system->common->em, PICO_EXC_OUT_OF_MEM, in pico_newEngine()
537 status = picoos_emRaiseException(system->common->em, PICO_EXC_MAX_NUM_EXCEED, in pico_newEngine()
555 pico_System system, in pico_disposeEngine() argument
561 if (!is_valid_system_handle(system)) { in pico_disposeEngine()
568 picoos_emReset(system->common->em); in pico_disposeEngine()
569 picoctrl_disposeEngine(system->common->mm, system->rm, (picoctrl_Engine *) inoutEngine); in pico_disposeEngine()
570 system->engine = NULL; in pico_disposeEngine()
571 status = picoos_emGetExceptionCode(system->common->em); in pico_disposeEngine()