Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/spandsp/t30_logging.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 * t30_logging.h - definitions for T.30 fax 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: t30_logging.h,v 1.4 2009/02/03 16:28:41 steveu Exp $ | |
26 */ | |
27 | |
28 /*! \file */ | |
29 | |
30 #if !defined(_SPANDSP_T30_LOGGING_H_) | |
31 #define _SPANDSP_T30_LOGGING_H_ | |
32 | |
33 #if defined(__cplusplus) | |
34 extern "C" | |
35 { | |
36 #endif | |
37 | |
38 /*! Return a text name for a T.30 frame type. | |
39 \brief Return a text name for a T.30 frame type. | |
40 \param x The frametype octet. | |
41 \return A pointer to the text name for the frame type. If the frame type is | |
42 not value, the string "???" is returned. */ | |
43 SPAN_DECLARE(const char *) t30_frametype(uint8_t x); | |
44 | |
45 /*! Decode a DIS, DTC or DCS frame, and log the contents. | |
46 \brief Decode a DIS, DTC or DCS frame, and log the contents. | |
47 \param s The T.30 context. | |
48 \param dis A pointer to the frame to be decoded. | |
49 \param len The length of the frame. */ | |
50 SPAN_DECLARE(void) t30_decode_dis_dtc_dcs(t30_state_t *s, const uint8_t *dis, int len); | |
51 | |
52 /*! Convert a phase E completion code to a short text description. | |
53 \brief Convert a phase E completion code to a short text description. | |
54 \param result The result code. | |
55 \return A pointer to the description. */ | |
56 SPAN_DECLARE(const char *) t30_completion_code_to_str(int result); | |
57 | |
58 #if defined(__cplusplus) | |
59 } | |
60 #endif | |
61 | |
62 #endif | |
63 /*- End of file ------------------------------------------------------------*/ |