audiofax.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef __AUDIOFAX_H__
  2. #define __AUDIOFAX_H__
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #include "audiostream.h"
  8. typedef struct audiofax_t audiofax_t;
  9. struct audiofax_t
  10. {
  11. audiostream_t base;
  12. int ecm;
  13. int caller;
  14. int disable_v17;
  15. int tx_page_start;
  16. int tx_page_end;
  17. void *fax_state;
  18. char *file;
  19. char *ident;
  20. char *header;
  21. };
  22. apr_status_t audiofax_create(apr_pool_t *pool, audioengine_t *engine, audiofax_t **p_fax);
  23. void audiofax_destroy(audiofax_t *fax);
  24. apr_status_t audiofax_enable_v17(audiofax_t *fax, int on);
  25. apr_status_t audiofax_set_caller(audiofax_t *fax, int on);
  26. apr_status_t audiofax_set_file(audiofax_t *fax, const char *file);
  27. apr_status_t audiofax_set_ident(audiofax_t *fax, const char *ident);
  28. apr_status_t audiofax_set_header(audiofax_t *fax, const char *header);
  29. apr_status_t audiofax_set_page_range(audiofax_t *fax, int start, int end);
  30. apr_status_t audiofax_enable_ecm(audiofax_t *fax, int on);
  31. apr_status_t audiofax_init(audiofax_t *fax);
  32. apr_status_t audiofax_term(audiofax_t *fax);
  33. #ifdef __cplusplus
  34. } // extern "C" {
  35. #endif
  36. #endif //__AUDIOFAX_H__