libcm is a C development framework with an emphasis on audio signal processing applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmCtx.c 578B

12345678910111213141516171819202122
  1. #include "cmPrefix.h"
  2. #include "cmGlobal.h"
  3. #include "cmRpt.h"
  4. #include "cmErr.h"
  5. #include "cmCtx.h"
  6. void cmCtxSetup(
  7. cmCtx_t* ctx,
  8. const cmChar_t* title,
  9. cmRptPrintFunc_t prtFunc,
  10. cmRptPrintFunc_t errFunc,
  11. void* cbPtr,
  12. unsigned guardByteCnt,
  13. unsigned alignByteCnt,
  14. unsigned mmFlags )
  15. {
  16. cmRptSetup(&ctx->rpt,prtFunc,errFunc,cbPtr);
  17. cmErrSetup(&ctx->err,&ctx->rpt,title);
  18. ctx->guardByteCnt = guardByteCnt;
  19. ctx->alignByteCnt = alignByteCnt;
  20. ctx->mmFlags = mmFlags;
  21. }