Mercurial > hg > audiostuff
comparison spandsp-0.0.3/spandsp-0.0.3/src/spandsp/t35.h @ 5:f762bf195c4b
import spandsp-0.0.3
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 16:00:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:26cd8f1ef0b1 | 5:f762bf195c4b |
---|---|
1 /* | |
2 * SpanDSP - a series of DSP components for telephony | |
3 * | |
4 * t35.h - ITU T.35 FAX non-standard facility processing. | |
5 * | |
6 * Written by Steve Underwood <steveu@coppice.org> | |
7 * | |
8 * Copyright (C) 2003 Steve Underwood | |
9 * | |
10 * All rights reserved. | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU General Public License version 2, as | |
14 * published by the Free Software Foundation. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
24 * | |
25 * $Id: t35.h,v 1.8 2006/10/24 13:45:28 steveu Exp $ | |
26 */ | |
27 | |
28 /*! \file */ | |
29 | |
30 #if !defined(_T35_H_) | |
31 #define _T35_H_ | |
32 | |
33 /*! \page t35_page T.35 manufacturer specific processing for FAX machines | |
34 \section t35_page_sec_1 What does it do? | |
35 ???. | |
36 | |
37 \section t35_page_sec_2 How does it work? | |
38 ???. | |
39 */ | |
40 | |
41 extern const char *t35_country_codes[256]; | |
42 | |
43 #ifdef __cplusplus | |
44 extern "C" { | |
45 #endif | |
46 | |
47 /*! Decode an NSF field to try to determine the make and model of the | |
48 remote machine. | |
49 \brief Decode an NSF field. | |
50 \param msg The NSF message. | |
51 \param len The length of the NSF message. | |
52 \param country A pointer which will be pointed to the identified country of origin. | |
53 If a NULL pointer is given, the country of origin will not be returned. | |
54 If the country of origin is not identified, NULL will be returned. | |
55 \param vendor A pointer which will be pointed to the identified vendor. | |
56 If a NULL pointer is given, the vendor ID will not be returned. | |
57 If the vendor is not identified, NULL will be returned. | |
58 \param model A pointer which will be pointed to the identified model. | |
59 If a NULL pointer is given, the model will not be returned. | |
60 If the model is not identified, NULL will be returned. | |
61 \return TRUE if the machine was identified, otherwise FALSE. | |
62 */ | |
63 int t35_decode(const uint8_t *msg, int len, const char **country, const char **vendor, const char **model); | |
64 | |
65 #ifdef __cplusplus | |
66 } | |
67 #endif | |
68 | |
69 #endif | |
70 /*- End of file ------------------------------------------------------------*/ |