1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef __AUDIOFAX_H__
- #define __AUDIOFAX_H__
- #pragma once
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "audiostream.h"
- typedef struct audiofax_t audiofax_t;
- struct audiofax_t
- {
- audiostream_t base;
- int ecm;
- int caller;
- int disable_v17;
- int tx_page_start;
- int tx_page_end;
- void *fax_state;
- char *file;
- char *ident;
- char *header;
- };
- apr_status_t audiofax_create(apr_pool_t *pool, audioengine_t *engine, audiofax_t **p_fax);
- void audiofax_destroy(audiofax_t *fax);
- apr_status_t audiofax_enable_v17(audiofax_t *fax, int on);
- apr_status_t audiofax_set_caller(audiofax_t *fax, int on);
- apr_status_t audiofax_set_file(audiofax_t *fax, const char *file);
- apr_status_t audiofax_set_ident(audiofax_t *fax, const char *ident);
- apr_status_t audiofax_set_header(audiofax_t *fax, const char *header);
- apr_status_t audiofax_set_page_range(audiofax_t *fax, int start, int end);
- apr_status_t audiofax_enable_ecm(audiofax_t *fax, int on);
- apr_status_t audiofax_init(audiofax_t *fax);
- apr_status_t audiofax_term(audiofax_t *fax);
- #ifdef __cplusplus
- } // extern "C" {
- #endif
- #endif //__AUDIOFAX_H__
|