hpec.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * DAHDI Telephony Interface to Digium High-Performance Echo Canceller
  3. *
  4. * Copyright (C) 2006 Digium, Inc.
  5. *
  6. * All rights reserved.
  7. */
  8. /*
  9. * See http://www.asterisk.org for more information about
  10. * the Asterisk project. Please do not directly contact
  11. * any of the maintainers of this project for assistance;
  12. * the project provides a web site, mailing lists and IRC
  13. * channels for your use.
  14. *
  15. * This program is free software, distributed under the terms of
  16. * the GNU General Public License Version 2 as published by the
  17. * Free Software Foundation. See the LICENSE file included with
  18. * this program for more details.
  19. */
  20. #if !defined(_HPEC_H)
  21. #define _HPEC_H
  22. struct hpec_state;
  23. void __attribute__((regparm(0))) hpec_init(int __attribute__((regparm(0), format(printf, 1, 2))) (*logger)(const char *format, ...),
  24. unsigned int debug,
  25. unsigned int chunk_size,
  26. void * (*memalloc)(size_t len),
  27. void (*memfree)(void *ptr));
  28. void __attribute__((regparm(0))) hpec_shutdown(void);
  29. int __attribute__((regparm(0))) hpec_license_challenge(struct hpec_challenge *challenge);
  30. int __attribute__((regparm(0))) hpec_license_check(struct hpec_license *license);
  31. struct hpec_state __attribute__((regparm(0))) *hpec_channel_alloc(unsigned int len);
  32. void __attribute__((regparm(0))) hpec_channel_free(struct hpec_state *channel);
  33. void __attribute__((regparm(0))) hpec_channel_update(struct hpec_state *channel, short *isig, const short *iref);
  34. #endif /* !defined(_HPEC_H) */