void mfp_init_all(char * sockname) { mfp_dsp_init(); mfp_alloc_init(); mfp_comm_init(sockname); mfp_rpc_init(); mfp_api_init(); mfp_initialized = 1; return; }
void * test_SETUP(void) { mfp_context * ctxt = g_malloc0(sizeof(mfp_context)); ctxt->blocksize = 1024; ctxt->samplerate = 44100; /* called before each test case, where each test case is run * in a separate executable */ mfp_dsp_init(); mfp_alloc_init(); return (void *)ctxt; }