Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/spandsp/t35.h @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Fri, 25 Jun 2010 15:50:58 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
|---|---|
| 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 Lesser General Public License version 2.1, | |
| 14 * as 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 Lesser General Public License for more details. | |
| 20 * | |
| 21 * You should have received a copy of the GNU Lesser General Public | |
| 22 * License 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.15 2009/01/31 08:48:11 steveu Exp $ | |
| 26 */ | |
| 27 | |
| 28 /*! \file */ | |
| 29 | |
| 30 #if !defined(_SPANDSP_T35_H_) | |
| 31 #define _SPANDSP_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 /*! A table of the country names associated with each possible value of the T.35 country code | |
| 42 selector octet. */ | |
| 43 extern const char *t35_country_codes[256]; | |
| 44 | |
| 45 #if defined(__cplusplus) | |
| 46 extern "C" | |
| 47 { | |
| 48 #endif | |
| 49 | |
| 50 /*! Decode an NSF field to try to determine the make and model of the | |
| 51 remote machine. | |
| 52 \brief Decode an NSF field. | |
| 53 \param msg The NSF message. | |
| 54 \param len The length of the NSF message. | |
| 55 \param country A pointer which will be pointed to the identified country of origin. | |
| 56 If a NULL pointer is given, the country of origin will not be returned. | |
| 57 If the country of origin is not identified, NULL will be returned. | |
| 58 \param vendor A pointer which will be pointed to the identified vendor. | |
| 59 If a NULL pointer is given, the vendor ID will not be returned. | |
| 60 If the vendor is not identified, NULL will be returned. | |
| 61 \param model A pointer which will be pointed to the identified model. | |
| 62 If a NULL pointer is given, the model will not be returned. | |
| 63 If the model is not identified, NULL will be returned. | |
| 64 \return TRUE if the machine was identified, otherwise FALSE. | |
| 65 */ | |
| 66 SPAN_DECLARE(int) t35_decode(const uint8_t *msg, int len, const char **country, const char **vendor, const char **model); | |
| 67 | |
| 68 #if defined(__cplusplus) | |
| 69 } | |
| 70 #endif | |
| 71 | |
| 72 #endif | |
| 73 /*- End of file ------------------------------------------------------------*/ |
