Debian Codegraph @

drivers/dahdi/hpec/hpec.h

raw
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 /*
10 * See http://www.asterisk.org for more information about
11 * the Asterisk project. Please do not directly contact
12 * any of the maintainers of this project for assistance;
13 * the project provides a web site, mailing lists and IRC
14 * channels for your use.
15 *
16 * This program is free software, distributed under the terms of
17 * the GNU General Public License Version 2 as published by the
18 * Free Software Foundation. See the LICENSE file included with
19 * this program for more details.
20 */
21
22 #if !defined(_HPEC_H)
23 #define _HPEC_H
24
25 struct hpec_state;
26
27 void __attribute__((regparm(0))) hpec_init(int __attribute__((regparm(0), format(printf, 1, 2))) (*logger)(const char *format, ...),
28 unsigned int debug,
29 unsigned int chunk_size,
30 void * (*memalloc)(size_t len),
31 void (*memfree)(void *ptr));
32
33 void __attribute__((regparm(0))) hpec_shutdown(void);
34
35 int __attribute__((regparm(0))) hpec_license_challenge(struct hpec_challenge *challenge);
36
37 int __attribute__((regparm(0))) hpec_license_check(struct hpec_license *license);
38
39 struct hpec_state __attribute__((regparm(0))) *hpec_channel_alloc(unsigned int len);
40
41 void __attribute__((regparm(0))) hpec_channel_free(struct hpec_state *channel);
42
43 void __attribute__((regparm(0))) hpec_channel_update(struct hpec_state *channel, short *isig, const short *iref);
44
45 #endif /* !defined(_HPEC_H) */
46