libcm is a C development framework with an emphasis on audio signal processing applications.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

cmCtx.c 725B

123456789101112131415161718192021222324
  1. //| Copyright: (C) 2009-2020 Kevin Larke <contact AT larke DOT org>
  2. //| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
  3. #include "cmPrefix.h"
  4. #include "cmGlobal.h"
  5. #include "cmRpt.h"
  6. #include "cmErr.h"
  7. #include "cmCtx.h"
  8. void cmCtxSetup(
  9. cmCtx_t* ctx,
  10. const cmChar_t* title,
  11. cmRptPrintFunc_t prtFunc,
  12. cmRptPrintFunc_t errFunc,
  13. void* cbPtr,
  14. unsigned guardByteCnt,
  15. unsigned alignByteCnt,
  16. unsigned mmFlags )
  17. {
  18. cmRptSetup(&ctx->rpt,prtFunc,errFunc,cbPtr);
  19. cmErrSetup(&ctx->err,&ctx->rpt,title);
  20. ctx->guardByteCnt = guardByteCnt;
  21. ctx->alignByteCnt = alignByteCnt;
  22. ctx->mmFlags = mmFlags;
  23. }